|
4 | 4 |
|
5 | 5 | <groupId>org.scijava</groupId> |
6 | 6 | <artifactId>pom-scijava-base</artifactId> |
7 | | - <version>6.0.1-SNAPSHOT</version> |
| 7 | + <version>7.0.0-SNAPSHOT</version> |
8 | 8 | <packaging>pom</packaging> |
9 | 9 |
|
10 | 10 | <name>SciJava Base POM</name> |
|
151 | 151 | <!-- Copyright owners to use in license headers atop each file. --> |
152 | 152 | <license.copyrightOwners>N/A</license.copyrightOwners> |
153 | 153 |
|
154 | | - <!-- Extra maven-surefire-plugin args. --> |
155 | | - <argLine /> |
156 | | - |
157 | | - <!-- Extra maven-surefile-plugin args used with debug-port profile. --> |
158 | | - <argLineDebug /> |
159 | | - |
160 | 154 | <!-- Classes the enforcer allows to be duplicated on the classpath. --> |
161 | 155 | <allowedDuplicateClasses /> |
162 | 156 |
|
| 157 | + <!-- Extra maven-surefire-plugin args. --> |
| 158 | + <scijava.surefire.args /> |
| 159 | + |
163 | 160 | <!-- Target version of the Java platform. --> |
164 | 161 | <scijava.jvm.version>1.8</scijava.jvm.version> |
165 | 162 | <scijava.jvm.test.version>${scijava.jvm.version}</scijava.jvm.test.version> |
|
479 | 476 | Make sure that: |
480 | 477 | A) unit tests run with sufficient RAM allocated; |
481 | 478 | B) unit tests do not pop a Java dock icon on OS X; |
482 | | - C) additional args can be given via argLine property; |
| 479 | + C) additional args can be given via scijava.surefire.args property; |
483 | 480 |
|
484 | | - Sometimes, one needs to pass JVM options to the JVM |
485 | | - running the unit tests, such as -verbose:class or |
486 | | - -Djava.awt.headless=true. |
| 481 | + Sometimes, one needs to pass JVM options to the JVM running the |
| 482 | + unit tests, such as -verbose:class or -Djava.awt.headless=true. |
487 | 483 |
|
488 | | - Unfortunately, maven-surefire does not expose a |
489 | | - command-line interface to do so, therefore let's |
490 | | - simulate it by re-using the property 'argLine' to |
491 | | - specify those options. |
| 484 | + Unfortunately, maven-surefire does not expose a command-line |
| 485 | + interface to do so, therefore let's simulate it by using our |
| 486 | + own property 'scijava.surefire.args' to specify those options. |
492 | 487 | --> |
493 | 488 | <configuration> |
494 | | - <argLine>-Xms512m -Xmx512m -Dapple.awt.UIElement="true" ${argLine} ${argLineDebug}</argLine> |
| 489 | + <argLine>-Xms512m -Xmx512m -Dapple.awt.UIElement="true" ${scijava.surefire.args}</argLine> |
495 | 490 | </configuration> |
496 | 491 | </plugin> |
497 | 492 |
|
|
1379 | 1374 | <property><name>debugPort</name></property> |
1380 | 1375 | </activation> |
1381 | 1376 | <properties> |
1382 | | - <argLineDebug>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=localhost:${debugPort}</argLineDebug> |
| 1377 | + <scijava.surefire.args>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=localhost:${debugPort}</scijava.surefire.args> |
1383 | 1378 | </properties> |
1384 | 1379 | </profile> |
1385 | 1380 |
|
|
0 commit comments