mvn archetype:generate -DarchetypeCatalog=http://192.168.20.142:8081/nexus/content/repositories/releases/archetype-catalog.xml
报错信息如下:
archetypeCatalog 'http://192.168.20.142:8081/nexus/content/repositories/releases/archetype-catalog.xml' is not supported
原因:
新版的maven-archetype-plugin插件(3.1)不再支持上述的写法
解决办法:
使用老板的插件,命令如下:mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog=http://192.168.20.142:8081/nexus/content/repositories/releases/archetype-catalog.xml
参考
https://community.smartbear.com/t5/Ready-API-and-SoapUI-PlugIn/archetypeCatalog-http-www-eviware-com-repository-maven2-is-not/td-p/144285
(需要翻墙)