Yes i'm talking the deploy which adds artifact to maven remote repository

and this what i have in my pom

        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <executions>
           <execution>
                       <id>Tar-Creation</id>
               <goals>
                 <goal>assembly</goal>
               </goals>
               <phase>install</phase>
               <configuration>
 <finalName>${groupId}.${artifactId}.${pom.version}</finalName>
                  <outputDirectory>${tarloc}</outputDirectory>
                  <descriptors>
                     <descriptor>descriptor.xml</descriptor>
                   </descriptors>
             </configuration>
        </execution>
          </executions>
       </plugin>

and then when i ran mvn -e clean deploy

1. it first runs regular life cycle compile>package>install
        at install first it installs my artifact, then comes to above 
shown pom section then starts running assembly

2. but assembly again starts with compile>package>
        then install artifacts & my binary tar file
        then deploys my binary and tar file

So coz of this every time i run this 2 times of compilation of sourcecode 
happening, coz the goal assembly starts a new maven life cycle, is there 
way to avoid it??




Thanks,
Raghu 





"Wayne Fay" <[EMAIL PROTECTED]>
04/26/2006 09:38 PM
Please respond to "Maven Users List"

 
        To:     "Maven Users List" <[email protected]>
        cc: 
        Subject:        Re: how to deploy binaries


To be clear, what do you want Maven to do during the deploy phase? In
Maven, deploy means "add artifact to a remote repository."

Here's the deploy plugin webpage:
http://maven.apache.org/plugins/maven-deploy-plugin/introduction.html

Some people use the J2EE meaning of the word "deploy", that is, "copy
a EAR/WAR to a J2EE server."

Before we can talk about "deploying" your binary, let's make sure
we're talking about the same thing... Also, perhaps you can send the
relevant portion of your pom.xml file?

Wayne

On 4/26/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I followed How do I deploy my binary during the deploy phase? @  
> http://docs.codehaus.org/display/MAVENUSER/FAQs-1
>
> But whats happning is my build getting executed twice when i run mvn
> deploy
>
> why?
>
> Thanks,
> Raghu
>
>


Reply via email to