I am trying to do the following:
<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>
I want to copy dependency based on the os - windows or linux in my case. But I cant find the correct parameter
You can use profiles to do this.
e.g.
<profile>
<id>platform-windows</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<build>
<plugins>
...
</plugins>
</build>
</profile>
In your case, you might just want to specify os/family in the profile's activation element.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With