You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Torgeir Veimo <to...@pobox.com> on 2009/01/02 07:04:20 UTC

Re: modify resource bundle jar file

On 30 Dec 2008, at 06:40, Felix Meschberger wrote:

> (1) To upload with the Maven Sling Plugin: you may build and deploy  
> in a
> single Maven call:
>
>   $ mvn clean package \
>       -Dsling.url=http://localhost:8888/system/console \
>       org.apache.sling:maven-sling-plugin:2.0.2-incubator:install


Where is the sling maven plugin located? maven complains it cannot  
find it in the default repositories.

Will this command update all the deployed sling bundles?

-- 
Torgeir Veimo
torgeir@pobox.com





Re: modify resource bundle jar file

Posted by Felix Meschberger <fm...@gmail.com>.
Hi,

Torgeir Veimo schrieb:
> 
> On 30 Dec 2008, at 06:40, Felix Meschberger wrote:
> 
>> (1) To upload with the Maven Sling Plugin: you may build and deploy in a
>> single Maven call:
>>
>>   $ mvn clean package \
>>       -Dsling.url=http://localhost:8888/system/console \
>>       org.apache.sling:maven-sling-plugin:2.0.2-incubator:install
> 
> 
> Where is the sling maven plugin located? maven complains it cannot find
> it in the default repositories.

The plugin is located in the Apache Incubator repository at [1]

> 
> Will this command update all the deployed sling bundles?
> 

No, this will just send the artifact of the bundle, if the bundle
happens to be a bundle. Otherwise nothing happens.

Regards
Felix

Re: modify resource bundle jar file

Posted by Felix Meschberger <fm...@gmail.com>.
Hi,

Torgeir Veimo schrieb:
> 
> On 2 Jan 2009, at 16:04, Torgeir Veimo wrote:
> 
>>
>> On 30 Dec 2008, at 06:40, Felix Meschberger wrote:
>>
>>> (1) To upload with the Maven Sling Plugin: you may build and deploy in a
>>> single Maven call:
>>>
>>>  $ mvn clean package \
>>>      -Dsling.url=http://localhost:8888/system/console \
>>>      org.apache.sling:maven-sling-plugin:2.0.2-incubator:install
>>
>>
>> Where is the sling maven plugin located? maven complains it cannot
>> find it in the default repositories.
> 
> It looks like it's running ok if invoked in the launchpad directory.
> 
>> Will this command update all the deployed sling bundles?
> 
> 
> It does not seem to work for the launchpad though. It get the following;
> 
> [INFO]
> /Users/torgeir/java/src/sling/sling/launchpad/webapp/target/org.apache.sling.launchpad.webapp-4-incubator-SNAPSHOT.jar
> is not an OSGi Bundle, not uploading
> 
> Is there a way to update the complete launchpad instance in one go?
> 

Hmm, unfortunately, there is no easy way, yet. This is one of the tasks
we have to tackle for releases to come.

One option would be to just run the "mvn clean instal sling:install"
command from the sling root checkout, which would run the plugin for
each plugin project being built and thus ultimately will update all bundles.

Another option is to stop sling, remove the ${sling.home}/felix folder
and launch a new sling build. This causes the bundles to be installed
again. The drawback of this option is, that this will also remove any
non-Sling bundles, which might not be a good idea.

Regards
Felix

Re: modify resource bundle jar file

Posted by Torgeir Veimo <to...@pobox.com>.
On 2 Jan 2009, at 16:04, Torgeir Veimo wrote:

>
> On 30 Dec 2008, at 06:40, Felix Meschberger wrote:
>
>> (1) To upload with the Maven Sling Plugin: you may build and deploy  
>> in a
>> single Maven call:
>>
>>  $ mvn clean package \
>>      -Dsling.url=http://localhost:8888/system/console \
>>      org.apache.sling:maven-sling-plugin:2.0.2-incubator:install
>
>
> Where is the sling maven plugin located? maven complains it cannot  
> find it in the default repositories.

It looks like it's running ok if invoked in the launchpad directory.

> Will this command update all the deployed sling bundles?


It does not seem to work for the launchpad though. It get the following;

[INFO] /Users/torgeir/java/src/sling/sling/launchpad/webapp/target/ 
org.apache.sling.launchpad.webapp-4-incubator-SNAPSHOT.jar is not an  
OSGi Bundle, not uploading

Is there a way to update the complete launchpad instance in one go?

-- 
Torgeir Veimo
torgeir@pobox.com