Hi Yossi,
See http://docs.codehaus.org/display/MAVENUSER/FAQs
and look for the question "How to execute the assembly plugin with
different configurations?"
let me know if it works :)
regards,
-allan
Yossi Shaul wrote:
I run the command "mvn deploy" (for some reason mvn
install doesn’t activate the plugin, compile and
package cause it to run infinitely).
When I put the configuration node directly under the
plugin node it doesn’t complain but then the
plugin executes only once.
Did you try running it with different configurations?
Can you send me what you tried?
Thanks,
Yossi
--- Nik Gonzalez <[EMAIL PROTECTED]> wrote:
Hi Yossi,
I tried this before and it worked. You're pom seems
to be correct.
What mvn command did you run? This will only work if
you executed mvn
install or deploy.
Thanks.
-Nik
Allan Ramirez wrote:
Hi Yossi,
I tried something like this before and it worked
for me. :)
regards,
-allan
Yossi Shaul wrote:
Is it possible to execute the assembly plugin
multiple
times with different configurations during
install
phase?
For example, I want to assemble bin and source
archives (with specific files) during the install
phase. I tried the following:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>asm1</id>
<phase>install</phase>
<goals>
<goal>assembly</goal>
</goals>
<configuration>
<descriptor>src/main/assembly/src.xml</descriptor>
<finalName>asm-bin</finalName>
<outputDirectory>target/src</outputDirectory>
<workDirectory>target/temp-src</workDirectory>
</configuration>
</execution>
<execution>
<id>asm2</id>
<phase>install</phase>
<goals>
<goal>assembly</goal>
</goals>
<configuration>
<descriptor>src/main/assembly/bin.xml</descriptor>
<finalName>asm-bin</finalName>
<outputDirectory>target/bin</outputDirectory>
<workDirectory>target/temp-bin</workDirectory>
</configuration>
</execution>
</executions>
</plugin>
But I’m getting an error message saying
“You must specify descriptor or
descriptorId”
Thanks,
Yossi
__________________________________ Start your day
with Yahoo! - Make
it your home page! http://www.yahoo.com/r/hs
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
__________________________________________
Yahoo! DSL – Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.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]