The consequences are pretty severe. This means I can't run a deploy
and an assembly phase at different times. Because the packaging is
required for the moduleSet type assembly, it will repackage my jar
files, and invalidate any signature created by the pgp plugin and
deployed to other locations.

Is there a way to prevent this from happening?

Martijn

On 3/21/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
All,

I have a question that is bugging me for quite some time regarding
maven 2 and the build lifecycle.

Way back when I didn't use maven yet (2003) we used ant to automate
our build and everything was very efficient: compiles were only done
on java files that were actually changed, javadoc only generated when
a java file had been changed and tests only run ... you catch my
drift.

Now when I create a release using maven 2, I typically want to see if
things compile, test and create jar files from it. Typically one uses
mvn clean package for this feat.

Everything is nice, but when this is done, and you see that it works,
you want to install it into your local repository (nothing has
changed). So you type the magic: mvn install

I expect that this does not compile my classes (the compiler is
called, but rightfully doesn't generate class files again), but then
the unittests kick in. And javadoc, and the source plugin, and the jar
packaging again, before the install into the local repository happens.

If I then decide that it is time to deploy it to my remote repository,
then things get even nicer, because all the previous steps are
repeated again.

The question: why can't maven reuse already existing artifacts in the
target directory with a few simple file timestamps?

Martijn

--
Learn Wicket at ApacheCon Europe: http://apachecon.com
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.5 will keep your server alive. Download Wicket now!
http://wicketframework.org



--
Learn Wicket at ApacheCon Europe: http://apachecon.com
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.5 will keep your server alive. Download Wicket now!
http://wicketframework.org

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

Reply via email to