I'm trying to sign & release my project artifacts to a maven repository.  I'm
currently getting the following error when executing:
> mvn -e -X release:perform -Dgpg.useagent=true
> -Darguments="-Dgpg.useagent=true"

[INFO] [DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy' -->
[INFO] [DEBUG]   (f) artifact = org.pyant.tasks:pyAntTasks:jar:1.3.1
[INFO] [DEBUG]   (f) attachedArtifacts =
[org.pyant.tasks:pyAntTasks:java-source:sources:1.3.1,
org.pyant.tasks:pyAntTasks:javadoc:javadoc:1.3.1,
org.pyant.tasks:pyAntTasks:jar.asc:1.3.1,
org.pyant.tasks:pyAntTasks:pom.asc:1.3.1,
org.pyant.tasks:pyAntTasks:asc:sources.jar:1.3.1,
org.pyant.tasks:pyAntTasks:asc:javadoc.jar:1.3.1]
[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: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)
...

Section of my distributionManagement section:
        <distributionManagement>
                <repository>
                        <id>sonatype-nexus-staging</id>
                        <name>Nexus Release Repository</name>
                        
<url>http://oss.sonatype.org/service/local/staging/deploy/maven2</url>
                </repository>
                <snapshotRepository>
                        <id>sonatype-nexus-snapshots</id>
                        <name>Sonatype Nexus Snapshots</name>
                        
<url>http://oss.sonatype.org/service/local/staging/deploy/maven2</url>
                </snapshotRepository>
        </distributionManagement>

Info on my environment:
Apache Maven 2.2.1 (r801777; 2009-08-06 14:16:01-0500)
Java version: 1.6.0_17
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.6.2" arch: "x86_64" Family: "mac"


I've searched google/forums for solutions but haven't turned anything up.

Anyone seen this before or know what I might try?

Regards,
Ron

-- 
View this message in context: 
http://n2.nabble.com/Error-from-maven-deploy-plugin-during-release-perform-tp4822554p4822554.html
Sent from the maven users mailing list archive at Nabble.com.

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

Reply via email to