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

Reply via email to