Attach artifacts on packaging maven module instead of root module, for #5585

This commit is contained in:
Antonin Delpeuch 2023-01-26 14:16:07 +01:00
parent fa9f7e2538
commit 74f74caecb
2 changed files with 81 additions and 81 deletions

View File

@ -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
View File

@ -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>