maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@codehaus.org>
Subject [jira] (MRELEASE-625) mvn release:perform Problem
Date Thu, 01 Mar 2012 22:30:02 GMT

     [ https://jira.codehaus.org/browse/MRELEASE-625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Scholte updated MRELEASE-625:
------------------------------------

    Description: 
Hi folks,

I have a problem when i'm trying to run the Maven task: mvn -X release:perform

My pom.xml plugin definition:
{code:xml}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.1</version>
<configuration>
<remoteTagging>true</remoteTagging>
<arguments>-Dmaven.test.skip</arguments>
<tagBase>https://svn/repo/portal/tags/</tagBase>
</configuration>
</plugin>
{code}
Debug stacktrace:
Checkout from an SCM URL was done successfully.
In deploy goal the error ocurr. If i execute only mvn deploy, its done successfully.
{noformat}
[WARNING] Maven will be executed in interactive mode, but no input stream has been configured
for this MavenInvoker instance.
[INFO] + Error stacktraces are turned on.
[INFO] Apache Maven 2.2.1 (rdebian-1)
[INFO] Java version: 1.6.0_21
[INFO] Java home: /opt/java/jdk1.6.0_21/jre
[INFO] Default locale: en_US, platform encoding: UTF-8
[INFO] OS name: "linux" version: "2.6.32-26-generic" arch: "i386" Family: "unix"
[INFO] [DEBUG] Building Maven user-level plugin registry from: '/home/vinidog/.m2/plugin-registry.xml'
[INFO] [DEBUG] Building Maven global-level plugin registry from: '/usr/share/maven2/conf/plugin-registry.xml'
[INFO] [INFO] Scanning for projects...
[INFO] [DEBUG] Wagons could not be registered as the extension container was never created
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Building Maven Default Project
[INFO] [INFO]    task-segment: [deploy]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:12 for project:
null:maven-resources-plugin:maven-plugin:2.3 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:9 for project: org.apache.maven.plugins:maven-plugins:pom:12
from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:4 for project: org.apache.maven:maven-parent:pom:9
from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:8 for project:
null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:5 for project: org.apache.maven.plugins:maven-plugins:pom:8
from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:3 for project: org.apache.maven:maven-parent:pom:5
from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire:pom:2.4.3 for project:
org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:null from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:7 for project: org.apache.maven.surefire:surefire:pom:2.4.3
from the repository.
[INFO] [DEBUG] Adding managed dependencies for org.apache.maven.plugins:maven-surefire-plugin
[INFO] [DEBUG]   org.apache.maven.surefire:surefire-api:jar:2.4.3
[INFO] [DEBUG]   org.apache.maven.surefire:surefire-booter:jar:2.4.3
[INFO] [DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.5.1
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:10 for project:
null:maven-jar-plugin:maven-plugin:2.2 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:13 for project:
null:maven-install-plugin:maven-plugin:2.3 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:11 for project: org.apache.maven.plugins:maven-plugins:pom:13
from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:5 for project: org.apache.maven:maven-parent:pom:11
from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:11 for project:
null:maven-deploy-plugin:maven-plugin:2.4 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:8 for project: org.apache.maven.plugins:maven-plugins:pom:11
from the repository.
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml,
but the build is not using one.
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [DEBUG] Trace
[INFO] org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute mojo: resources.
It requires a project with an existing pom.xml, but the build is not using one.
[INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
[INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
[INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
[INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
[INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
[INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
[INFO] 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
[INFO] 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
[INFO] 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
[INFO] 	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
[INFO] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO] 	at java.lang.reflect.Method.invoke(Method.java:597)
[INFO] 	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
[INFO] 	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
[INFO] 	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
[INFO] 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo: resources.
It requires a project with an existing pom.xml, but the build is not using one.
[INFO] 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:414)
[INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
[INFO] 	... 17 more
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 1 second
[INFO] [INFO] Finished at: Thu Dec 09 12:14:16 BRST 2010
[INFO] [INFO] Final Memory: 9M/83M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Maven execution failed, exit code: '1'

[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Maven execution failed, exit code:
'1'
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
	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 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Maven execution failed, exit code:
'1'
	at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:136)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
	... 17 more
Caused by: org.apache.maven.shared.release.ReleaseExecutionException: Maven execution failed,
exit code: '1'
	at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:90)
	at org.apache.maven.shared.release.phase.RunPerformGoalsPhase.execute(RunPerformGoalsPhase.java:67)
	at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:343)
	at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:289)
	at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:269)
	at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:132)
	... 19 more
Caused by: org.apache.maven.shared.release.exec.MavenExecutorException: Maven execution failed,
exit code: '1'
	at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:399)
	at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:417)
	at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:82)
	... 24 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26 seconds
[INFO] Finished at: Thu Dec 09 12:14:16 BRST 2010
[INFO] Final Memory: 18M/273M
[INFO] -----------------
-------------------------------------------------------
{noformat}

Complete stacktrace log attachment.

Tks for the advice!



  was:
Hi folks,

I have a problem when i'm trying to run the Maven task: mvn -X release:perform

My pom.xml plugin definition:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.1</version>
<configuration>
<remoteTagging>true</remoteTagging>
<arguments>-Dmaven.test.skip</arguments>
<tagBase>https://svn/repo/portal/tags/</tagBase>
</configuration>
</plugin>

Debug stacktrace:
Checkout from an SCM URL was done successfully.
In deploy goal the error ocurr. If i execute only mvn deploy, its done successfully.

[WARNING] Maven will be executed in interactive mode, but no input stream has been configured
for this MavenInvoker instance.
[INFO] + Error stacktraces are turned on.
[INFO] Apache Maven 2.2.1 (rdebian-1)
[INFO] Java version: 1.6.0_21
[INFO] Java home: /opt/java/jdk1.6.0_21/jre
[INFO] Default locale: en_US, platform encoding: UTF-8
[INFO] OS name: "linux" version: "2.6.32-26-generic" arch: "i386" Family: "unix"
[INFO] [DEBUG] Building Maven user-level plugin registry from: '/home/vinidog/.m2/plugin-registry.xml'
[INFO] [DEBUG] Building Maven global-level plugin registry from: '/usr/share/maven2/conf/plugin-registry.xml'
[INFO] [INFO] Scanning for projects...
[INFO] [DEBUG] Wagons could not be registered as the extension container was never created
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Building Maven Default Project
[INFO] [INFO]    task-segment: [deploy]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:12 for project:
null:maven-resources-plugin:maven-plugin:2.3 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:9 for project: org.apache.maven.plugins:maven-plugins:pom:12
from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:4 for project: org.apache.maven:maven-parent:pom:9
from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:8 for project:
null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:5 for project: org.apache.maven.plugins:maven-plugins:pom:8
from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:3 for project: org.apache.maven:maven-parent:pom:5
from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire:pom:2.4.3 for project:
org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:null from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:7 for project: org.apache.maven.surefire:surefire:pom:2.4.3
from the repository.
[INFO] [DEBUG] Adding managed dependencies for org.apache.maven.plugins:maven-surefire-plugin
[INFO] [DEBUG]   org.apache.maven.surefire:surefire-api:jar:2.4.3
[INFO] [DEBUG]   org.apache.maven.surefire:surefire-booter:jar:2.4.3
[INFO] [DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.5.1
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:10 for project:
null:maven-jar-plugin:maven-plugin:2.2 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:13 for project:
null:maven-install-plugin:maven-plugin:2.3 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:11 for project: org.apache.maven.plugins:maven-plugins:pom:13
from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:5 for project: org.apache.maven:maven-parent:pom:11
from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:11 for project:
null:maven-deploy-plugin:maven-plugin:2.4 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:8 for project: org.apache.maven.plugins:maven-plugins:pom:11
from the repository.
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml,
but the build is not using one.
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [DEBUG] Trace
[INFO] org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute mojo: resources.
It requires a project with an existing pom.xml, but the build is not using one.
[INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
[INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
[INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
[INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
[INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
[INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
[INFO] 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
[INFO] 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
[INFO] 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
[INFO] 	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
[INFO] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO] 	at java.lang.reflect.Method.invoke(Method.java:597)
[INFO] 	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
[INFO] 	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
[INFO] 	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
[INFO] 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo: resources.
It requires a project with an existing pom.xml, but the build is not using one.
[INFO] 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:414)
[INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
[INFO] 	... 17 more
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 1 second
[INFO] [INFO] Finished at: Thu Dec 09 12:14:16 BRST 2010
[INFO] [INFO] Final Memory: 9M/83M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Maven execution failed, exit code: '1'

[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Maven execution failed, exit code:
'1'
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
	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 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Maven execution failed, exit code:
'1'
	at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:136)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
	... 17 more
Caused by: org.apache.maven.shared.release.ReleaseExecutionException: Maven execution failed,
exit code: '1'
	at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:90)
	at org.apache.maven.shared.release.phase.RunPerformGoalsPhase.execute(RunPerformGoalsPhase.java:67)
	at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:343)
	at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:289)
	at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:269)
	at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:132)
	... 19 more
Caused by: org.apache.maven.shared.release.exec.MavenExecutorException: Maven execution failed,
exit code: '1'
	at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:399)
	at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:417)
	at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:82)
	... 24 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26 seconds
[INFO] Finished at: Thu Dec 09 12:14:16 BRST 2010
[INFO] Final Memory: 18M/273M
[INFO] -----------------
-------------------------------------------------------

Complete stacktrace log attachment.

Tks for the advice!



    
> mvn release:perform Problem
> ---------------------------
>
>                 Key: MRELEASE-625
>                 URL: https://jira.codehaus.org/browse/MRELEASE-625
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: perform
>    Affects Versions: 2.1
>         Environment: Linux Ubuntu 10.4
> java version "1.6.0_21"
> Maven 2.2.1
>            Reporter: Vinicius de Paula
>         Attachments: maven.log
>
>
> Hi folks,
> I have a problem when i'm trying to run the Maven task: mvn -X release:perform
> My pom.xml plugin definition:
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-release-plugin</artifactId>
> <version>2.1</version>
> <configuration>
> <remoteTagging>true</remoteTagging>
> <arguments>-Dmaven.test.skip</arguments>
> <tagBase>https://svn/repo/portal/tags/</tagBase>
> </configuration>
> </plugin>
> {code}
> Debug stacktrace:
> Checkout from an SCM URL was done successfully.
> In deploy goal the error ocurr. If i execute only mvn deploy, its done successfully.
> {noformat}
> [WARNING] Maven will be executed in interactive mode, but no input stream has been configured
for this MavenInvoker instance.
> [INFO] + Error stacktraces are turned on.
> [INFO] Apache Maven 2.2.1 (rdebian-1)
> [INFO] Java version: 1.6.0_21
> [INFO] Java home: /opt/java/jdk1.6.0_21/jre
> [INFO] Default locale: en_US, platform encoding: UTF-8
> [INFO] OS name: "linux" version: "2.6.32-26-generic" arch: "i386" Family: "unix"
> [INFO] [DEBUG] Building Maven user-level plugin registry from: '/home/vinidog/.m2/plugin-registry.xml'
> [INFO] [DEBUG] Building Maven global-level plugin registry from: '/usr/share/maven2/conf/plugin-registry.xml'
> [INFO] [INFO] Scanning for projects...
> [INFO] [DEBUG] Wagons could not be registered as the extension container was never created
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [INFO] Building Maven Default Project
> [INFO] [INFO]    task-segment: [deploy]
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:12 for
project: null:maven-resources-plugin:maven-plugin:2.3 from the repository.
> [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:9 for project:
org.apache.maven.plugins:maven-plugins:pom:12 from the repository.
> [INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:4 for project: org.apache.maven:maven-parent:pom:9
from the repository.
> [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:8 for
project: null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository.
> [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:5 for project:
org.apache.maven.plugins:maven-plugins:pom:8 from the repository.
> [INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:3 for project: org.apache.maven:maven-parent:pom:5
from the repository.
> [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire:pom:2.4.3 for
project: org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:null from the repository.
> [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:7 for project:
org.apache.maven.surefire:surefire:pom:2.4.3 from the repository.
> [INFO] [DEBUG] Adding managed dependencies for org.apache.maven.plugins:maven-surefire-plugin
> [INFO] [DEBUG]   org.apache.maven.surefire:surefire-api:jar:2.4.3
> [INFO] [DEBUG]   org.apache.maven.surefire:surefire-booter:jar:2.4.3
> [INFO] [DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.5.1
> [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:10 for
project: null:maven-jar-plugin:maven-plugin:2.2 from the repository.
> [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:13 for
project: null:maven-install-plugin:maven-plugin:2.3 from the repository.
> [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:11 for project:
org.apache.maven.plugins:maven-plugins:pom:13 from the repository.
> [INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:5 for project: org.apache.maven:maven-parent:pom:11
from the repository.
> [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:11 for
project: null:maven-deploy-plugin:maven-plugin:2.4 from the repository.
> [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:8 for project:
org.apache.maven.plugins:maven-plugins:pom:11 from the repository.
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [ERROR] BUILD ERROR
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing
pom.xml, but the build is not using one.
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [DEBUG] Trace
> [INFO] org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute mojo: resources.
It requires a project with an existing pom.xml, but the build is not using one.
> [INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> [INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> [INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> [INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> [INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> [INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> [INFO] 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> [INFO] 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> [INFO] 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> [INFO] 	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> [INFO] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [INFO] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [INFO] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [INFO] 	at java.lang.reflect.Method.invoke(Method.java:597)
> [INFO] 	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> [INFO] 	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> [INFO] 	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> [INFO] 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO] Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo:
resources. It requires a project with an existing pom.xml, but the build is not using one.
> [INFO] 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:414)
> [INFO] 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> [INFO] 	... 17 more
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [INFO] Total time: 1 second
> [INFO] [INFO] Finished at: Thu Dec 09 12:14:16 BRST 2010
> [INFO] [INFO] Final Memory: 9M/83M
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Maven execution failed, exit code: '1'
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Maven execution failed, exit
code: '1'
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> 	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> 	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 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Maven execution failed, exit
code: '1'
> 	at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:136)
> 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> 	... 17 more
> Caused by: org.apache.maven.shared.release.ReleaseExecutionException: Maven execution
failed, exit code: '1'
> 	at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:90)
> 	at org.apache.maven.shared.release.phase.RunPerformGoalsPhase.execute(RunPerformGoalsPhase.java:67)
> 	at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:343)
> 	at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:289)
> 	at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:269)
> 	at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:132)
> 	... 19 more
> Caused by: org.apache.maven.shared.release.exec.MavenExecutorException: Maven execution
failed, exit code: '1'
> 	at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:399)
> 	at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:417)
> 	at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:82)
> 	... 24 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 26 seconds
> [INFO] Finished at: Thu Dec 09 12:14:16 BRST 2010
> [INFO] Final Memory: 18M/273M
> [INFO] -----------------
> -------------------------------------------------------
> {noformat}
> Complete stacktrace log attachment.
> Tks for the advice!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message