Getting an error No archetype to choose when trying to use the Java SDK.
search cancel

Getting an error No archetype to choose when trying to use the Java SDK.

book

Article ID: 6969

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

I want to use UIM Probe SDK 2.5.0 to develop a custom probe.
I installed Java, Maven, and the Probe SDK by following the docops website.
Now the issue is, when I try to use command "mvn archetype:generate -DarchetypeCatalog=local" to create a new project,

I get an error that there is no archetype defined.

 

Picture1.png

Environment

UIM 8.XJava 1.7 or 1.8mavenSDK_java 2.50

Cause

Improper setup of the Maven environment

Resolution

by checking your referred KB

https://stackoverflow.com/questions/31377964/mvn-archetypegenerate-darchetypecatalog-local-does-not-list-my-archetype


For detail, I used the option "-X" to get debug info, whole command is "mvn archetype:generate -DarchetypeCatalog=local -X".
The output showed maven used file <user.home>/.m2/repository/archetype-catalog.xml, but it was not there.
In fact, the file is in <user.home>/.m2/archetype-catalog.xml.
copy the file to folder <user.home>/.m2/repository/, then run the command again, it works.

 

 

Additional Information

Other search links:

https://www.google.com/search?q=maven+no+archetype+defined&ie=utf-8&oe=utf-8


https://stackoverflow.com/questions/6993786/maven-archetypegenerate-does-not-find-archetype-in-local-catalog


https://stackoverflow.com/questions/31377964/mvn-archetypegenerate-darchetypecatalog-local-does-not-list-my-archetype


https://maven.apache.org/archetype/maven-archetype-plugin/examples/generate-alternative-catalog.html