Closed aoudiamoncef closed 7 years ago
Create a project using the following command
mvn archetype:generate \
-DarchetypeGroupId=pl.codeleak \
-DarchetypeArtifactId=spring-mvc-quickstart \
-DarchetypeVersion=1.0.1 \
-DgroupId=my.groupid \
-DartifactId=my-artifactId \
-Dversion=version \
-DarchetypeRepository=http://kolorobot.github.io/spring-mvc-quickstart-archetype
Note: The above command will bootstrap a project using the archetype published here: http://kolorobot.github.io/spring-mvc-quickstart-archetype
I have tried this commande before and it didn't work.
Thank you
[INFO] Generating project in Interactive mode [WARNING] Archetype not found in any catalog. Falling back to central repository. [WARNING] Add a repsoitory with id 'archetype' in your settings.xml if archetype's repository is elsewhere. Downloading: https://repo.maven.apache.org/maven2/pl/codeleak/spring-mvc-quickstart/1.0.1/spring-mvc-quickstart-1.0.1.pom [WARNING] The POM for pl.codeleak:spring-mvc-quickstart:jar:1.0.1 is missing, no dependency information available Downloading: https://repo.maven.apache.org/maven2/pl/codeleak/spring-mvc-quickstart/1.0.1/spring-mvc-quickstart-1.0.1.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10.646 s [INFO] Finished at: 2017-07-15T12:05:49+02:00 [INFO] Final Memory: 16M/250M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom: The desired archetype does not exist (pl.codeleak:spring-mvc-quickstart:1.0.1) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException