when i tried:

C:\devel\wsrp4j\consumer-proxyportlet>mvn deploy -Ddeploy=C:/apps/uPortal_rel-2-6-1/apache-tomcat-5.5.25/webapps/wsrp4j-proxyportlet.war

I got the following errors:

[INFO] [install:install]
[INFO] Installing C:\devel\wsrp4j\consumer-proxyportlet\target\wsrp4j-proxyportl et.war to C:\Documents and Settings\uniquename\.m2\repository\org\apache\wsrp4j\
wsrp4j-proxyportlet\0.5-SNAPSHOT\wsrp4j-proxyportlet-0.5-SNAPSHOT.war
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------ [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven
-deploy-plugin:2.3

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

How to fix it?

-Henry

Reply via email to