I am new to maven and wanted to create a spring project using maven. Below mentioned is the command I am using:
mvn archetype:generate -DgroupId=com.rakesh.core -DartifactId=Spring3Example
-DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
It is asking for :
What it is asking for? I tried all the numbers, I am getting this message:
Your filter doesn't match any archetype (hint: enter to return to initial list)
Please help.
In short, Archetype is a Maven project templating toolkit. An archetype is defined as an original pattern or model from which all other things of the same kind are made. The name fits as we are trying to provide a system that provides a consistent means of generating Maven projects.
After entering these information, Maven will show you all the information you entered and ask you to verify project creation. If you press Y and then enter, voila your project is created with the artifact and settings you chose.
maven. archetype</groupId> <artifactId>archetype-packaging</artifactId>
The Lagom Maven archetype allows you to quickly create a project for development.
I was having the same problem while copy and pasting an example from a tutorial. After fiddling around with it I found out it was a whitespace issue. I pasted the command into a text editor and deleted a few whitespaces:
mvn archetype:generate -DgroupId=com.mkyong.common -DartifactId=RESTfulExample -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false
That did the trick for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With