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

Martin Kanters edited comment on MNG-5760 at 4/21/20, 6:18 PM:
---------------------------------------------------------------

[~mthmulders] and I implemented a PR for this, but it's on hold currently, 
because we figured we would like some changes.

We had a discussion today with [~rfscholte] and [~mthmulders] . We were picking 
up MNG-5571 and noticed it would be nice if we could resume-from a build, while 
skipping projects after it which already succeeded. (This is possible in the 
case of when {{--fail-at-end}} is used or when the build is executed in a 
parallel fashion. 
 This can be implemented by showing the user {{-rf}} in combination with {{-pl 
!<proj>}} at the end of the build, but that's potentially way too noisy when it 
has hundreds of modules...

We figured it could easily be picked up in this story, when we make the cache 
file into a properties file. We will be looking into this shortly.


was (Author: martinkanters):
[~mthmulders] and implemented a PR for this, but it's on hold currently, 
because we figured we would like some changes.

We had a discussion today with [~rfscholte] and [~mthmulders] . We were picking 
up MNG-5571 and noticed it would be nice if we could --resume-from a build, 
while skipping projects after it which already succeeded. (This is possible in 
the case of when {{--fail-at-end}} is used or when the build is executed in a 
parallel fashion. This can be fixed by using {{-rf}} in combination with {{-pl 
!<proj>}}, but it's potentially too much to show to the user at the end of the 
build when it has hundreds of modules... We figured it could easily be picked 
up in this story, when we make the cache file into a properties file. We will 
be looking into this shortly.

> All `-rf` to automatically resume from the last failure point
> -------------------------------------------------------------
>
>                 Key: MNG-5760
>                 URL: https://issues.apache.org/jira/browse/MNG-5760
>             Project: Maven
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 3.2.5
>            Reporter: Phillip Webb
>            Priority: Trivial
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently when a multi-module build fails the {{mvn}} command line prints the 
> following error:
> {noformat}
> [ERROR] After correcting the problems, you can resume the build with the 
> command
> [ERROR]   mvn <goals> -rf :some-module-name
> {noformat}
> Since I almost always want to use this flag with the next build it would be 
> very useful if you could type {{mvn <goals> -rf}} and have the project name 
> inferred from the last failure rather than needing to copy/paste from the 
> terminal.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to