Problem Perform Maven Release

666 views
Skip to first unread message

Leandro Andrade

unread,
Aug 14, 2014, 12:35:43 PM8/14/14
to jenkins...@googlegroups.com
Hi guys.
I have a problem when I try to do Perform Maven Release:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.4.1:prepare (default-cli) on project test: Cannot prepare the release because you have local modifications :
[ERROR] [target/apidocs:unknown]
[ERROR] [target/classes:unknown]
[ERROR] [target/test-1.5.30-SNAPSHOT:unknown]
[ERROR] [target/test-1.5.30-SNAPSHOT-javadoc.jar:unknown]
[ERROR] [target/test-1.5.30-SNAPSHOT-sources.jar:unknown]
[ERROR] [target/test-1.5.30-SNAPSHOT.war:unknown]
[ERROR] [target/generated-sources:unknown]
[ERROR] [target/javadoc-bundle-options:unknown]
[ERROR] [target/maven-archiver:unknown]
[ERROR] [target/test-classes:unknown]
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.


What's the problem?

Thanks.

Thomas Sundberg

unread,
Aug 15, 2014, 12:22:31 AM8/15/14
to Jenkins Users
The error message states "Cannot prepare the release because you have
local modifications"

That is your problem. Files under version control has been changed and
not committed when your executed the release plugin.

/Thomas



> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-use...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Thomas Sundberg
M. Sc. in Computer Science

Mobile: +46 70 767 33 15
Blog: http://thomassundberg.wordpress.com/
Twitter: @thomassundberg

Better software through faster feedback

Adam Guja

unread,
Aug 16, 2014, 1:17:19 AM8/16/14
to jenkins...@googlegroups.com
You can use <checkModificationExcludes>
if the changes are done during the release

Christoph Kutzinski

unread,
Aug 16, 2014, 3:22:58 AM8/16/14
to jenkins...@googlegroups.com
A simpler - and IMHO much cleaner - way would be to add the target
folder to svn:ignore.
You shouldn't have any local modifications during the release process,
otherwise you're doing it wrong!
> --
> You received this message because you are subscribed to the Google
> Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jenkinsci-use...@googlegroups.com
> <mailto:jenkinsci-use...@googlegroups.com>.
Reply all
Reply to author
Forward
0 new messages