【问题标题】:maven-assembly-plugin depdencySet not being included不包括 maven-assembly-plugin depdencySet
【发布时间】:2015-10-29 22:26:18
【问题描述】:

我试图在我的 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 时,它会构建 2 个模块: 1.) 使用 mvn 原型创建的 webapp(一个简单的应用程序) 2.) 木偶模块

我想要的是当构建 puppet maven 项目时,webapp 会出现在 files 目录中,所以我包括 dependencySet 并在目录中指定它应该可以工作,不是吗?我看不出哪里出错了,它应该像将战争依赖项包含到文件夹一样简单。

提前感谢您的任何回复。

【问题讨论】:

    标签: maven-3 puppet maven-assembly-plugin


    【解决方案1】:

    不知道为什么,但它适用于 moduleSets:

     <moduleSets>
            <moduleSet>
                <useAllReactorProjects>true</useAllReactorProjects>
                 <includes>
                    <include>com.sam:myWebApp:*:*</include>  
                </includes>
               <binaries>
                    <outputDirectory>myWebApp/files</outputDirectory>
                    <unpack>false</unpack>
                </binaries>
            </moduleSet>
        </moduleSets>
    

    【讨论】:

      猜你喜欢
      • 2014-09-05
      • 1970-01-01
      • 2012-03-25
      • 2013-02-20
      • 2010-12-29
      • 2020-06-13
      • 2014-09-27
      • 2017-09-23
      • 2012-10-23
      相关资源
      最近更新 更多