Maven archetype:generate

1.1k views Asked by At

I am trying to generate a project as instructed by a third party. However, for an unknown reason it is not working. Given my limited knowledge, I will be grateful is someone can point me in the right direction to solve this issue.

I did a

mvn archetype:crawl

then I am trying to create my project in interactive mode as follow:

mvn archetype:generate -DarchetypeCatalog=local

I am presented with the only available choice. Here is the complete dialog:

C:\Projets\OO_Actions\LoadFile>mvn archetype:generate -DarchetypeCatalog=local
[INFO] Scanning for projects...
[INFO]
[INFO]    ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.0.1:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.0.1:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO]
[INFO]
[INFO] --- maven-archetype-plugin:3.0.1:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: local -> com.hp.oo.sdk:oo-plugin-archetype (sample-project)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : com.hp.oo.sdk:oo-plugin-archetype
Choose archetype:
1: local -> com.hp.oo.sdk:oo-plugin-archetype (sample-project)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47.835 s
[INFO] Finished at: 2017-09-13T17:00:09-04:00
[INFO] Final Memory: 15M/309M
[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 (com.hp.oo.sdk:oo-plugin-archetype:10.70.00) -> [Help 1]
[ERROR]

I wonder why I receive a message saying the archetype doesn't exist while it was actually presented as the only valid choice. What am I missing?

0

There are 0 answers