I can run 'mvn deploy' and it works just fine. I ran release:prepare
and it also worked fine. When I run release:perform, I get the
following error:
$ mvn -e release:perform
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Unnamed - com.shps.da:sandbox:pom:1.1-SNAPSHOT
[INFO] Maven Quick Start Archetype
[INFO] Maven Quick Start Archetype
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO]
---------------------------------------------------------------------
-------
[INFO] Building Unnamed - com.shps.da:sandbox:pom:1.1-SNAPSHOT
[INFO] task-segment: [release:perform] (aggregator-style)
[INFO]
---------------------------------------------------------------------
-------
[INFO] [release:perform]
[INFO] Checking out the project to perform the release ...
THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Unnamed - com.shps.da:sandbox:pom:1.0
[INFO] Maven Quick Start Archetype
[INFO] Maven Quick Start Archetype
[INFO]
---------------------------------------------------------------------
-------
[INFO] Building Unnamed - com.shps.da:sandbox:pom:1.0
[INFO] task-segment: [deploy]
[INFO]
---------------------------------------------------------------------
-------
[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-d
escriptor
[INFO] Preparing javadoc:jar
[INFO] [javadoc:javadoc]
[INFO] Not executing Javadoc as the project is not a Java
classpath-capable package
[INFO] [javadoc:jar {execution: attach-javadocs}]
[INFO] Not executing Javadoc as the project is not a Java
classpath-capable package
[INFO] [source:jar {execution: attach-sources}]
[INFO] NOT adding java-sources to attached artifacts for
packaging: 'pom'.
[INFO] [install:install]
[INFO] Installing d:\cwn\sandbox\target\checkout\pom.xml to
C:\Documents and Settings\s008
254\.m2\repository\com\shps\da\sandbox\1.0\sandbox-1.0.pom
[INFO]
---------------------------------------------------------------------
---
[ERROR] BUILD ERROR
[INFO]
---------------------------------------------------------------------
---
[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-deploy-pl
ugin:2.2
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 instantia
ted
[INFO]
---------------------------------------------------------------------
---
[INFO] For more information, run Maven with the -e switch
[INFO]
---------------------------------------------------------------------
---
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Mar 30 13:32:23 EST 2006
[INFO] Final Memory: 4M/9M
[INFO]
---------------------------------------------------------------------
---
[INFO]
---------------------------------------------------------------------
---
[INFO] BUILD SUCCESSFUL
[INFO]
---------------------------------------------------------------------
---
[INFO] Total time: 13 seconds
[INFO] Finished at: Thu Mar 30 13:32:23 EST 2006
[INFO] Final Memory: 3M/6M
[INFO]
---------------------------------------------------------------------
---
Now, I have <distributionManagement> defined in my top-level pom.xml.
So why is deploy working and not release:perform?
Thanks.
--
Craig McDaniel