|
4 | 4 |
|
5 | 5 | <groupId>org.scijava</groupId>
|
6 | 6 | <artifactId>pom-scijava-base</artifactId>
|
7 |
| - <version>21.0.1-SNAPSHOT</version> |
| 7 | + <version>21.1.0-SNAPSHOT</version> |
8 | 8 | <packaging>pom</packaging>
|
9 | 9 |
|
10 | 10 | <name>SciJava Base POM</name>
|
|
184 | 184 | -->
|
185 | 185 | <maven.compiler.useIncrementalCompilation>false</maven.compiler.useIncrementalCompilation>
|
186 | 186 |
|
187 |
| - <!-- Extra maven-surefire-plugin args. --> |
| 187 | + <!-- Arguments to pass to all JVM launches for better behavior. --> |
| 188 | + <scijava.jvm.args /> |
| 189 | + |
| 190 | + <!-- Extra arguments affecting JPMS behavior. Only used with Java 9+. --> |
| 191 | + <scijava.jvm.jpms-args>--add-opens=java.base/java.lang=ALL-UNNAMED</scijava.jvm.jpms-args> |
| 192 | + |
| 193 | + <!-- Extra arguments specific to maven-surefire-plugin. --> |
188 | 194 | <scijava.surefire.args />
|
189 | 195 |
|
190 | 196 | <!-- Minimum required Maven version to build the project. -->
|
|
533 | 539 | own property 'scijava.surefire.args' to specify those options.
|
534 | 540 | -->
|
535 | 541 | <configuration>
|
536 |
| - <argLine>@{argLine} -Xms512m -Xmx512m -Dapple.awt.UIElement=true ${scijava.surefire.args}</argLine> |
| 542 | + <argLine>@{argLine} -Xms512m -Xmx512m -Dapple.awt.UIElement=true ${scijava.jvm.args} ${scijava.surefire.args}</argLine> |
537 | 543 | </configuration>
|
538 | 544 | </plugin>
|
539 | 545 |
|
|
1328 | 1334 | -->
|
1329 | 1335 | <profile>
|
1330 | 1336 | <id>exec</id>
|
| 1337 | + <properties> |
| 1338 | + <exec.args>${scijava.jvm.args}</exec.args> |
| 1339 | + </properties> |
1331 | 1340 | <build>
|
1332 | 1341 | <plugins>
|
1333 | 1342 | <plugin>
|
|
1940 | 1949 |
|
1941 | 1950 | <!--
|
1942 | 1951 | The java-9 profile includes adjustments for Java 9+; in particular, it
|
1943 |
| - configures the release value, and fixes the path to the javadoc executable. |
| 1952 | + configures the release value, fixes the path to the javadoc executable, |
| 1953 | + and overrides JPMS restrictions to re-enable Java reflection. |
1944 | 1954 | -->
|
1945 | 1955 | <profile>
|
1946 | 1956 | <id>java-9</id>
|
|
1949 | 1959 | </activation>
|
1950 | 1960 | <properties>
|
1951 | 1961 | <maven.compiler.release>${scijava.jvm.version}</maven.compiler.release>
|
| 1962 | + <scijava.jvm.args>${scijava.jvm.jpms-args}</scijava.jvm.args> |
1952 | 1963 | </properties>
|
1953 | 1964 | <build>
|
1954 | 1965 | <plugins>
|
|
0 commit comments