You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by "Phillpotts, James" <Ja...@experian.com> on 2012/06/26 16:06:07 UTC

Sling content location using maven-launchpad-plugin:start

Hi all,

I'm using the maven-launchpad-plugin to run sling while I perform some
cucumber tests against it. This works fine until I try to re-run the
build a subsequent time, because some of the leftovers from the last run
is left in the $PWD/sling directory.

Even if I do mvn clean integration-test, this directory is still left,
because it's not been put in the target directory. Is there any way to
get it to do so?

Cheers,
James


PS. Sorry for legalese...



Information in this e-mail and any attachments is confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other binding commitment through the use of this electronic communication unless it is issued in accordance with the Experian Limited standard terms and conditions of purchase or other express written agreement between Experian Limited and the recipient. Although Experian has taken reasonable steps to ensure that this communication and any attachments are free from computer virus, you are advised to take your own steps to ensure that they are actually virus free. 

Companies Act information: Registered name: Experian Limited. Registered office: Landmark House, Experian Way, NG2 Business Park, Nottingham, NG80 1ZZ, United Kingdom. Place of registration: England and Wales. Registered number: 653331


RE: Sling content location using maven-launchpad-plugin:start

Posted by "Phillpotts, James" <Ja...@experian.com>.
Hi Robert,

Yep, that sounds like a good workaround, thanks!

Cheers,
James

-----Original Message-----
From: Robert Munteanu [mailto:rmuntean@adobe.com] 
Sent: 26 June 2012 15:12
To: users@sling.apache.org
Subject: RE: Sling content location using maven-launchpad-plugin:start

Hi James,

> -----Original Message-----
> From: Phillpotts, James [mailto:James.Phillpotts@experian.com]
> Sent: Tuesday, June 26, 2012 5:06 PM
> To: users@sling.apache.org
> Subject: Sling content location using maven-launchpad-plugin:start
> 
> Hi all,
> 
> I'm using the maven-launchpad-plugin to run sling while I perform some

> cucumber tests against it. This works fine until I try to re-run the 
> build a subsequent time, because some of the leftovers from the last 
> run is left in the $PWD/sling directory.
> 
> Even if I do mvn clean integration-test, this directory is still left,

> because it's not been put in the target directory. Is there any way to

> get it to do so?

If you want the sling directory to be cleaned up you should configure
the maven-clean-plugin to do so [1] . 

I suppose that sling was not placed inside target to prevent `mvn clean`
from wiping out data in the repository while doing development.

Robert

[1]:
http://maven.apache.org/plugins/maven-clean-plugin/clean-mojo.html#files
ets
> 
> Cheers,
> James
> 
> 
> PS. Sorry for legalese...
> 
> 
> 
> Information in this e-mail and any attachments is confidential, and 
> may not be copied or used by anyone other than the addressee, nor 
> disclosed to any third party without our permission. There is no 
> intention to create any legally binding contract or other binding 
> commitment through the use of this electronic communication unless it 
> is issued in accordance with the Experian Limited standard terms and 
> conditions of purchase or other express written agreement between 
> Experian Limited and the recipient. Although Experian has taken 
> reasonable steps to ensure that this communication and any attachments

> are free from computer virus, you are advised to take your own steps 
> to ensure that they are actually virus free.
> 
> Companies Act information: Registered name: Experian Limited.
> Registered office: Landmark House, Experian Way, NG2 Business Park, 
> Nottingham, NG80 1ZZ, United Kingdom. Place of registration: England 
> and Wales. Registered number: 653331


RE: Sling content location using maven-launchpad-plugin:start

Posted by Robert Munteanu <rm...@adobe.com>.
Hi James,

> -----Original Message-----
> From: Phillpotts, James [mailto:James.Phillpotts@experian.com]
> Sent: Tuesday, June 26, 2012 5:06 PM
> To: users@sling.apache.org
> Subject: Sling content location using maven-launchpad-plugin:start
> 
> Hi all,
> 
> I'm using the maven-launchpad-plugin to run sling while I perform some
> cucumber tests against it. This works fine until I try to re-run the
> build a subsequent time, because some of the leftovers from the last
> run
> is left in the $PWD/sling directory.
> 
> Even if I do mvn clean integration-test, this directory is still left,
> because it's not been put in the target directory. Is there any way to
> get it to do so?

If you want the sling directory to be cleaned up you should configure the maven-clean-plugin to do so [1] . 

I suppose that sling was not placed inside target to prevent `mvn clean` from wiping out data in the repository while doing development.

Robert

[1]: http://maven.apache.org/plugins/maven-clean-plugin/clean-mojo.html#filesets
> 
> Cheers,
> James
> 
> 
> PS. Sorry for legalese...
> 
> 
> 
> Information in this e-mail and any attachments is confidential, and may
> not be copied or used by anyone other than the addressee, nor disclosed
> to any third party without our permission. There is no intention to
> create any legally binding contract or other binding commitment through
> the use of this electronic communication unless it is issued in
> accordance with the Experian Limited standard terms and conditions of
> purchase or other express written agreement between Experian Limited
> and the recipient. Although Experian has taken reasonable steps to
> ensure that this communication and any attachments are free from
> computer virus, you are advised to take your own steps to ensure that
> they are actually virus free.
> 
> Companies Act information: Registered name: Experian Limited.
> Registered office: Landmark House, Experian Way, NG2 Business Park,
> Nottingham, NG80 1ZZ, United Kingdom. Place of registration: England
> and Wales. Registered number: 653331