【发布时间】:2014-11-21 13:00:55
【问题描述】:
我在 github (https://github.com/alapierre/altkom) 下找到了一个 Eclipse 原型。我下载了 zip 文件并尝试从这个原型生成一个项目并在我的 Eclipse 中运行它。关键是我总是得到“找不到原型”? 您能否提供一种从该工件生成项目的方法?
我已经尝试过以下几种变化:
mvn archetype:generate -DarchetypeGroupId=pl.com.softproject.archetypes.springmvc -DarchetypeArtifactId=spring-mvc-spring-data-archetype -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=com.test -DartifactId=myNewProject
最后我也得到了
Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2
.2:generate (default-cli) on project spring-mvc-spring-data-archetype: org.apach
e.maven.archetype.exception.InvalidPackaging: Unable to add module to the curren
t project as it is not of packaging type 'pom'
有什么想法吗?
【问题讨论】:
标签: java eclipse maven maven-archetype