Hello, I'm just starting with Maven. Maven is running on Windows7 64bit, installed in C:\Program Files (x86)\apache-maven-2.2.1\, and the PATH of the machine includes C:\Program Files (x86)\apache-maven-2.2.1\bin
I've created a new Maven project from eclipse using m2eclipse. The archetype of the newly created project is maven-archetype-webapp. This is the POM: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>Test</groupId> <artifactId>Test</artifactId> <packaging>war</packaging> <version>0.0.1-SNAPSHOT</version> <name>Test Maven Webapp</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> <build> <finalName>Test</finalName> </build> </project> Trying to run a simple mvn clean, either from Eclipse or from command line gives the following error: C:\Users\User\test\Test>mvn clean [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Test Maven Webapp [INFO] task-segment: [clean] [INFO] ------------------------------------------------------------------------ ----------------------------------------------------- this realm = app0.child-container[org.apache.maven.plugins:maven-clean-plugin:2. 2] urls[0] = file:/C:/Users/User/.m2/repository/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.jar urls[1] = file:/C:/Users/User/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar urls[2] = file:/C:/Users/User/.m2/repository/org/apache/maven/shared/file-management/1.2/file-management-1.2.jar urls[3] = file:/C:/Users/User/.m2/repository/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.jar Number of imports: 10 import: org.codehaus.classworlds.en...@a6c57a42 import: org.codehaus.classworlds.en...@12f43f3b import: org.codehaus.classworlds.en...@20025374 import: org.codehaus.classworlds.en...@f8e44ca4 import: org.codehaus.classworlds.en...@92758522 import: org.codehaus.classworlds.en...@ebf2705b import: org.codehaus.classworlds.en...@bb25e54 import: org.codehaus.classworlds.en...@bece5185 import: org.codehaus.classworlds.en...@3fee8e37 import: org.codehaus.classworlds.en...@3fee19d8 this realm = plexus.core urls[0] = file:/C:/Program Files (x86)/apache-maven-2.2.1/bin/../lib/maven-2.2.1-uber.jar Number of imports: 10 import: org.codehaus.classworlds.en...@a6c57a42 import: org.codehaus.classworlds.en...@12f43f3b import: org.codehaus.classworlds.en...@20025374 import: org.codehaus.classworlds.en...@f8e44ca4 import: org.codehaus.classworlds.en...@92758522 import: org.codehaus.classworlds.en...@ebf2705b import: org.codehaus.classworlds.en...@bb25e54 import: org.codehaus.classworlds.en...@bece5185 import: org.codehaus.classworlds.en...@3fee8e37 import: org.codehaus.classworlds.en...@3fee19d8 ----------------------------------------------------- [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-clean-plugin:2.2:clean': Unable to load the mojo 'org.apache.maven.plugins:mavenclean-plugin:2.2:clean' in the plugin 'org.apache.maven.plugins:maven-clean-plugin'. A required class is missing: org/apache/maven/shared/model/fileset/FileSet [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Sun Mar 21 19:05:24 IST 2010 [INFO] Final Memory: 2M/5M [INFO] ------------------------------------------------------------------------ What could be the problem? Thank you, Maxim. -- Cheers, Maxim Veksler "Free as in Freedom" - Do u GNU ?