Hi,

In fact I have tried to attach to package phase in build life cycle
(that's why I mentioned I use mvn clean package), but it seems behave 
the same that two builds is triggered.

Any clues on that ?

Thanks  :)

Adrian


-----Original Message-----
From: WAJSBERG Julien RD-BIZZ [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 07, 2008 8:14 PM
To: Maven Users List
Subject: Re: Multi-Module Assembly causing build twice


Adrian Shum a écrit :
> Dear all,
>  
> I am using Maven 2.0.9.  I am trying to create a multi-module assembly
> by having assembly descriptor in my multi-module project.
>  
> ...

>  
> What I am trying to do is I want to put artifiacts to be deployed to 
> our app server in a dedicate directory.
>  
> However, when I try to build my project by mvn clean install, mvn 
> clean package, mvn clean install package or even mvn clean install 
> assembly:assembly, it is found
> that modules in my project is built twice.  It seems that one is
> triggered by normal
> build lifecycle, another one is triggered by the assembly plugin. Is
> that a normal 
> behavior of assembly?  Or did I do something wrong?
>   

Hi,

It is written in the documentation that the "assembly" goal triggers a
new build, and is meant to be called directly with "mvn assembly:assembly".
You should try either "attached" (that is meant to be part of the
lifecycle) or maybe "single" (although I don't understand very well what
this goal is about ;-) )

-- 
Julien

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This email is confidential. If you are not the intended recipient, please 
delete it from your system and notify the sender immediately. Any unauthorized 
use, disclosure, dissemination or copying of this email is prohibited. Taifook 
Securities Group, its group companies and their content providers ("Parties") 
shall not be responsible for the accuracy or completeness of this email or its 
attachment, if any, which could contain virus, be corrupted, destroyed, 
incomplete, intercepted, lost or arrive late.   The Parties do not accept 
liability for any damage caused by this email.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to