Reto- I believe you are missing <extensions>true</extensions> from the maven-launchpad-plugin block (as a direct child of <plugin> NOT in the plugin configuration). Without this, Maven doesn't know how to handle partial bundle list artifacts.
Regards, Justin On Jun 25, 2012, at 10:38 AM, Reto Bachmann-Gmür <r...@apache.org> wrote: > Hello, > > I'm having troubles with partialbundlelists and the trunk version of the > maven-launchpad-plugin and would be gratefull for some help. > > I'm getting: > > [ERROR] Failed to execute goal on project sample-jar: Could not resolve > dependencies for project sample:sample-jar:jar:1-SNAPSHOT: Could not find > artifact > org.apache.sling:org.apache.sling.launchpad.test-bundles:partialbundlelist:0.0.1-SNAPSHOT > -> [Help 1] > > Even though I compiled the partialbundlelist project and it is in the local > repo > > $ ls > ~/.m2/repository/org/apache/sling/org.apache.sling.launchpad.test-bundles/0.0.1-SNAPSHOT/ > maven-metadata-local.xml > org.apache.sling.launchpad.test-bundles-0.0.1-SNAPSHOT.pom > _maven.repositories > org.apache.sling.launchpad.test-bundles-0.0.1-SNAPSHOT-sources.jar > org.apache.sling.launchpad.test-bundles-0.0.1-SNAPSHOT-bundlelistconfig.zip.lastUpdated > org.apache.sling.launchpad.test-bundles-0.0.1-SNAPSHOT.xml > org.apache.sling.launchpad.test-bundles-0.0.1-SNAPSHOT.partialbundlelist.lastUpdated > > > This is how my pom looks like: > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" > http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> > > <modelVersion>4.0.0</modelVersion> > > <groupId>sample</groupId> > <artifactId>sample-jar</artifactId> > <packaging>jar</packaging> > <version>1-SNAPSHOT</version> > > <name>Sample Launchpad Jar</name> > <description> > A Sample Launchpad Jar... > </description> > > <build> > <plugins> > <plugin> > <groupId>org.apache.sling</groupId> > <artifactId>maven-launchpad-plugin</artifactId> > <version>2.1.1-SNAPSHOT</version> > <executions> > <execution> > <id>prepare-package</id> > <goals> > <goal>prepare-package</goal> > </goals> > </execution> > <execution> > <id>prepare-package-jar</id> > <goals> > <goal>prepare-package</goal> > </goals> > <configuration> > <packaging>jar</packaging> > </configuration> > </execution> > <execution> > <id>attach-bundle-list</id> > <goals> > <goal>attach-bundle-list</goal> > </goals> > </execution> > </executions> > <configuration> > <defaultBundleList> > <!-- only need this until the next release --> > <version>7-SNAPSHOT</version> > </defaultBundleList> > <additionalBundles> > <bundle> > <groupId>org.apache.felix</groupId> > <artifactId>org.apache.felix.shell</artifactId> > <version>1.4.2</version> > <startLevel>20</startLevel> > </bundle> > </additionalBundles> > </configuration> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-jar-plugin</artifactId> > <configuration> > <archive> > <manifest> > > <mainClass>org.apache.sling.launchpad.app.Main</mainClass> > </manifest> > </archive> > > </configuration> > </plugin> > > </plugins> > </build> > > <dependencies> > <dependency> > <groupId>org.apache.sling</groupId> > <artifactId>org.apache.sling.launchpad.base</artifactId> > <version>2.3.1-SNAPSHOT</version> > <classifier>app</classifier> > <scope>provided</scope> > </dependency> > <!-- The test services bundles --> > <dependency> > <groupId>org.apache.sling</groupId> > > <artifactId>org.apache.sling.launchpad.test-bundles</artifactId> > <version>0.0.1-SNAPSHOT</version> > <type>partialbundlelist</type> > </dependency> > </dependencies> > </project> > > > Without the last dependency it compiles fine. I did not modify the > test-bundles project. > > Cheers, > Reto