Reputation: 2076
I was trying to create new maven project to check whether maven is working.
So I tried this.
mvn archetype:create <br/>
-DgroupId=your.simple.java.gid <br/>
-DartifactId=your-simple-java-aid
But Sadly I got a huge error saying
NoClassDefFoundError for org/codehaus/plexus/util/xml/XmlStreamReader
Please help me with this.
I tried various question but they all helping to create projects using IDE.
Thank you.
Upvotes: 1
Views: 103
Reputation: 13402
Instead of using create
use generate
.
mvn archetype:generate -DgroupId=your.simple.java.gid -DartifactId=your-simple-java-aid
This will create the project in Interactive mode
. It will ask you different input from you while generating your project.
You can ignore the Interactive mode
by setting it to false
. This will be batch mode.
mvn archetype:generate -DgroupId=your.simple.java.gid -DartifactId=your-simple-java-aid -DinteractiveMode=false
You can take a look here for more details: Maven in 5 Minutes
Upvotes: 2