You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Bertrand Delacretaz <bd...@apache.org> on 2009/09/17 12:23:03 UTC
Re: Easiest way to use newest org.apache.sling.launchpad.base.jar in
standalone Sling app
On Wed, Sep 16, 2009 at 10:26 PM, Mike Müller <mi...@mysign.ch> wrote:
> ...I tried to use the newest
> org.apache.sling.launchpad.base.jar to test SLING-922....
> ...So maybe my question is a little bit silly: What is the right
> and eaysiest way to that?...
Checking with mvn dependency:resolve, launchpad/app correctly depends
on launchpad.base:jar:app:2.0.5-SNAPSHOT, so building as follows
should work:
cd launchpad/base
mvn clean install
cd ../app
mvn clean install
java -jar target/org...
And a full build at the top of the source code tree should work as well.
-Bertrand
Re: Easiest way to use newest org.apache.sling.launchpad.base.jar in
standalone Sling app
Posted by Bertrand Delacretaz <bd...@gmail.com>.
Hi Mike,
On Thu, Sep 17, 2009 at 1:58 PM, Mike Müller <mi...@mysign.ch> wrote:
> ...If you build launchpad/app it's using
> launchpad.base 2.0.4-INCUBATOR for the launcher-jar because of the
> launchpad/app/pom.xml...
Ok, got it now, the launchpad.base version is declared twice (argh) in
that pom, and both instances were out of sync.
Should be fixed in revision 816170 - I also added warnings to the pom
to make sure we keep both versions in sync (and there must be a better
way).
-Bertrand
RE: Easiest way to use newest org.apache.sling.launchpad.base.jar
in standalone Sling app
Posted by Mike Müller <mi...@mysign.ch>.
> > ...I tried to use the newest
> > org.apache.sling.launchpad.base.jar to test SLING-922....
>
> > ...So maybe my question is a little bit silly: What is the right
> > and eaysiest way to that?...
>
> Checking with mvn dependency:resolve, launchpad/app correctly depends
> on launchpad.base:jar:app:2.0.5-SNAPSHOT, so building as follows
> should work:
>
> cd launchpad/base
> mvn clean install
> cd ../app
> mvn clean install
> java -jar target/org...
>
> And a full build at the top of the source code tree should
> work as well.
> -Bertrand
Unfortunately that's not the case. If you build launchpad/app it's using
launchpad.base 2.0.4-INCUBATOR for the launcher-jar because of the
launchpad/app/pom.xml:
<id>copy-launcher-jar</id>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.launchpad.base</artifactId>
<version>2.0.4-incubator</version>
</artifactItem>
</artifactItems>
<stripVersion>true</stripVersion>
<excludeTransitive>true</excludeTransitive>
<outputDirectory>
${project.build.outputDirectory}/resources
</outputDirectory>
</configuration>
Maybe this version should be changed to 2.0.5-INCUBATOR?
best regards
mike