You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Reto Bachmann-Gmür <re...@apache.org> on 2012/06/25 16:38:03 UTC
problem with partialbundlelist and trunk version of launchpad plugin
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
Re: problem with partialbundlelist and trunk version of launchpad plugin
Posted by Reto Bachmann-Gmür <re...@apache.org>.
Any example of a standalone launcher that uses the trunk version of the
bundles would be very helpful.
Cheers,
Reto
On Wed, Jun 27, 2012 at 1:44 PM, Reto Bachmann-Gmür <re...@apache.org> wrote:
> Hi Justin
>
> Thanks for your reply, having <extentions>true</extensions> makes sense.
> However I'm having a new problem when setting this option. I'm getting the
> following error:
>
> [ERROR] Failed to execute goal
> org.apache.sling:maven-launchpad-plugin:2.1.1-SNAPSHOT:prepare-package
> (prepare-package) on project sample-jar: Unable to find artifact. Could not
> find artifact
> org.apache.sling:org.apache.sling.launchpad.base:jar:2.3.1-20120501.161847-496
>
> The trunk version I compiled locally is 2.4.1-SNAPSHOT. I'm getting the
> above error desspite specifying version 2.4.1-SNAPSHOT both in the plugin
> as well as in the project dependencies, 2.4.1-SNAPSHOT is also the version
> specified in the dependencyManagement.
>
> Cheers,
> Reto
>
>
> On Tue, Jun 26, 2012 at 1:38 AM, Justin Edelson <ju...@gmail.com>wrote:
>
>> 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 <re...@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
>>
>
>
Re: problem with partialbundlelist and trunk version of launchpad plugin
Posted by Reto Bachmann-Gmür <re...@apache.org>.
Hi Justin
Thanks for your reply, having <extentions>true</extensions> makes sense.
However I'm having a new problem when setting this option. I'm getting the
following error:
[ERROR] Failed to execute goal
org.apache.sling:maven-launchpad-plugin:2.1.1-SNAPSHOT:prepare-package
(prepare-package) on project sample-jar: Unable to find artifact. Could not
find artifact
org.apache.sling:org.apache.sling.launchpad.base:jar:2.3.1-20120501.161847-496
The trunk version I compiled locally is 2.4.1-SNAPSHOT. I'm getting the
above error desspite specifying version 2.4.1-SNAPSHOT both in the plugin
as well as in the project dependencies, 2.4.1-SNAPSHOT is also the version
specified in the dependencyManagement.
Cheers,
Reto
On Tue, Jun 26, 2012 at 1:38 AM, Justin Edelson <ju...@gmail.com>wrote:
> 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 <re...@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
>
Re: problem with partialbundlelist and trunk version of launchpad plugin
Posted by Justin Edelson <ju...@gmail.com>.
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 <re...@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