Re: Multi Module: Deploy and failing modules

2010-01-07 Thread Tony Chemit
Le Thu, 07 Jan 2010 17:04:30 +0100,
Johannes Schneider maili...@cedarsoft.com a écrit :

 Hi,
 
 how do you solve that scenario:
 
 Multi module project that I try to deploy/install after a refactoring.
 Unfortunately one of the later modules fails. Now I have some sort of
 inconsistent snapshot repository. The artifacts within are no longer
 compatible.
 
 I'd prefer a method that first builds all modules and then deploys them
 together...
 
You can do a mvn install and if everything is ok then do a mvn deploy ?

I don't think there is another way to do it...
-- 

Tony Chemit

tél: +33 (0) 2 40 50 29 28
email: che...@codelutin.com  
http://www.codelutin.com 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Multi Module: Deploy and failing modules

2010-01-07 Thread Johannes Schneider
On 01/07/2010 05:14 PM, Tony Chemit wrote:
 You can do a mvn install and if everything is ok then do a mvn deploy ?
 
 I don't think there is another way to do it...

Hmm. great... Hope somebody will fix that in Maven...

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Multi Module: Deploy and failing modules

2010-01-07 Thread Jim McCaskey
Johannes,

As far as I know you pretty much HAVE to do this as a two step process.  The 
way I do it is first call deploy like this:

mvn -DaltDeploymentRepository=repo::default::file://C:\staging-repo deploy

That builds everything to a temporary maven repo that's cleaned out between 
builds.  I then perform this on a successful build:

mvn org.codehaus.mojo:wagon-maven-plugin:1.0-beta-1:merge-maven-repos 
-Dwagon.source=file://C:\staging-repo -Dwagon.target=file://path to mavenrepo 
-Djava.io.tmpdir=deploytemp

It's not graceful, but it works.  YMMV.

I also use Hudson in a couple of places (as another poster suggested) and use 
it's built in deploy feature which also works nicely.

-Jim


-Original Message-
From: Johannes Schneider [mailto:maili...@cedarsoft.com] 
Sent: Thursday, January 07, 2010 10:05 AM
To: Maven Users List
Subject: Multi Module: Deploy and failing modules

Hi,

how do you solve that scenario:

Multi module project that I try to deploy/install after a refactoring.
Unfortunately one of the later modules fails. Now I have some sort of
inconsistent snapshot repository. The artifacts within are no longer
compatible.

I'd prefer a method that first builds all modules and then deploys them
together...


Sincerly,

Johannes

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org