You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Grzegorz Slowikowski <gs...@gmail.com> on 2007/01/15 13:50:05 UTC
Re: [jira] Commented: (MSOURCES-8) maven-source-plugin causes generate-sources phase to execute twice
Hi
This is not the first problem with cycle forking. The others I know are:
- test coverage checking with clover plugin
- jspc plugin (codehaus mojo) - forking was removed
Do you have any idea, what to do with it?
Grzegorz Slowikowski
----- Original Message -----
From: "Chris Hilton (JIRA)" <ji...@codehaus.org>
To: <is...@maven.apache.org>
Sent: Sunday, January 14, 2007 5:29 PM
Subject: [jira] Commented: (MSOURCES-8) maven-source-plugin causes
generate-sources phase to execute twice
> [
> http://jira.codehaus.org/browse/MSOURCES-8?page=comments#action_84969 ]
>
> Chris Hilton commented on MSOURCES-8:
> -------------------------------------
>
> I don't think that's a very satisfactory answer. Ensuring the
> generate-sources phase runs first is fine, but it needs to be done in such
> a way that it's not repeated in a normal build process. This is
> potentially buggy and could cause a lot of useless overhead. I would
> suggest at least one of the following:
>
> 1) Remove the @execute phase. If someone wants to generate a source jar
> from the command line ensuring they get all generated source, they can do
> 'mvn generate-sources source:jar'. Still not ideal, but it's a bug with a
> workaround and happens far less often (on the rare occasion someone builds
> a source jar from the command line) instead of every single time a build
> occurs.
>
> 2) If detecting that the generate-sources phase has already run is not
> something that the plugin can do, then there should be a bug to the Maven
> framework for just this sort of situation. I know similar situations
> happen with testing and code coverage.
>
> 3) At the very least, this bug should remain open to be addressed at a
> later date; perhaps downgrade the priority to minor, though.
>
...
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org