Attach artifacts on packaging maven module instead of root module, for #5585
This commit is contained in:
parent
fa9f7e2538
commit
74f74caecb
|
@ -535,6 +535,87 @@
|
|||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<version>${build-helper-maven-plugin.version}</version>
|
||||
<inherited>false</inherited>
|
||||
<executions>
|
||||
<!-- Attach tar.gz artifact for linux -->
|
||||
<execution>
|
||||
<id>attach-linux</id>
|
||||
<phase>deploy</phase>
|
||||
<goals>
|
||||
<goal>attach-artifact</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifacts>
|
||||
<artifact>
|
||||
<file>${project.build.directory}/${project.build.finalName}-linux-${project.version}.tar.gz</file>
|
||||
<type>tar.gz</type>
|
||||
<classifier>linux</classifier>
|
||||
</artifact>
|
||||
</artifacts>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
<!-- Attach the zip file for windows, without embedded JRE -->
|
||||
<execution>
|
||||
<id>attach-win-without-jre</id>
|
||||
<phase>deploy</phase>
|
||||
<goals>
|
||||
<goal>attach-artifact</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<skipAttach>${skipCreateExe}</skipAttach>
|
||||
<artifacts>
|
||||
<artifact>
|
||||
<file>${project.build.directory}/${project.build.finalName}-win-${project.version}.zip</file>
|
||||
<type>zip</type>
|
||||
<classifier>win</classifier>
|
||||
</artifact>
|
||||
</artifacts>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
<!-- Attach the zip file for windows, with embedded JRE -->
|
||||
<execution>
|
||||
<id>attach-win-with-jre</id>
|
||||
<phase>deploy</phase>
|
||||
<goals>
|
||||
<goal>attach-artifact</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<skipAttach>${skipCreateExe}</skipAttach>
|
||||
<artifacts>
|
||||
<artifact>
|
||||
<file>${project.build.directory}/${project.build.finalName}-win-with-java-${project.version}.zip</file>
|
||||
<type>zip</type>
|
||||
<classifier>win-with-java</classifier>
|
||||
</artifact>
|
||||
</artifacts>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
<!-- Attach the final DMG for MacOS -->
|
||||
<execution>
|
||||
<id>attach-dmg</id>
|
||||
<phase>deploy</phase>
|
||||
<goals>
|
||||
<goal>attach-artifact</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifacts>
|
||||
<artifact>
|
||||
<file>${project.build.directory}/${project.build.finalName}-mac-${project.version}.dmg</file>
|
||||
<type>dmg</type>
|
||||
<classifier>mac</classifier>
|
||||
</artifact>
|
||||
</artifacts>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
|
|
81
pom.xml
81
pom.xml
|
@ -307,87 +307,6 @@
|
|||
<workspaceCodeStylesURL>${maven.multiModuleProjectDirectory}/IDEs/eclipse/Refine.style.xml</workspaceCodeStylesURL>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<version>${build-helper-maven-plugin.version}</version>
|
||||
<inherited>false</inherited>
|
||||
<executions>
|
||||
<!-- Attach tar.gz artifact for linux -->
|
||||
<execution>
|
||||
<id>attach-linux</id>
|
||||
<phase>deploy</phase>
|
||||
<goals>
|
||||
<goal>attach-artifact</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifacts>
|
||||
<artifact>
|
||||
<file>packaging/target/${project.build.finalName}-linux-${project.version}.tar.gz</file>
|
||||
<type>tar.gz</type>
|
||||
<classifier>linux</classifier>
|
||||
</artifact>
|
||||
</artifacts>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
<!-- Attach the zip file for windows, without embedded JRE -->
|
||||
<execution>
|
||||
<id>attach-win-without-jre</id>
|
||||
<phase>deploy</phase>
|
||||
<goals>
|
||||
<goal>attach-artifact</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<skipAttach>${skipCreateExe}</skipAttach>
|
||||
<artifacts>
|
||||
<artifact>
|
||||
<file>packaging/target/${project.build.finalName}-win-${project.version}.zip</file>
|
||||
<type>zip</type>
|
||||
<classifier>win</classifier>
|
||||
</artifact>
|
||||
</artifacts>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
<!-- Attach the zip file for windows, with embedded JRE -->
|
||||
<execution>
|
||||
<id>attach-win-with-jre</id>
|
||||
<phase>deploy</phase>
|
||||
<goals>
|
||||
<goal>attach-artifact</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<skipAttach>${skipCreateExe}</skipAttach>
|
||||
<artifacts>
|
||||
<artifact>
|
||||
<file>packaging/target/${project.build.finalName}-win-with-java-${project.version}.zip</file>
|
||||
<type>zip</type>
|
||||
<classifier>win-with-java</classifier>
|
||||
</artifact>
|
||||
</artifacts>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
<!-- Attach the final DMG for MacOS -->
|
||||
<execution>
|
||||
<id>attach-dmg</id>
|
||||
<phase>deploy</phase>
|
||||
<goals>
|
||||
<goal>attach-artifact</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifacts>
|
||||
<artifact>
|
||||
<file>packaging/target/${project.build.finalName}-mac-${project.version}.dmg</file>
|
||||
<type>dmg</type>
|
||||
<classifier>mac</classifier>
|
||||
</artifact>
|
||||
</artifacts>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<!-- Signature -->
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
|
Loading…
Reference in New Issue