Skip to content

Commit

Permalink
Create modular runtime image FIXTradingCommunity#1
Browse files Browse the repository at this point in the history
  • Loading branch information
donmendelson committed Aug 29, 2019
1 parent a2b4bc4 commit 8c5437b
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<java.version>11</java.version>
<junit.version>5.5.1</junit.version>
<saxon.version>9.9.1-4</saxon.version>
<ignoreSigningInformation>true</ignoreSigningInformation>
</properties>

<organization>
Expand Down Expand Up @@ -93,6 +94,83 @@
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>verify</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/modules</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}</directory>
<includes>
<include>*.jar</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<version>1.0.0.Beta2</version>
<executions>
<execution>
<id>add-module-infos</id>
<phase>generate-resources</phase>
<goals>
<goal>add-module-info</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/modules</outputDirectory>
<overwriteExistingFiles>true</overwriteExistingFiles>
<ignoreSigningInformation>true</ignoreSigningInformation>
<modules>
<module>
<artifact>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
<version>${saxon.version}</version>
</artifact>
<moduleInfoSource>
module Saxon.HE {

}
</moduleInfoSource>
</module>
</modules>

</configuration>
</execution>
<execution>
<id>create-runtime-image</id>
<phase>install</phase>
<goals>
<goal>create-runtime-image</goal>
</goals>
<configuration>
<modulePath>
<path>${project.build.directory}/modules</path>
</modulePath>
<modules>
<module>diff.merge</module>
<module>Saxon.HE</module>
</modules>
<outputDirectory>
${project.build.directory}/jlink-image
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 8c5437b

Please sign in to comment.