You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by laredotornado <la...@gmail.com> on 2009/12/10 16:35:28 UTC
release plugin: Why is allowTimestampedSnapshots being ignored?
Hi,
I'm using Maven 2 and trying to release a snapshot version of my Java web
app. Here is the command I'm running from my root project folder ...
> mvn release:prepare -DdryRun=true -Dresume=false
> -DallowTimestampedSnapshots=true
Eventually the build dies because of "Can't release project due to non
released dependencies". I thought adding "-DallowTimestampedSnapshots=true"
was supposed to allow this. Could someone provide some clarity on how to
release a snapshot version of my project? Below is the last part of running
the above command.
Thanks, - Dave
[INFO] [release:prepare {execution: default-cli}]
[INFO] Verifying that there are no local modifications...
[INFO] Executing: /bin/sh -c cd /Users/dalvarado/source/tours && cvs -z3 -f
-d :pserver:dalvarado@localhost:/usr/local/cvs/nic -n -q update -d
[INFO] Working directory: /Users/dalvarado/source/tours
[INFO] Checking dependencies and plugins for snapshots ...
There are still some remaining snapshot dependencies.: Do you want to
resolve them now? (yes/no) no: : yes
Dependency type to resolve,: specify the selection number ( 0:All 1:Project
Dependencies 2:Plugins 3:Reports 4:Extensions ): (0/1/2/3) 1: : 0
Resolve All Snapshots.: 'myco.galc.capitol.tours:myco-galc-capitol-tours'
set to release? (yes/no) yes: : yes
What is the next development version? (1.1-SNAPSHOT) 1.1-SNAPSHOT: :
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Can't release project due to non released dependencies :
myco.galc.capitol.tours:myco-galc-capitol-tours:pom:1.0-SNAPSHOT
in project 'myco GA Capitol Tours Webapp'
(myco.galc.capitol.tours:myco-galc-capitol-tours-webapp:war:1.0-SNAPSHOT)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 23 seconds
[INFO] Finished at: Thu Dec 10 08:28:55 MST 2009
[INFO] Final Memory: 12M/23M
[INFO]
------------------------------------------------------------------------
--
View this message in context: http://old.nabble.com/release-plugin%3A-Why-is-allowTimestampedSnapshots-being-ignored--tp26729314p26729314.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: release plugin: Why is allowTimestampedSnapshots being ignored?
Posted by Wayne Fay <wa...@gmail.com>.
> or is there a bug in the release plugin?
There are many bugs in many plugins. Also see:
http://jira.codehaus.org/browse/MRELEASE-452
What VERSION of the release plugin are you using? Just because there's
a feature in a plugin doesn't mean you're using a recent enough
version to get access to the feature.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: release plugin: Why is allowTimestampedSnapshots being ignored?
Posted by laredotornado <la...@gmail.com>.
Thanks, I will definitely do this. But to satisfy my curiosity, is this not
the right syntax
-DallowTimestampedSnapshots=true
or is there a bug in the release plugin?
Thanks, - Dave
Adam Leggett (UPCO) wrote:
>
> You dont need to use the release plugin to deploy a snapshot.
>
> A simple 'mvn deploy' will suffice.
>
> Thanks
>
> Adam
>
> On Thu, 2009-12-10 at 07:35 -0800, laredotornado wrote:
>> Hi,
>>
>> I'm using Maven 2 and trying to release a snapshot version of my Java web
>> app. Here is the command I'm running from my root project folder ...
>>
>> > mvn release:prepare -DdryRun=true -Dresume=false
>> > -DallowTimestampedSnapshots=true
>>
>> Eventually the build dies because of "Can't release project due to non
>> released dependencies". I thought adding
>> "-DallowTimestampedSnapshots=true"
>> was supposed to allow this. Could someone provide some clarity on how to
>> release a snapshot version of my project? Below is the last part of
>> running
>> the above command.
>>
>> Thanks, - Dave
>>
>>
>>
>> [INFO] [release:prepare {execution: default-cli}]
>> [INFO] Verifying that there are no local modifications...
>> [INFO] Executing: /bin/sh -c cd /Users/dalvarado/source/tours && cvs -z3
>> -f
>> -d :pserver:dalvarado@localhost:/usr/local/cvs/nic -n -q update -d
>> [INFO] Working directory: /Users/dalvarado/source/tours
>> [INFO] Checking dependencies and plugins for snapshots ...
>> There are still some remaining snapshot dependencies.: Do you want to
>> resolve them now? (yes/no) no: : yes
>> Dependency type to resolve,: specify the selection number ( 0:All
>> 1:Project
>> Dependencies 2:Plugins 3:Reports 4:Extensions ): (0/1/2/3) 1: : 0
>> Resolve All Snapshots.: 'myco.galc.capitol.tours:myco-galc-capitol-tours'
>> set to release? (yes/no) yes: : yes
>> What is the next development version? (1.1-SNAPSHOT) 1.1-SNAPSHOT: :
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Can't release project due to non released dependencies :
>> myco.galc.capitol.tours:myco-galc-capitol-tours:pom:1.0-SNAPSHOT
>> in project 'myco GA Capitol Tours Webapp'
>> (myco.galc.capitol.tours:myco-galc-capitol-tours-webapp:war:1.0-SNAPSHOT)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 23 seconds
>> [INFO] Finished at: Thu Dec 10 08:28:55 MST 2009
>> [INFO] Final Memory: 12M/23M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/release-plugin%3A-Why-is-allowTimestampedSnapshots-being-ignored--tp26729314p26731475.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: release plugin: Why is allowTimestampedSnapshots being ignored?
Posted by "Adam Leggett (UPCO)" <ad...@upco.co.uk>.
You dont need to use the release plugin to deploy a snapshot.
A simple 'mvn deploy' will suffice.
Thanks
Adam
On Thu, 2009-12-10 at 07:35 -0800, laredotornado wrote:
> Hi,
>
> I'm using Maven 2 and trying to release a snapshot version of my Java web
> app. Here is the command I'm running from my root project folder ...
>
> > mvn release:prepare -DdryRun=true -Dresume=false
> > -DallowTimestampedSnapshots=true
>
> Eventually the build dies because of "Can't release project due to non
> released dependencies". I thought adding "-DallowTimestampedSnapshots=true"
> was supposed to allow this. Could someone provide some clarity on how to
> release a snapshot version of my project? Below is the last part of running
> the above command.
>
> Thanks, - Dave
>
>
>
> [INFO] [release:prepare {execution: default-cli}]
> [INFO] Verifying that there are no local modifications...
> [INFO] Executing: /bin/sh -c cd /Users/dalvarado/source/tours && cvs -z3 -f
> -d :pserver:dalvarado@localhost:/usr/local/cvs/nic -n -q update -d
> [INFO] Working directory: /Users/dalvarado/source/tours
> [INFO] Checking dependencies and plugins for snapshots ...
> There are still some remaining snapshot dependencies.: Do you want to
> resolve them now? (yes/no) no: : yes
> Dependency type to resolve,: specify the selection number ( 0:All 1:Project
> Dependencies 2:Plugins 3:Reports 4:Extensions ): (0/1/2/3) 1: : 0
> Resolve All Snapshots.: 'myco.galc.capitol.tours:myco-galc-capitol-tours'
> set to release? (yes/no) yes: : yes
> What is the next development version? (1.1-SNAPSHOT) 1.1-SNAPSHOT: :
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Can't release project due to non released dependencies :
> myco.galc.capitol.tours:myco-galc-capitol-tours:pom:1.0-SNAPSHOT
> in project 'myco GA Capitol Tours Webapp'
> (myco.galc.capitol.tours:myco-galc-capitol-tours-webapp:war:1.0-SNAPSHOT)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 23 seconds
> [INFO] Finished at: Thu Dec 10 08:28:55 MST 2009
> [INFO] Final Memory: 12M/23M
> [INFO]
> ------------------------------------------------------------------------
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org