Skip to content

Commit

Permalink
demo-jpackagejlink: Add code to demonstrate maven-jlink-plugin bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kohlschuetter committed Mar 6, 2024
1 parent 34d7441 commit a73ce7f
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions junixsocket-demo-jpackagejlink/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,59 @@
</pluginManagement>
</build>
</profile>

<profile>
<id>maven-jlink</id>
<activation>
<property>
<name>maven-jlink</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jlink-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>jlink</goal>
</goals>
<configuration>
<classifier>jlink</classifier>
<launcher>
junixsocket-jlink-demo=org.newsclub.net.unix.demo.jpackagejlink/${mainClass}
</launcher>
<addModules>
<addModule>java.base</addModule>
<!-- junixsocket-common -->
<addModule>org.newsclub.net.unix</addModule>
<!-- junixsocket-native-common -->
<addModule>
com.kohlschutter.junixsocket.nativecommon</addModule>
<!-- this module -->
<addModule>
org.newsclub.net.unix.demo.jpackagejlink</addModule>
</addModules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>

<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jlink-plugin</artifactId>
<version>3.2.0</version><!-- broken -->
<!--<version>3.2.1-SNAPSHOT</version>--><!-- see MJLINK-82 -->
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>

<repositories>
Expand Down

0 comments on commit a73ce7f

Please sign in to comment.