I am using Maven on a Spring Roo generated project and have pushed in all the
aspects and am adding some new behaviors that have new dependencies centered
on the Spring Portlet MVC Framework.
I am using Eclipse with maven-2.2.1
on mvn package I am getting the following.
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-war-plugin:2.1.1:war': Unable to load the
mojo 'org.apache.maven.plugins:maven-war-plugin:2.1.1:war' in the plugin
'org.apache.maven.plugins:maven-war-plugin'. A required class is missing:
org/codehaus/plexus/components/io/resources/PlexusIoResourceCollection
org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection
The applicable pom.xml elements are:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
</plugin>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-io</artifactId>
<version>1.0.1</version>
</dependency>
<repositories>
<repository>
<id>spring-maven-release</id>
<name>Spring Maven Release Repository</name>
<url>http://maven.springframework.org/release</url>
</repository>
<repository>
<id>spring-maven-milestone</id>
<name>Spring Maven Milestone Repository</name>
<url>http://maven.springframework.org/milestone</url>
</repository>
<repository>
<id>spring-roo-repository</id>
<name>Spring Roo Repository</name>
<url>http://spring-roo-repository.springsource.org/release</url>
</repository>
<repository>
<id>JBoss</id>
<name>jboss-maven2-release-repository</name>
<url>https://oss.sonatype.org/content/repositories/JBoss</url>
</repository>
<repository>
<id>JBoss Repo</id>
<url>https://repository.jboss.org/nexus/content/repositories/releases</url>
<name>JBoss Repo</name>
</repository>
<repository>
<id>springframework</id>
<name>Maven Spring repository</name>
<url>http://repo1.maven.org/maven-spring/</url>
</repository>
<repository>
<id>plexus-releases</id>
<name>Plexus Releases</name>
<url>https://oss.sonatype.org/content/repositories/plexus-releases</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-maven-release</id>
<name>Spring Maven Release Repository</name>
<url>http://maven.springframework.org/release</url>
</pluginRepository>
<pluginRepository>
<id>spring-maven-milestone</id>
<name>Spring Maven Milestone Repository</name>
<url>http://maven.springframework.org/milestone</url>
</pluginRepository>
<pluginRepository>
<id>spring-roo-repository</id>
<name>Spring Roo Repository</name>
<url>http://spring-roo-repository.springsource.org/release</url>
</pluginRepository>
</pluginRepositories>
the missing class is in the plexus-io-1.0.1.jar which is located in my local
.m2/respository/org/codehaus/plexus/plexus-io/1.0.1
I have done:
mvn clean - Success
mvn package - Error
What am I doing wrong?
--
View this message in context:
http://maven.40175.n5.nabble.com/Unable-to-load-the-mojo-tp4781494p4781494.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]