[ https://issues.apache.org/jira/browse/FELIX-1039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart McCulloch resolved FELIX-1039. ------------------------------------- Resolution: Fixed Fix Version/s: maven-bundle-plugin-2.3.5 Assignee: Stuart McCulloch I tweaked the lifecycle/handler metadata in r1139301, but things also seem to be behaving better with Maven3 when using package vs. install and bundle vs. jar. > Inconsistency packaging vs. type > -------------------------------- > > Key: FELIX-1039 > URL: https://issues.apache.org/jira/browse/FELIX-1039 > Project: Felix > Issue Type: Bug > Components: Maven Bundle Plugin > Affects Versions: maven-bundle-plugin-2.0.0 > Environment: Maven-2.1.0 > Reporter: Thomas Diesler > Assignee: Stuart McCulloch > Fix For: maven-bundle-plugin-2.3.5 > > > The Maven Bundle Plugin uses > <packaging>bundle</packaging> > Scenario #1 - dependency uses type=bundle > <dependency> > <groupId>org.jboss.osgi</groupId> > <artifactId>jboss-osgi-common</artifactId> > <version>${version}</version> > <type>bundle</type> > </dependency> > with type=bundle the the dependency is resolved correctly from the the build > reactor. > 'mvn package' succeeds. Note, the artefact is not yet in the local repository. > Scenario #2 - dependency uses unspecified type > <dependency> > <groupId>org.jboss.osgi</groupId> > <artifactId>jboss-osgi-common</artifactId> > <version>${version}</version> > </dependency> > 'mvn package' fails if the artefact is not yet in the local repository > 'mvn install' succeeds > Scenario #3 - the dependent bundle is not part of the reactor build > 'mvn package' or 'mvn install' will always fail when the dependency is > declared with type=bundle > Fazit: > If you declare the dependency with type=bundle, the dependency cannot be > resolved from the repository. > If you don't declare a dependency type, the dependency can only be resolved > from the repository. 'mvn package' will fail if the dependency is not in the > repository. > Workaround: > Don't use type=bundle in the dependency and always install. i.e. 'mvn install' -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira