1
我创建从一个项目中的原型,我运行:MVN原型:创从项目-DoutputDirectory
mvn archetype:create-from-project -DoutputDirectory=../archetype
的Maven并没有../archetype
生成代码。有人知道如何解决这个问题吗?
我创建从一个项目中的原型,我运行:MVN原型:创从项目-DoutputDirectory
mvn archetype:create-from-project -DoutputDirectory=../archetype
的Maven并没有../archetype
生成代码。有人知道如何解决这个问题吗?
目标的outputDirectory
参数create-from-project
的文档没有定义用户属性。因此,maven-archetype-plugin
只是忽略了您使用-DoutputDirectory
设置的任何值,并保持其默认值,即${project.build.directory}/generated-sources/archetype
。
您应该在their JIRA上创建一个改进请求,也许会提交一个补丁:为此添加一个用户属性应该不难。 Looking the source code,所有应该需要的是将property
属性添加到@Parameter
注释。