【发布时间】:2012-10-16 11:00:33
【问题描述】:
我可以通过跳过包含文件夹(Edit 2 以及其他文件夹)的原型选择,在 Eclipse IDE(版本 3.71)中创建一个简单的 Maven 应用程序:
src/main/resources
src/test/resources
如果我使用命令行,这些文件夹会丢失。我一直在使用 maven 指南,使用Maven site中指定的命令行为我的 Eclipse IDE 创建一个 maven 项目@
mvn archetype:generate -DgroupId=guide.ide.eclipse -DartifactId=guide-ide-eclipse
如何通过命令行模拟 Eclipse 的行为?我试图找到正确的 archetypeID 并添加参数但没有成功。
编辑1
生成的 maven 项目包含在 git 存储库中,因此我可以按照 this question 中的详细说明导入项目
【问题讨论】:
-
应该是Eclipse工作区文件夹和项目文件夹不一样
-
总是通过命令行使用终端,不要相信IDE,就像这样:mvn eclipse: eclipse, mvn clean install etc. 黄金提示:命令行
标签: eclipse maven maven-archetype