[EMAIL PROTECTED] wrote:
Please explain then what your intended result is, maybe I can help you better
then.
I want to creae a bin distibution which should contain:
site/
my.jar
LICENSE.txt
README.txt
I set you the bin.xml descriptor and set includeSiteDirectory to true
since we know assembly:assembly automaticalla runs package I only have
to run:
mvn clean assembly:assembly
but this will fail because site is not present, I have to run:
mvn clean site assembly:assembly
I want assembly:assembly automatically call site just like it calls package
-----Original Message-----
From: Michael [mailto:[EMAIL PROTECTED]
Sent: Tue 1/15/2008 4:09 PM
To: Maven Users List
Subject: Re: How to make assembly:assembly depend on goals?
[EMAIL PROTECTED] wrote:
Looking at your post again and I think I understand what you want to accomplish.
You want to include inside the assembly the generated site?
Take a look at the Assembly mojo [1] and especially this parameter:
includeSite boolean Set to true to include the site generated by
site:site goal. Default value is false.
I guess that is what you want.
Unfortunately, it isn't for 2 reasons:
1. is is deprecated in favor of includeSiteDirectory in the descriptor file
2. setting to true does *not* run site:site, it just says include it
if you did not run site:site it says:
[INFO]
----------------------------------------------------------------------------org.apache.maven.plugin.MojoFailureException:
site did not exist in the target directory - please run site:site before
creating the assembly
at
org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:261)
-----Original Message-----
From: Michael [mailto:[EMAIL PROTECTED]
Sent: Tue 1/15/2008 3:53 PM
To: Maven Users List
Subject: Re: How to make assembly:assembly depend on goals?
[EMAIL PROTECTED] wrote:
This can be be perfectly done by using the lifecycle of maven. In short, don't
site:site, but call the phase site (thus mvn site instead of mvn site:site).
Also, you could bind the assembly plugin to the package phase and thus run mvn
package instead of mvn assembly:assembly.
Try reading this page for more informatin:
http://www.sonatype.com/book/lifecycle.html
Still seems like a riddle to me.
I am aware about the attached mojo but I cannot say depends on, site,
package but only on one of these too.
I guess, I still don't understand the lifecycle system
Mike
-----Original Message-----
From: Michael [mailto:[EMAIL PROTECTED]
Sent: Tue 1/15/2008 3:37 PM
To: users@maven.apache.org
Subject: How to make assembly:assembly depend on goals?
Hi,
I kinda miss task dependencies like in Ant.
My basic idea is provide a bin distro which easily can be done with
assembly plugin.
But I want assembly:assembly depend on site:site since running
assembly:assembly runs package only in advance.
Is this possible?
Thx,
Mike
--
<NO> OOXML - Say NO To Microsoft Office broken standard
http://www.noooxml.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]