Beantwortet
how to migrate maven-bundle-plugin to bnd-maven-plugin for AEMaaCS????
Existing cor/pom.xml
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Import-Package>!org.xhtmlrenderer.pdf.*;!org.apache.jcp.xml.dsig.internal.dom.*;!org.apache.xml.security.utils.*;!com.itextpdf.*;!org.bouncycastle.*;!twitter4j.*;!com.lowagie.*;!com.apple.mrj.*;!com.itextpdf.*;javax.inject;version=0.0.0,*</Import-Package>
<Sling-Model-Packages>
do.max.core.aem
</Sling-Model-Packages>
<Embed-Transitive>true</Embed-Transitive>
<Embed-Dependency>*;groupId=com.maxmind.geoip2|com.itextpdf|com.lowagie|com.fasterxml.jackson.core|com.maxmind.db|org.xhtmlrenderer|com.atlassian.commonmark;scope=compile|runtime;type=!pom;
inline=false,jsoup</Embed-Dependency>
</instructions>
</configuration>
</plugin>
Need to migrate to bnd-maven-plugin(biz.aQute.bnd)
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<executions>
<execution>
<id>bnd-process</id>
<goals>
<goal>bnd-process</goal>
</goals>
<configuration>
<bnd><![CDATA[
Export-Package: do.max.core.aem.*,\
Import-Package: javax.annotation;version=0.0.0,*
Sling-Model-Packages: do.max.core.aem
Bundle-DocURL:
-plugin org.apache.sling.caconfig.bndplugin.ConfigurationClassScannerPlugin
-plugin org.apache.sling.bnd.models.ModelsScannerPlugin
]]></bnd>
</configuration>
</execution>
</executions>
</plugin>
I have tried the solution from all the old thread still not resolved yet.
could you please guide anyone as i'm facing issue from long time????