Sorry for the really long delay, but there had been several urgent projects 
meanwhile.

I built a really microscopic project which showcases the problem. It consists 
of a rather empty parent POM which has been released as "1.0" plus a 
super-simple POM using that one as a "company parent POM". So this is NOT a 
module! Please check the ****marked**** lines to understand my problem!

POM before release:

<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/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>my-artifact</artifactId>
  <name>my-artifact</name>
  <parent>
    <groupId>my.group</groupId>
    <artifactId>my-parent</artifactId>
****    <version>1.0-SNAPSHOT</version>****
  </parent>
  <scm>
    
<developerConnection>scm:svn:svn://svn/Research/my-artifact/trunk</developerConnection>
  </scm>
  <distributionManagement>
    <repository>
      <id>releases</id>
      <url>http://nexus.quipsy.local/nexus/content/repositories/releases</url>
    </repository>
    <snapshotRepository>
      <id>snapshots</id>
      <url>http://nexus.quipsy.local/nexus/content/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>
</project>

Preparing and performing the release:

C:\Users\Markus Karg\workspace\artifact\my-artifact>mvn release:prepare 
release:perform
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building my-artifact 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-release-plugin:2.0:prepare (default-cli) @ my-artifact ---
[INFO] Verifying that there are no local modifications...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive status"
[INFO] Working directory: C:\Users\Markus Karg\workspace\artifact\my-artifact
[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.: 'my.group:my-parent' set to release? 
(yes/no) yes: :****
****What is the next development version? (1.1-SNAPSHOT) 1.1-SNAPSHOT: :****
What is the release version for "my-artifact"? (my.group:my-artifact) 1.0: :
What is SCM release tag or label for "my-artifact"? (my.group:my-artifact) 
my-artifact-1.0: :
What is the new development version for "my-artifact"? (my.group:my-artifact) 
1.1-SNAPSHOT: :
[INFO] Transforming 'my-artifact'...
[INFO] Not generating release POMs
[INFO] Executing goals 'clean verify'...
[WARNING] Maven will be executed in interactive mode, but no input stream has 
been configured for this MavenInvoker instance.
[INFO] [INFO] Scanning for projects...
[INFO] [INFO]
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [INFO] Building my-artifact 1.0
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [INFO]
[INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ my-artifact 
---
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ 
my-artifact ---
[INFO] [debug] execute contextualize
[INFO] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered 
resources, i.e. build is platform dependent!
[INFO] [INFO] skip non existing resourceDirectory C:\Users\Markus 
Karg\workspace\artifact\my-artifact\src\main\resources
[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ 
my-artifact ---
[INFO] [INFO] No sources to compile
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:2.5:testResources 
(default-testResources) @ my-artifact ---
[INFO] [debug] execute contextualize
[INFO] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered 
resources, i.e. build is platform dependent!
[INFO] [INFO] skip non existing resourceDirectory C:\Users\Markus 
Karg\workspace\artifact\my-artifact\src\test\resources
[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) 
@ my-artifact ---
[INFO] [INFO] No sources to compile
[INFO] [INFO]
[INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ my-artifact 
---
[INFO] [INFO] No tests to run.
[INFO] [INFO] Surefire report directory: C:\Users\Markus 
Karg\workspace\artifact\my-artifact\target\surefire-reports
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO]
[INFO] Results :
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] [INFO]
[INFO] [INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ my-artifact ---
[INFO] [WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] [INFO] Building jar: C:\Users\Markus 
Karg\workspace\artifact\my-artifact\target\my-artifact-1.0.jar
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [INFO] BUILD SUCCESS
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [INFO] Total time: 1.669s
[INFO] [INFO] Finished at: Thu Nov 07 16:51:37 CET 2013
[INFO] [INFO] Final Memory: 8M/86M
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] Checking in modified POMs...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive commit --file 
C:\Users\MARKUS~1\AppData\Local\Temp\maven-scm-1833971603.commit --targets 
C:\Users\MARKUS~
1\AppData\Local\Temp\maven-scm-6393151358719095528-targets"
[INFO] Working directory: C:\Users\Markus Karg\workspace\artifact\my-artifact
[INFO] Tagging release with the label my-artifact-1.0...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive copy --file 
C:\Users\MARKUS~1\AppData\Local\Temp\maven-scm-1626719244.commit --revision 
24574 svn://svn/R
esearch/my-artifact/trunk svn://svn/Research/my-artifact/tags/my-artifact-1.0"
[INFO] Working directory: C:\Users\Markus Karg\workspace\artifact\my-artifact
[INFO] Transforming 'my-artifact'...
[INFO] Not removing release POMs
[INFO] Checking in modified POMs...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive commit --file 
C:\Users\MARKUS~1\AppData\Local\Temp\maven-scm-868179206.commit --targets 
C:\Users\MARKUS~1
\AppData\Local\Temp\maven-scm-7809457724306865748-targets"
[INFO] Working directory: C:\Users\Markus Karg\workspace\artifact\my-artifact
[INFO] Release preparation complete.
[INFO]
[INFO] --- maven-release-plugin:2.0:perform (default-cli) @ my-artifact ---
[INFO] Checking out the project to perform the release ...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive checkout 
svn://svn/Research/my-artifact/tags/my-artifact-1.0 "C:\Users\Markus 
Karg\workspace\artifact\my-
artifact\target\checkout""
[INFO] Working directory: C:\Users\Markus 
Karg\workspace\artifact\my-artifact\target
[INFO] Executing goals 'deploy'...
[WARNING] Maven will be executed in interactive mode, but no input stream has 
been configured for this MavenInvoker instance.
[INFO] [INFO] Scanning for projects...
[INFO] [WARNING]
[INFO] [WARNING] Some problems were encountered while building the effective 
model for my.group:my-artifact:jar:1.0
[INFO] [WARNING] 'build.plugins.plugin.version' for 
org.apache.maven.plugins:maven-javadoc-plugin is missing.
[INFO] [WARNING] 'build.plugins.plugin.version' for 
org.apache.maven.plugins:maven-deploy-plugin is missing.
[INFO] [WARNING] 'build.plugins.plugin.version' for 
org.apache.maven.plugins:maven-source-plugin is missing.
[INFO] [WARNING]
[INFO] [WARNING] It is highly recommended to fix these problems because they 
threaten the stability of your build.
[INFO] [WARNING]
[INFO] [WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects.
[INFO] [WARNING]
[INFO] [INFO]
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [INFO] Building my-artifact 1.0
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ 
my-artifact ---
[INFO] [debug] execute contextualize
[INFO] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered 
resources, i.e. build is platform dependent!
[INFO] [INFO] skip non existing resourceDirectory C:\Users\Markus 
Karg\workspace\artifact\my-artifact\target\checkout\src\main\resources
[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ 
my-artifact ---
[INFO] [INFO] No sources to compile
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:2.5:testResources 
(default-testResources) @ my-artifact ---
[INFO] [debug] execute contextualize
[INFO] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered 
resources, i.e. build is platform dependent!
[INFO] [INFO] skip non existing resourceDirectory C:\Users\Markus 
Karg\workspace\artifact\my-artifact\target\checkout\src\test\resources
[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) 
@ my-artifact ---
[INFO] [INFO] No sources to compile
[INFO] [INFO]
[INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ my-artifact 
---
[INFO] [INFO] No tests to run.
[INFO] [INFO] Surefire report directory: C:\Users\Markus 
Karg\workspace\artifact\my-artifact\target\checkout\target\surefire-reports
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO]
[INFO] Results :
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] [INFO]
[INFO] [INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ my-artifact ---
[INFO] [WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] [INFO] Building jar: C:\Users\Markus 
Karg\workspace\artifact\my-artifact\target\checkout\target\my-artifact-1.0.jar
[INFO] [INFO]
[INFO] [INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) @ my-artifact 
>>>
[INFO] [INFO]
[INFO] [INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) @ my-artifact 
<<<
[INFO] [INFO]
[INFO] [INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ my-artifact 
---
[INFO] [INFO] No sources in project. Archive not created.
[INFO] [INFO]
[INFO] [INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ 
my-artifact ---
[INFO] [INFO]
[INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ 
my-artifact ---
[INFO] [INFO] Installing C:\Users\Markus 
Karg\workspace\artifact\my-artifact\target\checkout\target\my-artifact-1.0.jar 
to C:\Users\Markus Karg\.m2\repository\m
y\group\my-artifact\1.0\my-artifact-1.0.jar
[INFO] [INFO] Installing C:\Users\Markus 
Karg\workspace\artifact\my-artifact\target\checkout\pom.xml to C:\Users\Markus 
Karg\.m2\repository\my\group\my-artifact
\1.0\my-artifact-1.0.pom
[INFO] [INFO]
[INFO] [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ my-artifact 
---
[INFO] Uploading: 
http://nexus.quipsy.local/nexus/content/repositories/releases/my/group/my-artifact/1.0/my-artifact-1.0.jar
[INFO] 2/2 KB
[INFO]
[INFO] Uploaded: 
http://nexus.quipsy.local/nexus/content/repositories/releases/my/group/my-artifact/1.0/my-artifact-1.0.jar
 (2 KB at 5.3 KB/sec)
[INFO] Uploading: 
http://nexus.quipsy.local/nexus/content/repositories/releases/my/group/my-artifact/1.0/my-artifact-1.0.pom
[INFO] 971/971 B
[INFO]
[INFO] Uploaded: 
http://nexus.quipsy.local/nexus/content/repositories/releases/my/group/my-artifact/1.0/my-artifact-1.0.pom
 (971 B at 6.7 KB/sec)
[INFO] Downloading: 
http://nexus.quipsy.local/nexus/content/repositories/releases/my/group/my-artifact/maven-metadata.xml
[INFO]
[INFO] Uploading: 
http://nexus.quipsy.local/nexus/content/repositories/releases/my/group/my-artifact/maven-metadata.xml
[INFO] 295/295 B
[INFO]
[INFO] Uploaded: 
http://nexus.quipsy.local/nexus/content/repositories/releases/my/group/my-artifact/maven-metadata.xml
 (295 B at 2.6 KB/sec)
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [INFO] BUILD SUCCESS
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [INFO] Total time: 3.962s
[INFO] [INFO] Finished at: Thu Nov 07 16:51:43 CET 2013
[INFO] [INFO] Final Memory: 18M/136M
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] Cleaning up after release...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 54.662s
[INFO] Finished at: Thu Nov 07 16:51:43 CET 2013
[INFO] Final Memory: 11M/135M
[INFO] ------------------------------------------------------------------------
C:\Users\Markus Karg\workspace\artifact\my-artifact>

POM after the release:

<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/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>my-artifact</artifactId>
  <version>1.1-SNAPSHOT</version>
  <name>my-artifact</name>
  <parent>
    <groupId>my.group</groupId>
    <artifactId>my-parent</artifactId>
****    <version>1.0-SNAPSHOT</version>****
  </parent>
  <scm>
    
<developerConnection>scm:svn:svn://svn/Research/my-artifact/trunk</developerConnection>
  </scm>
  <distributionManagement>
    <repository>
      <id>releases</id>
      <url>http://nexus.quipsy.local/nexus/content/repositories/releases</url>
    </repository>
    <snapshotRepository>
      <id>snapshots</id>
      <url>http://nexus.quipsy.local/nexus/content/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>
</project>

As you can see (again, look at the ****marked**** lines), the release plugin 
correctly asked if I want the parent POM reference to be replaced by 1.0 and 
later by 1.1-SNAPSHOT, and I said YES (which is the default). But in the end, 
it still is referenced as 1.0-SNAPSHOT, while it certainly must be 1.1-SNAPSHOT 
instead!

Thanks!
-Markus

-----Ursprüngliche Nachricht-----
Von: Russell Gold [mailto:r...@gold-family.us]
Gesendet: Mittwoch, 24. Juli 2013 16:03
An: Maven Users List
Betreff: Re: mvn release:prepare does not update parent version

Hi Markus,

I think we're all a bit confused about what you are trying to do. Can you 
create a very simple project that recreates the problem or describe what you 
are doing in a different way?

Maybe just letting us know the relationship among the modules in your project 
would suffice. Or possibly sending the part of the release log that includes 
the prompts. AFAIK it should only ask you about versions of the modules you are 
releasing, not any external ones.

Thanks,
Russ

On Jul 24, 2013, at 2:09 AM, Markus Karg <k...@quipsy.de> wrote:

> Martin,
>
> I don't know why you're asking this. What has this to do with my actual 
> scenario? I am doing something completely different and my question was not 
> targeting your scenario.
>
> Thanks
> -Markus
>
> -----Ursprüngliche Nachricht-----
> Von: Martin Gainty [mailto:mgai...@hotmail.com]
> Gesendet: Dienstag, 23. Juli 2013 23:24
> An: users@maven.apache.org
> Betreff: RE: mvn release:prepare does not update parent version
>
> Markus
>
>
>                         Parent.pom
>                             |
>                             v
> ----------------------------------------------------------------------
> ---
> |
> | |
> v                                                                             
>                   v
> Child1.pom                                                                    
>       Child2.pom
> release:prepare where <property> updates/changes Child1.pom
> Child11.pom Child12.pom
> |
> v
> ---------------------------------------
> |                                                 |
> v                                                 v
> Child11.pom                       Child12.pom
>
> can you envision a scenario where release plugin should break
> inheritance and update Parent instead of child <module> s ?
>
> Martin
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de
> confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
> sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
> oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich 
> dem Austausch von Informationen und entfaltet keine rechtliche 
> Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen 
> wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
> est interdite. Ce message sert à l'information seulement et n'aura pas 
> n'importe quel effet légalement obligatoire. Étant donné que les email 
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
> aucune responsabilité pour le contenu fourni.
>
>
>> Subject: RE: mvn release:prepare does not update parent version
>> Date: Mon, 22 Jul 2013 22:29:07 +0200
>> From: k...@quipsy.de
>> To: users@maven.apache.org
>>
>> Thanks for picking up this thread!
>>
>> I am using: Maven 3.0.4 and maven-release-plugin 2.4.1
>>
>> -Markus
>>
>>> Hi, which version of Maven and Maven-Release-Plugin are you using?
>>>
>>> On Mon, Jul 22, 2013 at 9:25 AM, Markus Karg <k...@quipsy.de> wrote:
>>>
>>>> I'm driving nuts with mvn release:prepare...:
>>>>
>>>> When I do mvn release:prepare, Maven asks whether I want to update
>>> all
>>>> SNAPSHOT version referenced in the POM.
>>>> I say "yes" and confirm all suggested replacement versions
>> unchanged.
>>>> When Maven is done, I check the POM.xml.
>>>> It is correctly rewritten for all references, but not for the
>>>> parent version.
>>>> The parent version still references the *old* SNAPSHOT, while
>>>> obviously it should now name the *next* SNAPSHOT.
>>>>
>>>> Can somebody tell me what I have to do so that mvn release:prepare
>>>> will also make the parent version point tot he *next* SNAPSHOT, as
>> it
>>>> does it correctly with the dependencies and the project's own
>>> version?
>>>>
>>>> Thanks!
>>>> -Markus
>>>>
>>>>
>>>>
>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>>
>>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

-----------------
Come read my webnovel, Take a Lemon <http://www.takealemon.com>, and listen to 
the Misfile radio play <http://www.gold-family.us/audio/misfile.html>!





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to