Bertrand-
You have to specify the bundle list version like this:

                        <configuration>
                            <defaultBundleList>
                                <version>6-SNAPSHOT</version>
                            </defaultBundleList>
                        </configuration>

The reason for this is that I hardcoded "RELEASE" as the version in the
plugin. But we haven't released launchpad in the new form, so until
that's done, you have to manually specify the version.

I guess there's no reason the launchpad plugin can't be changed to have
6-SNAPSHOT hardcoded until it is released. But actually I'd like to
release the plugin soon.

I can also take a look at making this error message a bit nicer.

Incidentally, you *don't* need to specify <packaging>jar</packaging>
because the packaging of your project is already jar.

Justin


On 2/17/10 11:07 AM, Bertrand Delacretaz wrote:
> Hi,
> 
> I'm trying to create the simplest pom.xml that creates a runnable
> Sling jar, based on the docs at
> http://sling.apache.org/site/maven-launchpad-plugin.html
> 
> With the pom shown below I get this (somewhat cryptic) error:
> 
> Embedded error: Unable to find artifact.
> Unable to determine the release version
> ...
>   org.apache.sling:org.apache.sling.launchpad:xml:RELEASE
> 
> What am I missing?
> -Bertrand
> 
> my pom:
> 
> <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>org.apache.sling</groupId>
>   <artifactId>minimal-launchpad-plugin-test</artifactId>
>   <packaging>jar</packaging>
>   <version>1.0-SNAPSHOT</version>
>   <name>slinger</name>
>   <url>http://maven.apache.org</url>
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.sling</groupId>
>         <artifactId>maven-launchpad-plugin</artifactId>
>         <executions>
>           <execution>
>             <id>prepare-package</id>
>             <goals>
>               <goal>prepare-package</goal>
>             </goals>
>             <configuration>
>               <packaging>jar</packaging>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
>     </plugins>
>   </build>
> </project>

Reply via email to