Surcouf01 opened a new issue, #11488:
URL: https://github.com/apache/maven/issues/11488

   ### Affected version
   
   3.9.9
   
   ### Bug description
   
   I want to use jpackage-maven-plugin, and in order to do so I unpack jdk 
(windows or linux) based on profiles (windows or linux).
   
   The profiles section is:
   ```
                <profile>
                        <id>platform-windows</id>
                        <activation>
                                <os><family>windows</family></os>
                        </activation>
                        <dependencies>
                                <dependency>
                                        <groupId>com.oracle</groupId>
                                        <artifactId>jdk-windows</artifactId>
                                        
<version>${jdk-platform.version}</version>
                                        <type>zip</type>
                                </dependency>
                        </dependencies>
                        <build>
                                <plugins>
                                        <plugin>
                                                
<groupId>org.apache.maven.plugins</groupId>
                                                
<artifactId>maven-dependency-plugin</artifactId>
                                                <version>2.8</version>
                                                <executions>
                                                        <execution>
                                                                
<id>download-jdk</id>
                                                                
<phase>pre-deploy</phase>
                                                                <goals>
                                                                        
<goal>unpack-dependencies</goal>
                                                                </goals>
                                                                <configuration>
                                                                        
<includeGroupIds>com.oracle</includeGroupIds>
                                                                        
<includeArtifactIds>jdk-windows</includeArtifactIds>
                                                                        
<includeTypes>zip</includeTypes>
                                                                        
<outputDirectory>${jdkUnzipDir}</outputDirectory>
                                                                </configuration>
                                                        </execution>
                                                </executions>
                                        </plugin>
                                        <plugin>
                                                
<groupId>org.panteleyev</groupId>
                                                
<artifactId>jpackage-maven-plugin</artifactId>
                                                <version>1.7.1</version>
                                                <executions>
                                                        <execution>
                                                                
<id>create-jpackage</id>
                                                                
<phase>pre-deploy</phase>
                                                                <goals>
                                                                        
<goal>jpackage</goal>
                                                                </goals>
                                                                <configuration>
                                                                        
<type>APP_IMAGE</type>
                                                                        
<mainClass>com.dassault.cameo4ecoa.launcher.Launcher</mainClass>
                                                                        
<input>${project.basedir}/../distrib/target/cameo4ecoa-distrib</input>
                                                                        
<name>${appName}</name>
                                                                        
<mainJar>CAMEO4ECOA-${project.version}.jar</mainJar>
                                                                        
<runtimeImage>${jdkUnzipDir}</runtimeImage>
                                                                        
<destination>${project.build.directory}/jpackage</destination>
                                                                        
<icon>Cameo4ECOA.ico</icon>
                                                                        
<winConsole>true</winConsole>
                                                                        
<appVersion>1.0.0</appVersion>
                                                                </configuration>
                                                        </execution>
                                                </executions>
                                        </plugin>
                                        <plugin>
                                                
<groupId>org.apache.maven.plugins</groupId>
                                                
<artifactId>maven-antrun-plugin</artifactId>
                                                <version>3.1.0</version>
                                                <executions>
                                                        <execution>
                                                                
<id>zip-jpackage</id>
                                                                
<phase>pre-deploy</phase>
                                                                <goals>
                                                                        
<goal>run</goal>
                                                                </goals>
                                                                <configuration>
                                                                        <target>
                                                                                
<zip destfile="${project.build.directory}/${appName}-jpackage.zip"
                                                                                
         basedir="${project.build.directory}/jpackage"
                                                                                
         includes="**/*"/>
                                                                        
</target>
                                                                </configuration>
                                                        </execution>
                                                </executions>
                                        </plugin>
                                        <plugin>
                                                
<groupId>org.apache.maven.plugins</groupId>
                                                
<artifactId>maven-deploy-plugin</artifactId>
                                                <version>3.1.1</version>
                                                <executions>
                                                        <execution>
                                                                
<id>default-deploy</id>
                                                                
<phase>deploy</phase>
                                                                <goals>
                                                                        
<goal>deploy-file</goal>
                                                                </goals>
                                                                <configuration>
                                                                        
<artifactId>${project.artifactId}</artifactId>
                                                                        
<groupId>${project.groupId}</groupId>
                                                                        
<version>${project.version}</version>
                                                                        
<packaging>zip</packaging>
                                                                        
<file>${project.build.directory}/${appName}-jpackage.zip</file>
                                                                        
<url>${project.distributionManagement.repository.url}</url>
                                                                        
<generatePom>true</generatePom>
                                                                </configuration>
                                                        </execution>
                                                </executions>
                                        </plugin>
                                </plugins>
                        </build>
                </profile>
   ```
   
   When I run mvn deploy it seems that the pre-deploy plugin are not executed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to