I can't remember all of the details, but something like this will probably 
solve it:

      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>attached</goal>
            </goals>
            <phase>package</phase>
          </execution>
        </executions>
        <configuration>
          <descriptor>target/dep.xml</descriptor>
        </configuration>
      </plugin>

So specify the attached goal as opposed to the assembly goal.

Cheers,

Wilfred

-----Original Message-----
From: pjungwir [mailto:[EMAIL PROTECTED]
Sent: Tue 10/10/2006 12:50 AM
To: [email protected]
Subject: assembly:assembly does everything twice
 

Hello,

I tried binding the assembly plugin to the package phase, so it would just
be part of my regular build. Here is what my pom says:

          <plugin>
              <artifactId>maven-assembly-plugin</artifactId>
              <executions>
                  <execution>
                      <id>assembly</id>
                      <phase>package</phase>
                      <goals><goal>assembly</goal></goals>
                      <configuration>
                          <descriptor>assembly.xml</descriptor>
                      </configuration>
                  </execution>
              </executions>
          </plugin>

But I see that when I type "mvn package," everything runs twice:
compilation, tests, etc. Fortunately for compile at least, the plugin is
smart enough not to recompile everything. But this still seems very strange.
Is there an explanation? It didn't happen when I ran "mvn clean
assembly:assembly"; then things like compilation happened, but only once.

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/assembly%3Aassembly-does-everything-twice-tf2413291.html#a6727120
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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

Reply via email to