[ 
https://issues.apache.org/jira/browse/MRELEASE-835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16220165#comment-16220165
 ] 

ASF GitHub Bot commented on MRELEASE-835:
-----------------------------------------

theit opened a new pull request #19: Fix for MRELEASE-835: Automatically 
resolve snapshot dependencies in release:prepare
URL: https://github.com/apache/maven-release/pull/19
 
 
   This pull requests adds support to release:prepare to let it automatically 
resolve snapshot dependencies without user interaction. Without this it is 
(almost) impossible to use the release plugin in full batch mode:
   
   Assume your project A's pom.xml contains a snapshot dependency to project B 
which was released in the meantime. As long as you're running "mvn 
release:prepare release:perform" in a console on project A, everything works; 
the user is asked to resolve the snapshot dependency. So far, so good.
   If you're using a build server for doing releases in batch mode, i.e. 
without the ability for user interaction, this won't work because 
release:prepare hangs while waiting for user input that never happens.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Automatically resolve snapshot dependencies in release:prepare
> --------------------------------------------------------------
>
>                 Key: MRELEASE-835
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-835
>             Project: Maven Release Plugin
>          Issue Type: New Feature
>          Components: prepare
>    Affects Versions: 2.4.1
>            Reporter: Thorsten Scherler
>         Attachments: maven-release-plugin.patch
>
>
> mvn release:prepare has a nice feature to automatically resolve snapshot 
> dependencies in a pom.xml when it detects that there are still unresolved 
> ones. Unfortunately this only works in interactive mode, and directly breaks 
> the build in batch mode.
> The attached patch adds the following two command-line parameters to 
> release:prepare so that a user can run release:prepare in fully 
> non-interactive mode, and doesn't change the actual behaviour when they are 
> not given:
> * autoResolveSnapshotDependencies
> * autoResolveSnapshotDependenciesMode
> *Background:*
> Say I have projects A and B, and B depends on A. Both projects are about to 
> be released at a certain time.
> "mvn release:prepare release:perform" does this job quite well and can be 
> implemented for project A for example on a build server to be run 
> non-interactively via the build server's web interface.
> To release project B in a similar way, i.e. as a non-interactive job on a 
> build server, this requires that I manually update the snapshot dependencies 
> of B's pom.xml and check in the modified file before I trigger the job; 
> otherwise the build would fail.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to