我正在尝试在我的maven模块中包含一个依赖项,但它似乎不起作用,以下是我所拥有的:
<dependencySet>
<useProjectArtifact>false</useProjectArtifact>
<includes>
<include>com.sam:myWebApp</include>
</includes>
<outputDirectory>/mywebapp/files</outputDirectory>
<unpack>false</unpack>
</dependencySet>完整的代码在我的github库中:https://github.com/darkcloudi/PuppetExample/tree/master/puppet/exampleWebApp
当我构建我的父pom时,它构建了两个模块:1。)使用mvn archetype创建的webapp (一个简单的应用程序) 2.)木偶模块
我想要的是当构建puppet maven项目时,webapp将出现在文件目录中,所以我应该包括dependencySet并在目录中指定它,不是吗?我看不出哪里错了,它应该像将war依赖项包含到文件文件夹中一样简单。
提前感谢您的回复。
发布于 2015-10-30 17:53:32
不知道为什么,但它适用于moduleSets:
<moduleSets>
<moduleSet>
<useAllReactorProjects>true</useAllReactorProjects>
<includes>
<include>com.sam:myWebApp:*:*</include>
</includes>
<binaries>
<outputDirectory>myWebApp/files</outputDirectory>
<unpack>false</unpack>
</binaries>
</moduleSet>
</moduleSets>https://stackoverflow.com/questions/33425705
复制相似问题