You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Andy DePue <an...@marathon-man.com> on 2007/02/28 02:03:46 UTC
Bug? Maven always rebuilds .jar because of pom.properties
I've been moving a (multi module) project over to maven 2 and notice
that whenever I execute:
mvn install
Each module's .jar is rebuilt, even if nothing has changed. I turned on
debug output, and I can see the reason why:
[DEBUG] isUp2date: false (Input file /...path to
module.../pom.properties is newer.)
After googling, I've discovered that pom.properties is a file that is
temporarily created by maven to be included in the resulting .jar
artifact. It is also automatically deleted by maven before the build
finishes. This means that pom.properties will ALWAYS be newer than the
module's artifact (since it is automatically generated on every build),
which means the .jar will ALWAYS be rebuilt. In a large build (such as
mine), the overhead of re-jaring every module can be significant.
Is this a bug, or am I missing something here?
Thanks,
Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Bug? Maven always rebuilds .jar because of pom.properties
Posted by Jochen Wiedmann <jo...@gmail.com>.
On 2/28/07, Andy DePue <an...@marathon-man.com> wrote:
> Each module's .jar is rebuilt, even if nothing has changed. I turned on
> debug output, and I can see the reason why:
> [DEBUG] isUp2date: false (Input file /...path to
> module.../pom.properties is newer.)
Thanks for detecting this, I was always annoyed by the problem, but
never took the time to evaluate it. I have filed a patch at
http://jira.codehaus.org/browse/MNG-2854
Jason, any chance to get this into 2.0.6?
Thanks,
Jochen
--
Emacs 22 will support MacOS and CygWin. It is not yet decided, whether
these will be used to run Emacs or the other way round.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org