Create project BUILD FAILURE based on Archetype template?

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
insert image description here
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

insert image description here

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"

insert image description here

Stackoverflow question address:
https://stackoverflow.com/questions/29754757/no-pom-found-while-creating-new-project-from-archetype

Guess you like

Origin blog.csdn.net/huhuhutony/article/details/129046857