You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Dennis Lundberg <de...@apache.org> on 2008/04/01 21:12:57 UTC
[regression] Cannot release plugins parent!
I've stumbled upon some kind of regression trying to release the plugins
parent. I'm not sure where the regression is though. Sigh!
I have to use Maven 2.0.8, because maven-javadoc-plugin apparently
requires 2.0.8 now. But if I do the build fails with an error because of
a circular dependency. Now IMHO both of these errors are bogus and
shouldn't even be considered, because I'm running in non-recursive mode.
Using Maven 2.0.8:
G:\apache\maven\tags\plugins-trunk>mvn -N release:prepare -DdryRun=true
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Plugins
[INFO] task-segment: [release:prepare] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] [release:prepare]
[INFO] Verifying that there are no local modifications...
[INFO] Executing: svn --non-interactive status
[INFO] Working directory: G:\apache\maven\tags\plugins-trunk
[INFO] Checking dependencies and plugins for snapshots ...
What is the release version for "Maven Plugins"?
(org.apache.maven.plugins:maven-plugins) 11: :
What is SCM release tag or label for "Maven Plugins"?
(org.apache.maven.plugins:maven-plugins) maven-plugins-11: :
What is the new development version for "Maven Plugins"?
(org.apache.maven.plugins:maven-plugins) 12-SNAPSHOT: :
[INFO] Transforming 'Maven Plugins'...
[INFO] Not generating release POMs
[INFO] Executing preparation goals - since this is simulation mode it is
running against the original project, not the rewritten ones
[INFO] Executing goals 'clean verify'...
[INFO] Executing: mvn clean verify --no-plugin-updates -Prelease
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] The projects in the reactor contain a cyclic reference:
Edge between 'Vertex{label='org.apache.maven.plugins:maven-gpg-plugin'}'
and 'Vertex{label='org.apache.maven.plugins:maven-deploy-plugin'}'
introduces to cycle in the graph
org.apache.maven.plugins:maven-deploy-plugin -->
org.apache.maven.plugins:maven-gpg-plugin -->
org.apache.maven.plugins:maven-deploy-plugin
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Apr 01 20:51:04 CEST 2008
[INFO] Final Memory: 4M/8M
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Maven execution failed, exit code: '1'
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 11 seconds
[INFO] Finished at: Tue Apr 01 20:51:04 CEST 2008
[INFO] Final Memory: 4M/8M
[INFO]
------------------------------------------------------------------------
Using Maven 2.0.6 or 2.0.7:
G:\apache\maven\tags\plugins-trunk>mvn -N release:prepare -DdryRun=true
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Plugins
[INFO] task-segment: [release:prepare] (aggregator-style)
[INFO]
----------------------------------------------------------------------------
[INFO] [release:prepare]
[INFO] Resuming release from phase 'run-preparation-goals'
[INFO] Executing preparation goals - since this is simulation mode it is
running against the original project, not the rewritten ones
[INFO] Executing goals 'clean verify'...
[INFO] Executing: mvn clean verify --no-plugin-updates -Prelease
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Unable to build project
'G:\apache\maven\tags\plugins-trunk\maven-javadoc-plugin\pom.xml; it
requires Maven version 2.0.8
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Apr 01 20:55:39 CEST 2008
[INFO] Final Memory: 3M/6M
[INFO]
------------------------------------------------------------------------
[INFO] Full run would be checking in 1 files with message:
'[maven-release-plugin] prepare release maven-plugins-11'
[INFO] Full run would be tagging G:\apache\maven\tags\plugins-trunk with
label: 'maven-plugins-11'
[INFO] Transforming 'Maven Plugins'...
[INFO] Not removing release POMs
[INFO] Full run would be checking in 1 files with message:
'[maven-release-plugin] prepare for next development iteration'
[INFO] Release preparation simulation complete.
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Tue Apr 01 20:55:39 CEST 2008
[INFO] Final Memory: 4M/9M
[INFO]
------------------------------------------------------------------------
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [regression] Cannot release plugins parent!
Posted by Michael McCallum <gh...@apache.org>.
On Mon, 14 Apr 2008 05:53:50 David Jencks wrote:
> a. Put the parent pom somewhere else, like in plugins/trunk/plugin-
> parent. The pom in plugins/trunk would just have the modules element.
>
> I prefer (a) because then tagging the parent pom wont copy the entire
> set of plugins in a unreleased state into the svn tag for the
> released parent pom which in my view creates unnecessary confusion
> for anyone trying to understand what's going on in svn.
Big fan of this... aggregation != inheritance
--
Michael McCallum
Enterprise Engineer
mailto:gholam@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [regression] Cannot release plugins parent!
Posted by David Jencks <da...@yahoo.com>.
On Apr 13, 2008, at 1:21 AM, Benjamin Bentmann wrote:
> Brian E. Fox wrote:
>> I saw leave it as it is because that is the normal scenario and
>> the one
>> users are most likely to have. This way we see and fix the same
>> things
>> they will need.
>
> +1. The reactor was meant for exactly those aggregating builds. The
> usual way to disable recursive builds is the -N flag. If that's
> causing problems with the Release Plugin, we should fix the cause,
> not the symptom.
Really? I think the situation in plugins bears closer examination.
It seems to me that both the reactor and release plugin work best
with groups of projects where the directory layout matches the pom
inheritance. This is decidedly NOT the case in plugins, as the
parent pom for each plugin is a released version of the parent, not
the version in the parent directory. Clearly in such an environment
releasing the entire tree at once is not intended and the build
should be set up to make sure it doesn't happen.
The current setup combines two completely separate functions:
1. providing a single parent pom for all the plugins: normally each
plugin in trunk will use a (possibly different) released version of
the parent pom as parent, and never the snapshot version above it in
the directory tree.
2. providing a convenience method of building all the plugins at
once. This should never be activated when releasing the parent pom.
Unless you are running a CI setup or looking for regressions from
activity elsewhere you almost certainly don't want to run this build.
The current setup mixes up these two functions and IIUC trying to
release the parent will activate building and probably releasing all
the individual plugins. I know of two easy ways to separate these
two unrelated functions:
a. Put the parent pom somewhere else, like in plugins/trunk/plugin-
parent. The pom in plugins/trunk would just have the modules element.
b. Put the list of modules in a profile where the release plugin
won't see it.
I prefer (a) because then tagging the parent pom wont copy the entire
set of plugins in a unreleased state into the svn tag for the
released parent pom which in my view creates unnecessary confusion
for anyone trying to understand what's going on in svn.
Are there any other situations where having the release plugin ignore
the modules element would be appropriate?
thanks
david jencks
>
>
> Benjamin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [regression] Cannot release plugins parent!
Posted by Benjamin Bentmann <be...@udo.edu>.
Brian E. Fox wrote:
> I saw leave it as it is because that is the normal scenario and the one
> users are most likely to have. This way we see and fix the same things
> they will need.
+1. The reactor was meant for exactly those aggregating builds. The usual
way to disable recursive builds is the -N flag. If that's causing problems
with the Release Plugin, we should fix the cause, not the symptom.
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
RE: [regression] Cannot release plugins parent!
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
I saw leave it as it is because that is the normal scenario and the one
users are most likely to have. This way we see and fix the same things
they will need.
-----Original Message-----
From: David Jencks [mailto:david_jencks@yahoo.com]
Sent: Saturday, April 12, 2008 7:26 PM
To: Maven Developers List
Subject: Re: [regression] Cannot release plugins parent!
For a situation like this where a "parent" is also being used
sometimes for building all the "children" although that is not its
primary purpose, how about putting the modules in a profile that e.g.
hudson can use?
thanks
david jencks
On Apr 12, 2008, at 4:18 PM, Brian E. Fox wrote:
> Yes that's one reason. I often go into that folder and do a top to
> bottom build or resolve all dependencies etc. Modules is a normal part
> of the build hierarchy and we should start axing it out because of a
> release plugin bug. If you want to comment it out so you can do your
> release and put it back after, then that's ok.
>
> -----Original Message-----
> From: Dennis Lundberg [mailto:dennisl@apache.org]
> Sent: Saturday, April 12, 2008 5:55 PM
> To: Maven Developers List
> Subject: Re: [regression] Cannot release plugins parent!
>
> Is that to prevent you from having to set up 39 individual projects in
> Hudson (or any other CI server) ?
>
> Brian E. Fox wrote:
>> Hudson uses this to detect the children so we need this in there.
>>
>> -----Original Message-----
>> From: Benjamin Bentmann [mailto:benjamin.bentmann@udo.edu]
>> Sent: Saturday, April 12, 2008 8:47 AM
>> To: Maven Developers List
>> Subject: Re: [regression] Cannot release plugins parent!
>>
>>> What is the purpose of having a <modules> element for our plugins?
>> It's
>>> not like we want to build all plugins in one go, is it?
>>
>> Hudson used to do this if I remember correctly (the plugin ITs
>> seem to
>> have
>> been removed recently).
>>
>>
>> Benjamin
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>
>
> --
> Dennis Lundberg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [regression] Cannot release plugins parent!
Posted by David Jencks <da...@yahoo.com>.
For a situation like this where a "parent" is also being used
sometimes for building all the "children" although that is not its
primary purpose, how about putting the modules in a profile that e.g.
hudson can use?
thanks
david jencks
On Apr 12, 2008, at 4:18 PM, Brian E. Fox wrote:
> Yes that's one reason. I often go into that folder and do a top to
> bottom build or resolve all dependencies etc. Modules is a normal part
> of the build hierarchy and we should start axing it out because of a
> release plugin bug. If you want to comment it out so you can do your
> release and put it back after, then that's ok.
>
> -----Original Message-----
> From: Dennis Lundberg [mailto:dennisl@apache.org]
> Sent: Saturday, April 12, 2008 5:55 PM
> To: Maven Developers List
> Subject: Re: [regression] Cannot release plugins parent!
>
> Is that to prevent you from having to set up 39 individual projects in
> Hudson (or any other CI server) ?
>
> Brian E. Fox wrote:
>> Hudson uses this to detect the children so we need this in there.
>>
>> -----Original Message-----
>> From: Benjamin Bentmann [mailto:benjamin.bentmann@udo.edu]
>> Sent: Saturday, April 12, 2008 8:47 AM
>> To: Maven Developers List
>> Subject: Re: [regression] Cannot release plugins parent!
>>
>>> What is the purpose of having a <modules> element for our plugins?
>> It's
>>> not like we want to build all plugins in one go, is it?
>>
>> Hudson used to do this if I remember correctly (the plugin ITs
>> seem to
>> have
>> been removed recently).
>>
>>
>> Benjamin
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>
>
> --
> Dennis Lundberg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
RE: [regression] Cannot release plugins parent!
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Yes that's one reason. I often go into that folder and do a top to
bottom build or resolve all dependencies etc. Modules is a normal part
of the build hierarchy and we should start axing it out because of a
release plugin bug. If you want to comment it out so you can do your
release and put it back after, then that's ok.
-----Original Message-----
From: Dennis Lundberg [mailto:dennisl@apache.org]
Sent: Saturday, April 12, 2008 5:55 PM
To: Maven Developers List
Subject: Re: [regression] Cannot release plugins parent!
Is that to prevent you from having to set up 39 individual projects in
Hudson (or any other CI server) ?
Brian E. Fox wrote:
> Hudson uses this to detect the children so we need this in there.
>
> -----Original Message-----
> From: Benjamin Bentmann [mailto:benjamin.bentmann@udo.edu]
> Sent: Saturday, April 12, 2008 8:47 AM
> To: Maven Developers List
> Subject: Re: [regression] Cannot release plugins parent!
>
>> What is the purpose of having a <modules> element for our plugins?
> It's
>> not like we want to build all plugins in one go, is it?
>
> Hudson used to do this if I remember correctly (the plugin ITs seem to
> have
> been removed recently).
>
>
> Benjamin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [regression] Cannot release plugins parent!
Posted by Dennis Lundberg <de...@apache.org>.
Is that to prevent you from having to set up 39 individual projects in
Hudson (or any other CI server) ?
Brian E. Fox wrote:
> Hudson uses this to detect the children so we need this in there.
>
> -----Original Message-----
> From: Benjamin Bentmann [mailto:benjamin.bentmann@udo.edu]
> Sent: Saturday, April 12, 2008 8:47 AM
> To: Maven Developers List
> Subject: Re: [regression] Cannot release plugins parent!
>
>> What is the purpose of having a <modules> element for our plugins?
> It's
>> not like we want to build all plugins in one go, is it?
>
> Hudson used to do this if I remember correctly (the plugin ITs seem to
> have
> been removed recently).
>
>
> Benjamin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
RE: [regression] Cannot release plugins parent!
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Hudson uses this to detect the children so we need this in there.
-----Original Message-----
From: Benjamin Bentmann [mailto:benjamin.bentmann@udo.edu]
Sent: Saturday, April 12, 2008 8:47 AM
To: Maven Developers List
Subject: Re: [regression] Cannot release plugins parent!
> What is the purpose of having a <modules> element for our plugins?
It's
> not like we want to build all plugins in one go, is it?
Hudson used to do this if I remember correctly (the plugin ITs seem to
have
been removed recently).
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [regression] Cannot release plugins parent!
Posted by Benjamin Bentmann <be...@udo.edu>.
> What is the purpose of having a <modules> element for our plugins? It's
> not like we want to build all plugins in one go, is it?
Hudson used to do this if I remember correctly (the plugin ITs seem to have
been removed recently).
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [regression] Cannot release plugins parent!
Posted by Dennis Lundberg <de...@apache.org>.
I've checked JIRA now and found this issue that describes what I was
experiencing.
http://jira.codehaus.org/browse/MRELEASE-123
To be able to do the release I disabled the aggregation by commenting
out the <modules> element.
What is the purpose of having a <modules> element for our plugins? It's
not like we want to build all plugins in one go, is it? They don't have
a common site navigation in the parent that would be able to use this
information - that's handles manually in our site module. I can't think
of any other reason.
Should we just remove the <modules> element permanently?
Dennis Lundberg wrote:
> 2.0.9-RC5 works the same way as 2.0.8 does and fails with a build error,
> because of the cyclic reference.
>
> It might be the release-plugin that is at fault. It doesn't honor the -N
> option, even if I specify it on the command line like this
>
> mvn -N release:prepare -Darguments=-N -DdryRun=true
>
> Brian E. Fox wrote:
>> Can you try 2.0.9 RC5? Not that I expect it to be fixed, but at least if
>> it's reproducible we can attempt to fix it there.
>>
>> -----Original Message-----
>> From: Dennis Lundberg [mailto:dennisl@apache.org] Sent: Tuesday, April
>> 01, 2008 3:13 PM
>> To: Maven Developers List
>> Subject: [regression] Cannot release plugins parent!
>>
>> I've stumbled upon some kind of regression trying to release the plugins
>>
>> parent. I'm not sure where the regression is though. Sigh!
>>
>> I have to use Maven 2.0.8, because maven-javadoc-plugin apparently
>> requires 2.0.8 now. But if I do the build fails with an error because of
>>
>> a circular dependency. Now IMHO both of these errors are bogus and
>> shouldn't even be considered, because I'm running in non-recursive mode.
>>
>>
>> Using Maven 2.0.8:
>>
>>
>> G:\apache\maven\tags\plugins-trunk>mvn -N release:prepare -DdryRun=true
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'release'.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Maven Plugins
>> [INFO] task-segment: [release:prepare] (aggregator-style)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [release:prepare]
>> [INFO] Verifying that there are no local modifications...
>> [INFO] Executing: svn --non-interactive status
>> [INFO] Working directory: G:\apache\maven\tags\plugins-trunk
>> [INFO] Checking dependencies and plugins for snapshots ...
>> What is the release version for "Maven Plugins"?
>> (org.apache.maven.plugins:maven-plugins) 11: :
>> What is SCM release tag or label for "Maven Plugins"?
>> (org.apache.maven.plugins:maven-plugins) maven-plugins-11: :
>> What is the new development version for "Maven Plugins"?
>> (org.apache.maven.plugins:maven-plugins) 12-SNAPSHOT: :
>> [INFO] Transforming 'Maven Plugins'...
>> [INFO] Not generating release POMs
>> [INFO] Executing preparation goals - since this is simulation mode it is
>>
>> running against the original project, not the rewritten ones
>> [INFO] Executing goals 'clean verify'...
>> [INFO] Executing: mvn clean verify --no-plugin-updates -Prelease
>> [INFO] Scanning for projects...
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] The projects in the reactor contain a cyclic
>> reference: Edge between
>> 'Vertex{label='org.apache.maven.plugins:maven-gpg-plugin'}'
>>
>> and 'Vertex{label='org.apache.maven.plugins:maven-deploy-plugin'}'
>> introduces to cycle in the graph
>> org.apache.maven.plugins:maven-deploy-plugin -->
>> org.apache.maven.plugins:maven-gpg-plugin -->
>> org.apache.maven.plugins:maven-deploy-plugin
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 1 second
>> [INFO] Finished at: Tue Apr 01 20:51:04 CEST 2008
>> [INFO] Final Memory: 4M/8M
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Maven execution failed, exit code: '1'
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 11 seconds
>> [INFO] Finished at: Tue Apr 01 20:51:04 CEST 2008
>> [INFO] Final Memory: 4M/8M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>>
>> Using Maven 2.0.6 or 2.0.7:
>>
>>
>> G:\apache\maven\tags\plugins-trunk>mvn -N release:prepare -DdryRun=true
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'release'.
>> [INFO]
>> ------------------------------------------------------------------------
>> ----
>> [INFO] Building Maven Plugins
>> [INFO] task-segment: [release:prepare] (aggregator-style)
>> [INFO]
>> ------------------------------------------------------------------------
>> ----
>> [INFO] [release:prepare]
>> [INFO] Resuming release from phase 'run-preparation-goals'
>> [INFO] Executing preparation goals - since this is simulation mode it is
>>
>> running against the original project, not the rewritten ones
>> [INFO] Executing goals 'clean verify'...
>> [INFO] Executing: mvn clean verify --no-plugin-updates -Prelease
>> [INFO] Scanning for projects...
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Unable to build project
>> 'G:\apache\maven\tags\plugins-trunk\maven-javadoc-plugin\pom.xml; it
>> requires Maven version 2.0.8
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 1 second
>> [INFO] Finished at: Tue Apr 01 20:55:39 CEST 2008
>> [INFO] Final Memory: 3M/6M
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Full run would be checking in 1 files with message:
>> '[maven-release-plugin] prepare release maven-plugins-11'
>> [INFO] Full run would be tagging G:\apache\maven\tags\plugins-trunk with
>>
>> label: 'maven-plugins-11'
>> [INFO] Transforming 'Maven Plugins'...
>> [INFO] Not removing release POMs
>> [INFO] Full run would be checking in 1 files with message:
>> '[maven-release-plugin] prepare for next development iteration'
>> [INFO] Release preparation simulation complete.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD SUCCESSFUL
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 4 seconds
>> [INFO] Finished at: Tue Apr 01 20:55:39 CEST 2008
>> [INFO] Final Memory: 4M/9M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>>
>>
>
>
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [regression] Cannot release plugins parent!
Posted by Brett Porter <br...@apache.org>.
Also, check if you set Javadoc back to 2.0.6, whether 2.0.6 has the
same failure. IT might be it just fails before it gets to the circ
reference.
- Brett
On 02/04/2008, at 7:35 AM, Dennis Lundberg wrote:
> 2.0.9-RC5 works the same way as 2.0.8 does and fails with a build
> error, because of the cyclic reference.
>
> It might be the release-plugin that is at fault. It doesn't honor
> the -N option, even if I specify it on the command line like this
>
> mvn -N release:prepare -Darguments=-N -DdryRun=true
>
> Brian E. Fox wrote:
>> Can you try 2.0.9 RC5? Not that I expect it to be fixed, but at
>> least if
>> it's reproducible we can attempt to fix it there.
>> -----Original Message-----
>> From: Dennis Lundberg [mailto:dennisl@apache.org] Sent: Tuesday,
>> April 01, 2008 3:13 PM
>> To: Maven Developers List
>> Subject: [regression] Cannot release plugins parent!
>> I've stumbled upon some kind of regression trying to release the
>> plugins
>> parent. I'm not sure where the regression is though. Sigh!
>> I have to use Maven 2.0.8, because maven-javadoc-plugin apparently
>> requires 2.0.8 now. But if I do the build fails with an error
>> because of
>> a circular dependency. Now IMHO both of these errors are bogus and
>> shouldn't even be considered, because I'm running in non-recursive
>> mode.
>> Using Maven 2.0.8:
>> G:\apache\maven\tags\plugins-trunk>mvn -N release:prepare -
>> DdryRun=true
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'release'.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Maven Plugins
>> [INFO] task-segment: [release:prepare] (aggregator-style)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [release:prepare]
>> [INFO] Verifying that there are no local modifications...
>> [INFO] Executing: svn --non-interactive status
>> [INFO] Working directory: G:\apache\maven\tags\plugins-trunk
>> [INFO] Checking dependencies and plugins for snapshots ...
>> What is the release version for "Maven Plugins"?
>> (org.apache.maven.plugins:maven-plugins) 11: :
>> What is SCM release tag or label for "Maven Plugins"?
>> (org.apache.maven.plugins:maven-plugins) maven-plugins-11: :
>> What is the new development version for "Maven Plugins"?
>> (org.apache.maven.plugins:maven-plugins) 12-SNAPSHOT: :
>> [INFO] Transforming 'Maven Plugins'...
>> [INFO] Not generating release POMs
>> [INFO] Executing preparation goals - since this is simulation mode
>> it is
>> running against the original project, not the rewritten ones
>> [INFO] Executing goals 'clean verify'...
>> [INFO] Executing: mvn clean verify --no-plugin-updates -Prelease
>> [INFO] Scanning for projects...
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] The projects in the reactor contain a cyclic
>> reference: Edge between
>> 'Vertex{label='org.apache.maven.plugins:maven-gpg-plugin'}'
>> and 'Vertex{label='org.apache.maven.plugins:maven-deploy-plugin'}'
>> introduces to cycle in the graph org.apache.maven.plugins:maven-
>> deploy-plugin --> org.apache.maven.plugins:maven-gpg-plugin -->
>> org.apache.maven.plugins:maven-deploy-plugin
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 1 second
>> [INFO] Finished at: Tue Apr 01 20:51:04 CEST 2008
>> [INFO] Final Memory: 4M/8M
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Maven execution failed, exit code: '1'
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 11 seconds
>> [INFO] Finished at: Tue Apr 01 20:51:04 CEST 2008
>> [INFO] Final Memory: 4M/8M
>> [INFO]
>> ------------------------------------------------------------------------
>> Using Maven 2.0.6 or 2.0.7:
>> G:\apache\maven\tags\plugins-trunk>mvn -N release:prepare -
>> DdryRun=true
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'release'.
>> [INFO]
>> ------------------------------------------------------------------------
>> ----
>> [INFO] Building Maven Plugins
>> [INFO] task-segment: [release:prepare] (aggregator-style)
>> [INFO]
>> ------------------------------------------------------------------------
>> ----
>> [INFO] [release:prepare]
>> [INFO] Resuming release from phase 'run-preparation-goals'
>> [INFO] Executing preparation goals - since this is simulation mode
>> it is
>> running against the original project, not the rewritten ones
>> [INFO] Executing goals 'clean verify'...
>> [INFO] Executing: mvn clean verify --no-plugin-updates -Prelease
>> [INFO] Scanning for projects...
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Unable to build project 'G:\apache\maven\tags
>> \plugins-trunk\maven-javadoc-plugin\pom.xml; it requires Maven
>> version 2.0.8
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 1 second
>> [INFO] Finished at: Tue Apr 01 20:55:39 CEST 2008
>> [INFO] Final Memory: 3M/6M
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Full run would be checking in 1 files with message:
>> '[maven-release-plugin] prepare release maven-plugins-11'
>> [INFO] Full run would be tagging G:\apache\maven\tags\plugins-trunk
>> with
>> label: 'maven-plugins-11'
>> [INFO] Transforming 'Maven Plugins'...
>> [INFO] Not removing release POMs
>> [INFO] Full run would be checking in 1 files with message: '[maven-
>> release-plugin] prepare for next development iteration'
>> [INFO] Release preparation simulation complete.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD SUCCESSFUL
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 4 seconds
>> [INFO] Finished at: Tue Apr 01 20:55:39 CEST 2008
>> [INFO] Final Memory: 4M/9M
>> [INFO]
>> ------------------------------------------------------------------------
>
>
> --
> Dennis Lundberg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
--
Brett Porter
brett@apache.org
http://blogs.exist.com/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [regression] Cannot release plugins parent!
Posted by Dennis Lundberg <de...@apache.org>.
2.0.9-RC5 works the same way as 2.0.8 does and fails with a build error,
because of the cyclic reference.
It might be the release-plugin that is at fault. It doesn't honor the -N
option, even if I specify it on the command line like this
mvn -N release:prepare -Darguments=-N -DdryRun=true
Brian E. Fox wrote:
> Can you try 2.0.9 RC5? Not that I expect it to be fixed, but at least if
> it's reproducible we can attempt to fix it there.
>
> -----Original Message-----
> From: Dennis Lundberg [mailto:dennisl@apache.org]
> Sent: Tuesday, April 01, 2008 3:13 PM
> To: Maven Developers List
> Subject: [regression] Cannot release plugins parent!
>
> I've stumbled upon some kind of regression trying to release the plugins
>
> parent. I'm not sure where the regression is though. Sigh!
>
> I have to use Maven 2.0.8, because maven-javadoc-plugin apparently
> requires 2.0.8 now. But if I do the build fails with an error because of
>
> a circular dependency. Now IMHO both of these errors are bogus and
> shouldn't even be considered, because I'm running in non-recursive mode.
>
>
> Using Maven 2.0.8:
>
>
> G:\apache\maven\tags\plugins-trunk>mvn -N release:prepare -DdryRun=true
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'release'.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Maven Plugins
> [INFO] task-segment: [release:prepare] (aggregator-style)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [release:prepare]
> [INFO] Verifying that there are no local modifications...
> [INFO] Executing: svn --non-interactive status
> [INFO] Working directory: G:\apache\maven\tags\plugins-trunk
> [INFO] Checking dependencies and plugins for snapshots ...
> What is the release version for "Maven Plugins"?
> (org.apache.maven.plugins:maven-plugins) 11: :
> What is SCM release tag or label for "Maven Plugins"?
> (org.apache.maven.plugins:maven-plugins) maven-plugins-11: :
> What is the new development version for "Maven Plugins"?
> (org.apache.maven.plugins:maven-plugins) 12-SNAPSHOT: :
> [INFO] Transforming 'Maven Plugins'...
> [INFO] Not generating release POMs
> [INFO] Executing preparation goals - since this is simulation mode it is
>
> running against the original project, not the rewritten ones
> [INFO] Executing goals 'clean verify'...
> [INFO] Executing: mvn clean verify --no-plugin-updates -Prelease
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The projects in the reactor contain a cyclic reference:
> Edge between 'Vertex{label='org.apache.maven.plugins:maven-gpg-plugin'}'
>
> and 'Vertex{label='org.apache.maven.plugins:maven-deploy-plugin'}'
> introduces to cycle in the graph
> org.apache.maven.plugins:maven-deploy-plugin -->
> org.apache.maven.plugins:maven-gpg-plugin -->
> org.apache.maven.plugins:maven-deploy-plugin
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Tue Apr 01 20:51:04 CEST 2008
> [INFO] Final Memory: 4M/8M
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Maven execution failed, exit code: '1'
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 11 seconds
> [INFO] Finished at: Tue Apr 01 20:51:04 CEST 2008
> [INFO] Final Memory: 4M/8M
> [INFO]
> ------------------------------------------------------------------------
>
>
> Using Maven 2.0.6 or 2.0.7:
>
>
> G:\apache\maven\tags\plugins-trunk>mvn -N release:prepare -DdryRun=true
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'release'.
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] Building Maven Plugins
> [INFO] task-segment: [release:prepare] (aggregator-style)
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] [release:prepare]
> [INFO] Resuming release from phase 'run-preparation-goals'
> [INFO] Executing preparation goals - since this is simulation mode it is
>
> running against the original project, not the rewritten ones
> [INFO] Executing goals 'clean verify'...
> [INFO] Executing: mvn clean verify --no-plugin-updates -Prelease
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Unable to build project
> 'G:\apache\maven\tags\plugins-trunk\maven-javadoc-plugin\pom.xml; it
> requires Maven version 2.0.8
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Tue Apr 01 20:55:39 CEST 2008
> [INFO] Final Memory: 3M/6M
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Full run would be checking in 1 files with message:
> '[maven-release-plugin] prepare release maven-plugins-11'
> [INFO] Full run would be tagging G:\apache\maven\tags\plugins-trunk with
>
> label: 'maven-plugins-11'
> [INFO] Transforming 'Maven Plugins'...
> [INFO] Not removing release POMs
> [INFO] Full run would be checking in 1 files with message:
> '[maven-release-plugin] prepare for next development iteration'
> [INFO] Release preparation simulation complete.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Tue Apr 01 20:55:39 CEST 2008
> [INFO] Final Memory: 4M/9M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
RE: [regression] Cannot release plugins parent!
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Can you try 2.0.9 RC5? Not that I expect it to be fixed, but at least if
it's reproducible we can attempt to fix it there.
-----Original Message-----
From: Dennis Lundberg [mailto:dennisl@apache.org]
Sent: Tuesday, April 01, 2008 3:13 PM
To: Maven Developers List
Subject: [regression] Cannot release plugins parent!
I've stumbled upon some kind of regression trying to release the plugins
parent. I'm not sure where the regression is though. Sigh!
I have to use Maven 2.0.8, because maven-javadoc-plugin apparently
requires 2.0.8 now. But if I do the build fails with an error because of
a circular dependency. Now IMHO both of these errors are bogus and
shouldn't even be considered, because I'm running in non-recursive mode.
Using Maven 2.0.8:
G:\apache\maven\tags\plugins-trunk>mvn -N release:prepare -DdryRun=true
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Plugins
[INFO] task-segment: [release:prepare] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] [release:prepare]
[INFO] Verifying that there are no local modifications...
[INFO] Executing: svn --non-interactive status
[INFO] Working directory: G:\apache\maven\tags\plugins-trunk
[INFO] Checking dependencies and plugins for snapshots ...
What is the release version for "Maven Plugins"?
(org.apache.maven.plugins:maven-plugins) 11: :
What is SCM release tag or label for "Maven Plugins"?
(org.apache.maven.plugins:maven-plugins) maven-plugins-11: :
What is the new development version for "Maven Plugins"?
(org.apache.maven.plugins:maven-plugins) 12-SNAPSHOT: :
[INFO] Transforming 'Maven Plugins'...
[INFO] Not generating release POMs
[INFO] Executing preparation goals - since this is simulation mode it is
running against the original project, not the rewritten ones
[INFO] Executing goals 'clean verify'...
[INFO] Executing: mvn clean verify --no-plugin-updates -Prelease
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] The projects in the reactor contain a cyclic reference:
Edge between 'Vertex{label='org.apache.maven.plugins:maven-gpg-plugin'}'
and 'Vertex{label='org.apache.maven.plugins:maven-deploy-plugin'}'
introduces to cycle in the graph
org.apache.maven.plugins:maven-deploy-plugin -->
org.apache.maven.plugins:maven-gpg-plugin -->
org.apache.maven.plugins:maven-deploy-plugin
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Apr 01 20:51:04 CEST 2008
[INFO] Final Memory: 4M/8M
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Maven execution failed, exit code: '1'
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 11 seconds
[INFO] Finished at: Tue Apr 01 20:51:04 CEST 2008
[INFO] Final Memory: 4M/8M
[INFO]
------------------------------------------------------------------------
Using Maven 2.0.6 or 2.0.7:
G:\apache\maven\tags\plugins-trunk>mvn -N release:prepare -DdryRun=true
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO]
------------------------------------------------------------------------
----
[INFO] Building Maven Plugins
[INFO] task-segment: [release:prepare] (aggregator-style)
[INFO]
------------------------------------------------------------------------
----
[INFO] [release:prepare]
[INFO] Resuming release from phase 'run-preparation-goals'
[INFO] Executing preparation goals - since this is simulation mode it is
running against the original project, not the rewritten ones
[INFO] Executing goals 'clean verify'...
[INFO] Executing: mvn clean verify --no-plugin-updates -Prelease
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Unable to build project
'G:\apache\maven\tags\plugins-trunk\maven-javadoc-plugin\pom.xml; it
requires Maven version 2.0.8
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Apr 01 20:55:39 CEST 2008
[INFO] Final Memory: 3M/6M
[INFO]
------------------------------------------------------------------------
[INFO] Full run would be checking in 1 files with message:
'[maven-release-plugin] prepare release maven-plugins-11'
[INFO] Full run would be tagging G:\apache\maven\tags\plugins-trunk with
label: 'maven-plugins-11'
[INFO] Transforming 'Maven Plugins'...
[INFO] Not removing release POMs
[INFO] Full run would be checking in 1 files with message:
'[maven-release-plugin] prepare for next development iteration'
[INFO] Release preparation simulation complete.
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Tue Apr 01 20:55:39 CEST 2008
[INFO] Final Memory: 4M/9M
[INFO]
------------------------------------------------------------------------
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org