Hi <introduction> I have few bundle projects built using maven-bundle-plugin. Because all of them have the same set of dependencies I'd like to replace them with one dependency - "group of artifacts" pom.
So I've created new pom, copy all dependencies to it, set packaging to pom. In my bundles I cut off all dependencies and add only one - to my new pom (with type pom of course). But maven-bundle-plugin cannot build my bundles - there is exception Invalid Zip. The reason is that in method BundlePlugin.getClassPath all dependency artifacts are assumed to be jars (but I have actually pom not jar). So I added simple if to exclude artifact of type pom. There was no exception, but of course no dependencies from my new pom were included. </introduction> I found that maven-bundle-plugin calculates classpath in BundlePlugin.getClasspath(MavenProject project) method using: Set artifacts = project.getDependencyArtifacts(); While maven-compiler-plugin use: List artifacts = project.getCompileArtifacts(); I changed maven-bundle-plugin and found that getCompileArtifacts correct resolves dependant poms to set of artifacts. I've tested changed plugin in several modules and for me it works correct. Do you mind if I commit that? -- Damian _______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general