You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Baptiste MATHUS <ml...@batmat.net> on 2009/12/01 14:18:55 UTC

Re: Problem with the release:perform

Please retry with -e -X additional options to have more verbose output.

Cheers.

2009/11/30 Jouko Johansson <jo...@gmail.com>

> Hi,
>
>
> I tried to execute the release:perform goal. When the execution reaches to
> deploy -task segment, there's a error.
>
> INFO] [ERROR] BUILD ERROR
> [INFO] [INFO]
> ------------------------------------------------------------------------
> [INFO] [INFO] Failed to configure plugin parameters for:
> org.apache.maven.plugins:maven-deploy-plugin:2.4
> [INFO]
> [INFO] check that the following section of the pom.xml is present and
> correct:
> [INFO]
> [INFO] <distributionManagement>
> [INFO]   <!-- use the following if you're not using a snapshot version. -->
> [INFO]   <repository>
> [INFO]     <id>repo</id>
> [INFO]     <name>Repository Name</name>
> [INFO]     <url>scp://host/path/to/repo</url>
> [INFO]   </repository>
> [INFO]   <!-- use the following if you ARE using a snapshot version. -->
> [INFO]   <snapshotRepository>
> [INFO]     <id>repo</id>
> [INFO]     <name>Repository Name</name>
> [INFO]     <url>scp://host/path/to/repo</url>
> [INFO]   </snapshotRepository>
> [INFO] </distributionManagement>
> [INFO]
> [INFO] Cause: Class
> 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be
> instantiated
> [INFO] [INFO]
> ------------------------------------------------------------------------
> [INFO] [INFO] For more information, run Maven with the -e switch
> [INFO] [INFO]
> ------------------------------------------------------------------------
> [INFO] [INFO] Total time: 7 seconds
> [INFO] [INFO] Finished at: Mon Nov 30 09:54:52 EET 2009
> [INFO] [INFO] Final Memory: 20M/119M
> [INFO] [INFO]
> ------------------------------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
>
>
> in my pom.xml there are those lines:
>
>    <distributionManagement>
>        <repository>
>            <id>repo</id>
>            <name>repo svn</name>
>            <url>scp://127.0.0.1/home/repo/repository</url>
>        </repository>
>        <snapshotRepository>
>            <id>repo-svn-ss</id>
>            <name>repo</name>
>            <url>scp://127.0.0.1/home/repo/repository2</url>
>        </snapshotRepository>
>    </distributionManagement>
>
> and if I try with mvn deploy, it's a success.
>
> Yours,
>
> - Jouko
>



-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

Re: Problem with the release:perform

Posted by linzhang <lz...@reverbnetworks.com>.
Me too, I have same problem as following and need someone to point it out.
Thanks.

-Lin

WARNING] File encoding has not been set, using platform encoding Cp1252,
i.e. build is platform dependent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 70 resources
[INFO] Copying 27 resources
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252,
i.e. build is platform dependent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 22 resources
[INFO] Copying 13 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Not compiling test sources
[INFO] [dbunit:operation {execution: test-compile}]
[INFO] Skip operation: CLEAN_INSERT execution
[INFO] [surefire:test {execution: default-test}]
[INFO] Tests are skipped.
[INFO] [dbunit:operation {execution: test}]
[INFO] Skip operation: CLEAN_INSERT execution
[INFO] [jar:jar {execution: default-jar}]
[INFO] Building jar:
C:\Tools\Hudson\jobs\Maven-Build-All\workspace\beammaker\target\beammaker-1.0-SNAPSHOT.jar
[INFO] [install:install {execution: default-install}]
[INFO] Installing
C:\Tools\Hudson\jobs\Maven-Build-All\workspace\beammaker\target\beammaker-1.0-SNAPSHOT.jar
to
c:\mvn_repo\com\reverb\beammaker\framework\beammaker\1.0-SNAPSHOT\beammaker-1.0-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-deploy-plugin:2.4

check that the following section of the pom.xml is present and correct:

<distributionManagement>
  <!-- use the following if you're not using a snapshot version. -->
  <repository>
    <id>repo</id>
    <name>Repository Name</name>
    <url>scp://host/path/to/repo</url>
  </repository>
  <!-- use the following if you ARE using a snapshot version. -->
  <snapshotRepository>
    <id>repo</id>
    <name>Repository Name</name>
    <url>scp://host/path/to/repo</url>
  </snapshotRepository>
</distributionManagement>

Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository'
cannot be instantiated
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Wed Jan 12 13:50:32 EST 2011
[INFO] Final Memory: 26M/64M
[INFO]
------------------------------------------------------------------------

-- 
View this message in context: http://maven-users.828.n2.nabble.com/Problem-with-the-release-perform-tp4086657p5915704.html
Sent from the maven users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problem with the release:perform

Posted by Stijn Maller <st...@gmail.com>.
Hi Guys,

Sorry for the late reply, but I'm now facing the exact same issue as Jouko.
(The module deploys fine when using mvn deploy, but not when it is deployed
during a mvn release:perform)

In my case the project is an ear module in a multi module project. What
makes it even weirder is that the distributionManagement section is defined
in the parent pom, thus shared by all the other modules. And on all the
other modules the deploy works during a release:perform as well.

Running with -x -e doesn't really give me any useful extra information.

Kind regards,
Stijn


[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-deploy-plugin:2.4
[INFO]
[INFO] check that the following section of the pom.xml is present and
correct:
[INFO]
[INFO] <distributionManagement>
[INFO]   <!-- use the following if you're not using a snapshot version. -->
[INFO]   <repository>
[INFO]     <id>repo</id>
[INFO]     <name>Repository Name</name>
[INFO]     <url>scp://host/path/to/repo</url>
[INFO]   </repository>
[INFO]   <!-- use the following if you ARE using a snapshot version. -->
[INFO]   <snapshotRepository>
[INFO]     <id>repo</id>
[INFO]     <name>Repository Name</name>
[INFO]     <url>scp://host/path/to/repo</url>
[INFO]   </snapshotRepository>
[INFO] </distributionManagement>
[INFO]
[INFO] Cause: Class
'org.apache.maven.artifact.repository.ArtifactRepository' cannot be
instantiated
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [DEBUG] Trace
[INFO] org.apache.maven.lifecycle.LifecycleExecutionException: Error
configuring: org.apache.maven.plugins:maven-deploy-
plugin. Reason: Unable to parse the created DOM for plugin configuration
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:723)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:55
6)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a: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.PluginConfigurationException:
Error configuring: org.apache.maven.plugins:mave
n-deploy-plugin. Reason: Unable to parse the created DOM for plugin
configuration
[INFO]  at
org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1363)
[INFO]  at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:724)
[INFO]  at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
[INFO]  ... 17 more
[INFO] Caused by:
org.codehaus.plexus.component.configurator.ComponentConfigurationException:
Class 'org.apache.maven.ar
tifact.repository.ArtifactRepository' cannot be instantiated
[INFO]  at
org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(Abstra
ctConfigurationConverter.java:121)
[INFO]  at
org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(O
bjectWithFieldsConverter.java:88)
[INFO]  at
org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.jav
a:247)
[INFO]  at
org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguratio
n(ObjectWithFieldsConverter.java:137)
[INFO]  at
org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfig
urator.java:56)
[INFO]  at
org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1357)
[INFO]  ... 20 more
[INFO] Caused by: java.lang.InstantiationException:
org.apache.maven.artifact.repository.ArtifactRepository
[INFO]  at java.lang.Class.newInstance0(Class.java:340)
[INFO]  at java.lang.Class.newInstance(Class.java:308)
[INFO]  at
org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(Abstra
ctConfigurationConverter.java:111)
[INFO]  ... 25 more
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] Total time: 4 minutes 20 seconds
[INFO] [INFO] Finished at: Thu May 20 10:53:17 CEST 2010
[INFO] [INFO] Final Memory: 48M/211M
[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.jav
a: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:133)
        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:89)
        at
org.apache.maven.shared.release.phase.RunPerformGoalsPhase.execute(RunPerformGoalsPhase.java:67)
        at
org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:334)
        at
org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:282)
        at
org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:262)
        at
org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:129)
        ... 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:375)
        at
org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:393)
        at
org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:81)
        ... 24 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5 minutes 39 seconds
[INFO] Finished at: Thu May 20 10:53:18 CEST 2010
[INFO] Final Memory: 8M/16M
[INFO]
------------------------------------------------------------------------





Baptiste MATHUS wrote:
> 
> Please retry with -e -X additional options to have more verbose output.
> 
> Cheers.
> 
> 2009/11/30 Jouko Johansson <jo...@gmail.com>
> 
>> Hi,
>>
>>
>> I tried to execute the release:perform goal. When the execution reaches
>> to
>> deploy -task segment, there's a error.
>>
>> INFO] [ERROR] BUILD ERROR
>> [INFO] [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [INFO] Failed to configure plugin parameters for:
>> org.apache.maven.plugins:maven-deploy-plugin:2.4
>> [INFO]
>> [INFO] check that the following section of the pom.xml is present and
>> correct:
>> [INFO]
>> [INFO] <distributionManagement>
>> [INFO]   <!-- use the following if you're not using a snapshot version.
>> -->
>> [INFO]   <repository>
>> [INFO]     <id>repo</id>
>> [INFO]     <name>Repository Name</name>
>> [INFO]     <url>scp://host/path/to/repo</url>
>> [INFO]   </repository>
>> [INFO]   <!-- use the following if you ARE using a snapshot version. -->
>> [INFO]   <snapshotRepository>
>> [INFO]     <id>repo</id>
>> [INFO]     <name>Repository Name</name>
>> [INFO]     <url>scp://host/path/to/repo</url>
>> [INFO]   </snapshotRepository>
>> [INFO] </distributionManagement>
>> [INFO]
>> [INFO] Cause: Class
>> 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be
>> instantiated
>> [INFO] [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [INFO] For more information, run Maven with the -e switch
>> [INFO] [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [INFO] Total time: 7 seconds
>> [INFO] [INFO] Finished at: Mon Nov 30 09:54:52 EET 2009
>> [INFO] [INFO] Final Memory: 20M/119M
>> [INFO] [INFO]
>> ------------------------------------------------------------------------
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>>
>>
>> in my pom.xml there are those lines:
>>
>>    <distributionManagement>
>>        <repository>
>>            <id>repo</id>
>>            <name>repo svn</name>
>>            <url>scp://127.0.0.1/home/repo/repository</url>
>>        </repository>
>>        <snapshotRepository>
>>            <id>repo-svn-ss</id>
>>            <name>repo</name>
>>            <url>scp://127.0.0.1/home/repo/repository2</url>
>>        </snapshotRepository>
>>    </distributionManagement>
>>
>> and if I try with mvn deploy, it's a success.
>>
>> Yours,
>>
>> - Jouko
>>
> 
> 
> 
> -- 
> Baptiste <Batmat> MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor !
> 
> 

-- 
View this message in context: http://old.nabble.com/Problem-with-the-release%3Aperform-tp26571635p28618857.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org