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

Document ID : KB000006969
Last Modified Date : 14/02/2018
Show Technical Document Details

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.



UIM 8.XJava 1.7 or 1.8mavenSDK_java 2.50

Improper setup of the Maven environment


by checking your referred KB

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: