ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

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


Article ID: 6969


Updated On:


DX Unified Infrastructure Management (Nimsoft / UIM) NIMSOFT PROBES


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.




Improper setup of the Maven environment


UIM 8.XJava 1.7 or 1.8mavenSDK_java 2.50


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: