[Issue 4363] New - While executing maven release plugin, an error is being thrown when verifying that there are no local modifications.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 4363] New - While executing maven release plugin, an error is being thrown when verifying that there are no local modifications.

bpmericle
https://hudson.dev.java.net/issues/show_bug.cgi?id=4363
                 Issue #|4363
                 Summary|While executing maven release plugin, an error is bein
                        |g thrown when verifying that there are no local modifi
                        |cations.
               Component|hudson
                 Version|current
                Platform|PC
              OS/Version|Linux
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P2
            Subcomponent|subversion
             Assigned to|issues@hudson
             Reported by|bpmericle






------- Additional comments from [hidden email] Mon Aug 31 23:07:13 +0000 2009 -------
I'm using version 1.322. When using the
http://wiki.hudson-ci.org/display/HUDSON/M2+Release+Plugin or just creating a
new job that performs a maven release, the command "/bin/sh -c cd <full path to
workspace> && svn --non-interactive status" is failing, with the following
message "/bin/sh: svn: command not found".

I'm not sure where Hudson is trying to run this command relative to the
workspace, but I navigated to the workspace location from the command line and
ran "mvn -e -B release:clean release:prepare release:perform" and everything
worked perfectly fine.

Console output after project was successfully checked out.
###########################################################################
Parsing POMs
[trunk] $ /usr/java/latest/bin/java -cp
/apps/hudson/.hudson/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.322.jar:/apps/hudson/applications/apache-maven-2.1.0/boot/classworlds-1.1.jar
hudson.maven.agent.Main /apps/hudson/applications/apache-maven-2.1.0
/apps/hudson/applications/apache-tomcat-6.0.18/work/Catalina/localhost/hudson/WEB-INF/lib/remoting-1.322.jar
/apps/hudson/.hudson/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.322.jar 34758
/apps/hudson/.hudson/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar
���channel started
Executing Maven:  -B -f
/apps/hudson/.hudson/jobs/Sample-Multi-Module/workspace/trunk/pom.xml -e
release:prepare release:perform+ Error stacktraces are turned on.

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Multi-Module
[INFO]   Multi-Module [Module 1]
[INFO]   Multi-Module [Module 2]
[INFO]   Multi-Module [Module 3]
[INFO]   Multi-Module [Module 3 - Sub Module 1]
[INFO]   Multi-Module [Module 3 - Sub Module 2]
[INFO]   Multi-Module [Module 3 - Sub Module 3]
[INFO] ------------------------------------------------------------------------
[INFO] Building Multi-Module
[INFO]    task-segment: [release:prepare, release:perform] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [release:prepare]
[INFO] Verifying that there are no local modifications...
[INFO] Executing: /bin/sh -c cd
/apps/hudson/.hudson/jobs/Sample-Multi-Module/workspace/trunk && svn
--non-interactive status
[INFO] Working directory:
/apps/hudson/.hudson/jobs/Sample-Multi-Module/workspace/trunk
[HUDSON] Archiving
/apps/hudson/.hudson/jobs/Sample-Multi-Module/workspace/trunk/pom.xml to
/apps/hudson/.hudson/jobs/Sample-Multi-Module/modules/dte.sandbox.multi.module$multi-module/builds/2009-08-31_15-19-21/archive/dte.sandbox.multi.module/multi-module/1.0.3-SNAPSHOT/pom.xml
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Unable to check for local modifications
Provider message:
The svn command failed.
Command output:
/bin/sh: svn: command not found[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Unable to check for local modifications
Provider message:
The svn command failed.
Command output:
/bin/sh: svn: command not found

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:699)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
        at
org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at hudson.maven.agent.Main.launch(Main.java:165)
        at hudson.maven.MavenBuilder.call(MavenBuilder.java:159)
        at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:685)
        at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:631)
        at hudson.remoting.UserRequest.perform(UserRequest.java:103)
        at hudson.remoting.UserRequest.perform(UserRequest.java:47)
        at hudson.remoting.Request$2.run(Request.java:236)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.maven.plugin.MojoFailureException: Unable to check for
local modifications
Provider message:
The svn command failed.
Command output:
/bin/sh: svn: command not found

        at
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:169)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
        at
hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
        ... 28 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Mon Aug 31 15:48:36 MST 2009
[INFO] Final Memory: 13M/25M
[INFO] ------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4363] While executing maven release plugin, an error is being thrown when verifying that there are no local modifications.

bpmericle
https://hudson.dev.java.net/issues/show_bug.cgi?id=4363






------- Additional comments from [hidden email] Mon Aug 31 23:14:13 +0000 2009 -------
Created an attachment (id=880)
My hudson job configuration


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [Issue 4363] New - While executing maven release plugin, an error is being thrown when verifying that there are no local modifications.

Nayan Hajratwala
In reply to this post by bpmericle
Any updates on this one? The bug appears to be stagnant, and it just started blocking one of my releases.


bpmericle wrote
https://hudson.dev.java.net/issues/show_bug.cgi?id=4363
                 Issue #|4363
                 Summary|While executing maven release plugin, an error is bein
                        |g thrown when verifying that there are no local modifi
                        |cations.

<... snip ...>

[HUDSON] Archiving
/apps/hudson/.hudson/jobs/Sample-Multi-Module/workspace/trunk/pom.xml to
/apps/hudson/.hudson/jobs/Sample-Multi-Module/modules/dte.sandbox.multi.module$multi-module/builds/2009-08-31_15-19-21/archive/dte.sandbox.multi.module/multi-module/1.0.3-SNAPSHOT/pom.xml
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Unable to check for local modifications
Provider message:
The svn command failed.
Command output:
/bin/sh: svn: command not found[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Unable to check for local modifications
Provider message:
The svn command failed.
Command output:
/bin/sh: svn: command not found

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:699)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
        at
org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at hudson.maven.agent.Main.launch(Main.java:165)
        at hudson.maven.MavenBuilder.call(MavenBuilder.java:159)
        at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:685)
        at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:631)
        at hudson.remoting.UserRequest.perform(UserRequest.java:103)
        at hudson.remoting.UserRequest.perform(UserRequest.java:47)
        at hudson.remoting.Request$2.run(Request.java:236)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.maven.plugin.MojoFailureException: Unable to check for
local modifications
Provider message:
The svn command failed.
Command output:
/bin/sh: svn: command not found

        at
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:169)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
        at
hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
        ... 28 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Mon Aug 31 15:48:36 MST 2009
[INFO] Final Memory: 13M/25M
[INFO] ------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hudson.dev.java.net
For additional commands, e-mail: issues-help@hudson.dev.java.net
Reply | Threaded
Open this post in threaded view
|

Re: [Issue 4363] New - While executing maven release plugin, an error is being thrown when verifying that there are no local modifications.

issue_police
Hi,

This is a friendly reminder that the 'issues' list is only used for
automatic e-mail notification from the issue tracker, and not meant
for interactive discussion. Please request an observer role for the
project and add the comment to the issue, or please redirect your
e-mails to the 'users' list.

(this is an automatically generated message, and if you have a comment
about this bot itself, please contact [hidden email]

----
Java.net issue tracker auto responder

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]