在命令行上生成Maven原型时设置父项目

时间:2018-08-06 10:33:00

标签: spring maven spring-boot maven-archetype

我想在命令行上将父项目设置为新的maven项目。我可以设置DgroupId,DartifactId和Dversion,但不能设置父项目详细信息,例如DparentGroupId,DparentArtifactId,DparentVersion。

命令在下面,

 mvn archetype:generate ^
  -DgroupId=com.test.book ^
  -DartifactId=book-test ^
  -Dversion=1.0.0 ^
  -Dpackaging=war ^
  -DarchetypeArtifactId=maven-archetype-quickstart ^
  -DinteractiveMode=false ^
  -DparentGroupId=org.springframework.boot ^
  -DparentArtifactId=spring-boot-starter-parent ^
  -DparentVersion=2.0.4.RELEASE

注意:这一代可以很容易地从https://start.spring.io生成,但是我想从命令行完成。

谢谢

0 个答案:

没有答案
相关问题