java - Maven - merge auto and manual list of imported packages -
java - Maven - merge auto and manual list of imported packages -
i work in netbeans 7.4 , utilize maven building projects. before didn't write packages import in pom file done automatically.
now need add together bundle manually. utilize maven-bundle-plugin
<plugin> <groupid>org.apache.felix</groupid> <artifactid>maven-bundle-plugin</artifactid> <version>2.3.7</version> <extensions>true</extensions> <configuration> <instructions> <import-package>org.apache.tiles.jsp.taglib</import-package> </instructions> </configuration> <executions> <execution> <id>bundle-manifest</id> <phase>process-classes</phase> <goals> <goal>manifest</goal> </goals> </execution> <execution> <id>bundle-install</id> <phase>install</phase> <goals> <goal>install</goal> </goals> </execution> </executions> </plugin> the problem case packages imported automatically not imported now. how can merge manual , auto list of imported packages?
the default import-package in bnd/maven-bundle-plugin '*', means "import packages bundle needs".
you have overridden default import bundle org.apache.tiles.jsp.taglib and only package.
whenever add together packages manually, must specify trailing '*' include other packages code might depend on. so:
<import-package> org.apache.tiles.jsp.taglib, * </import-package> this means follows: "import org.apache.tiles.jps.taglib plus other packages bundle needs".
java maven java-ee netbeans osgi
Comments
Post a Comment