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

(d) Lincoln Baxter III commented on MRELEASE-878:
-------------------------------------------------

I believe this issue has to do with situation where the release plugin includes 
the dependency-reduced-pom.xml from the shade plugin during Git activity, which 
results in Git attempting to commit the file after the shade plugin has removed 
it (since it is a temporary file, it should never be committed or picked up in 
the release. It is an intermediate step.)

http://stackoverflow.com/questions/33523143/maven-release-plugin-error-fatal-pathspec-did-not-match-any-files?noredirect=1#comment54827759_33523143

The situation results in:

{code}
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 09:27 min
[INFO] Finished at: 2015-11-04T08:23:07-05:00
[INFO] Final Memory: 111M/1039M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-release-plugin:2.5.1:prepare (default-cli) on 
project rewrite-parent: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-add command failed.
[ERROR] Command output:
[ERROR] fatal: pathspec 'config-prettyfaces/dependency-reduced-pom.xml' did not 
match any files
[ERROR] -> [Help 1]
{code}

> Exclude generated dependency-reduced-pom.xml and flattened-pom.xml
> ------------------------------------------------------------------
>
>                 Key: MRELEASE-878
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-878
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.5
>            Reporter: Mirko Friedenhagen
>
> As stated in MOJO-2030 and MSHADE-145, both plugins create additional poms in 
> {{basedir}} to avoid confusion while generating the site.
> This will lead to an error during {{release:prepare}}, so just exclude 
> {{dependency-reduced-pom.xml}} and {{flattened-pom.xml}} by default as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to