Maven程序集创建输出目录
不知道发生了什么事。根据这个程序集描述,我希望maven程序集插件在tar中的outputDirectory下包含一个war文件。但是,它使用目录名作为文件名的一部分Maven程序集创建输出目录,maven,maven-assembly-plugin,Maven,Maven Assembly Plugin,不知道发生了什么事。根据这个程序集描述,我希望maven程序集插件在tar中的outputDirectory下包含一个war文件。但是,它使用目录名作为文件名的一部分 <dependencySets> <dependencySet> <outputDirectory>modules/rxspend-app/files</outputDirectory> <includes> &l
<dependencySets>
<dependencySet>
<outputDirectory>modules/rxspend-app/files</outputDirectory>
<includes>
<include>${project.groupId}:rxspend-web:war</include>
</includes>
</dependencySet>
</dependencySets>
我不知道outputDirectory是否需要预先存在,或者如何创建它。我不理解您的问题。tar在您指定的modules/rxspend app/files目录中具有正确的war rxspend-web-3.0.7-20151009.140153-788.war。否它具有名为modules/rxspend app/files/rxspend-web-3.0.7-20151009.140153-788的war。war它应该在目录中具有名为rxspend-web-3.0.7-20151009.140153-788.war的warmodules/rxspend app/files注意,第一个条目不是目录,文件名只是让它看起来像一个。我很困惑,怎么会有/?嗯,似乎是tar目录问题?当我打开包装时,结构如预期的那样
-rw-rw-r-- vagrant/vagrant 22919347 2015-10-09 14:13 modules/rxspend-app/files/rxspend-web-3.0.7-20151009.140153-788.war
drwxr-xr-x 0/0 0 2015-10-09 14:29 modules/
drwxr-xr-x 0/0 0 2015-10-09 14:29 modules/jboss/