Just wondering, did you figure this out?  I too have this problem and I don't
have any snapshot dependencies parent or otherwise. 

I would like to know what was intended by this feature.  I have never seen
it before 2.0-beta-7 and I can find no documentation of it.  I would go back
and use 2.0-beta-6 but that does not work with maven 2.0.8 if using version
ranges.

-Dave



Daniel Niklas wrote:
> 
> Hi,
> 
> i want to release my artefact with maven-release-plugin (2.0-beta7). This
> project has
> a parent-pom with an SNAPSHOT-Dependency. The goal "release-perform" asks,
> if i want
> to update the SNAPSHOT-dependencies of my project, i answer whith
> "enter/yes". 
> 
> I'am estimating, that the plugin removes "SNAPSHOT" in the
> parent-pom-version, creates 
> the branch in the scm an then inserts the next version-number in the pom
> an commits this
> to the trunk. But neither the new pom in trunk nor the pom in the branch
> contains
> the estimated version-numbers. I think this is a bug!?
> 
> An extract of my configuration:
> 
> 
> 
> pom.xml
> ===============================================================================
> <project xmlns="http://maven.apache.org/POM/4.0.0"; 
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
>          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>       <modelVersion>4.0.0</modelVersion>
>       <groupId>de.continentale.vu.maven.plugins</groupId>
>       <artifactId>maven-patch-plugin</artifactId>     
> 
>       <version>1.0-SNAPSHOT</version>
> 
>       <packaging>maven-plugin</packaging>
>       <description>Ein Plugin zum Patchen von externen Jars.</description>
>       <name>Maven Patch Plugin</name>
>       
>       <parent>
>               <groupId>de.continentale.vu.common</groupId>
>               <artifactId>main-pom</artifactId>
>               
>               <version>1-SNAPSHOT</version>
>               
>       </parent>
>       
> ...
> </project>    
> 
> (no other SNAPSHOT-dependencies)
> 
> 
> 
> Questions/Output of release-perform
> ===============================================================================
> 
> [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: : 
> 
> Resolve Project Dependency Snapshots.:
> 'de.continentale.vu.common:main-pom' set to release? (yes/no) yes: : 
> What is the next development version? (2-SNAPSHOT) 2-SNAPSHOT: : 
> 
> What is the release version for "Maven Patch Plugin"?
> (de.continentale.vu.maven.plugins:maven-patch-plugin) 1.0: : 
> What is SCM release tag or label for "Maven Patch Plugin"?
> (de.continentale.vu.maven.plugins:maven-patch-plugin)
> maven-patch-plugin-1.0: : 
> What is the new development version for "Maven Patch Plugin"?
> (de.continentale.vu.maven.plugins:maven-patch-plugin) 1.1-SNAPSHOT: : 
> 
> [INFO] Transforming 'Maven Patch Plugin'... 
> [INFO] Not generating release POMs 
> [INFO] Executing goals 'clean verify'... 
> [INFO] Executing: mvn clean verify --no-plugin-updates -P shared 
> [INFO] Scanning for projects...
> 
> ....
> 
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> 
> 
> 
> generated release.properties
> ===============================================================================
> 
> #release configuration
> #Thu Jan 17 11:07:23 CET 2008
> scm.tag=maven-patch-plugin-1.0
> project.scm.de.continentale.vu.maven.plugins\:maven-patch-plugin.connection=scm\:svn\:http\://do1sbe13/svn/vu/maven/plugins/maven-patch-plugin/trunk
> scm.url=scm\:svn\:http\://do1sbe13/svn/vu/maven/plugins/maven-patch-plugin/trunk
> preparationGoals=clean verify
> 
> dependency.de.continentale.vu.common\:main-pom.development=2-SNAPSHOT
> project.rel.de.continentale.vu.maven.plugins\:maven-patch-plugin=1.0
> 
> scm.commentPrefix=[maven-release-plugin] 
> exec.additionalArguments=-P shared
> 
> dependency.de.continentale.vu.common\:main-pom.release=1
> 
> project.scm.de.continentale.vu.maven.plugins\:maven-patch-plugin.tag=HEAD
> completedPhase=end-release
> 
> project.dev.de.continentale.vu.maven.plugins\:maven-patch-plugin=1.1-SNAPSHOT
> 
> 
> I think, the version numbers in release.properties are correct! But the
> resulting poms are wrong:
> 
> 
> 
> pom in created tag
> ===============================================================================
> 
> <project xmlns="http://maven.apache.org/POM/4.0.0"; 
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
>          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>       <modelVersion>4.0.0</modelVersion>
>       <groupId>de.continentale.vu.maven.plugins</groupId>
>       <artifactId>maven-patch-plugin</artifactId>
>       
>       <version>1.0</version>
>       
>       <packaging>maven-plugin</packaging>
>       <description>Ein Plugin zum Patchen von externen Jars.</description>
>       <name>Maven Patch Plugin</name>
>       
>       <parent>
>               <groupId>de.continentale.vu.common</groupId>
>               <artifactId>main-pom</artifactId>       
>                       
>               <version>1-SNAPSHOT</version>           
>               
>       </parent>
> ...
> </project>            
> 
> 
> 
> new pom in trunk
> ===============================================================================
> 
> <project xmlns="http://maven.apache.org/POM/4.0.0"; 
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
>          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>       <modelVersion>4.0.0</modelVersion>
>       <groupId>de.continentale.vu.maven.plugins</groupId>
>       <artifactId>maven-patch-plugin</artifactId>
>       
>       <version>1.1-SNAPSHOT</version>
>       
>       <packaging>maven-plugin</packaging>
>       <description>Ein Plugin zum Patchen von externen Jars.</description>
>       <name>Maven Patch Plugin</name>
>       
>       <parent>
>               <groupId>de.continentale.vu.common</groupId>
>               <artifactId>main-pom</artifactId>
>               <version>1-SNAPSHOT</version>
>       </parent>
>       
> ...
> </project>    
> 
> 
> 
> What is going wrong here? Is this a bug?
> 
> Best regards and thanks in advance
> Daniel Niklas
> 

-- 
View this message in context: 
http://www.nabble.com/-maven-release-plugin--release-perform-does-not-update-parent-SNAPSHOT-dependency.-issue--tp14917104s177p14974142.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to