When creating a project based on the Archetype template according to sermant's tutorial , I encountered maven BUILD FAILURE, as shown in the figure below: I
finally found the cause and solution of the problem on stackoverflow:
On the windows system, if you use cmd.exe, you should execute the following command:
mvn archetype:generate -DarchetypeGroupId=com.huaweicloud.sermant -DarchetypeArtifactId=sermant-template-archetype -DarchetypeVersion=0.0.1 -DgroupId=com.huaweicloud.sermant -Dversion=0.0.1 -Dpackage=com.huaweicloud -DartifactId=first-plugin
If you use PowerShell, you should execute the following command:
mvn archetype:generate "-DarchetypeGroupId=com.huaweicloud.sermant" "-DarchetypeArtifactId=sermant-template-archetype" "-DarchetypeVersion=0.0.1" "-DgroupId=com.huaweicloud.sermant" "-Dversion=0.0.1" "-Dpackage=com.huaweicloud" "-DartifactId=first-plugin"
Stackoverflow question address:
https://stackoverflow.com/questions/29754757/no-pom-found-while-creating-new-project-from-archetype