【发布时间】:2012-01-22 19:00:13
【问题描述】:
我正在尝试执行以下操作:
<execution>
<id>copy-jre</id>
<phase>package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.sun</groupId>
<artifactId>jre</artifactId>
<version>${jdk.version}-${os.family}-x64</version>
<type>zip</type>
</artifactItem>
</artifactItems>
<outputDirectory>${target-deployer.cnc.dir}/java/${os.family}/x86_64/</outputDirectory>
</configuration>
</execution>
在我的情况下,我想根据 os - windows 或 linux 复制依赖项。 但是我找不到正确的参数
【问题讨论】:
-
你的 pom sn-p 看起来不完整。您是否使用 maven 插件(例如 maven.apache.org/plugins/maven-dependency-plugin/index.html)来执行此操作?
标签: maven parameters operating-system