RFR: 7508: Use preferred way for test-jars

Jean-Philippe Bempel jpbempel at openjdk.java.net
Tue Mar 29 20:12:24 UTC 2022


based on https://maven.apache.org/plugins/maven-jar-plugin/examples/create-test-jar.html
I have modified the way test jars are structured:
we put all classes in src/main/java instead of src/test/java
and changed scope from test to compile accordingly
we now don't need to create explicitly test-jar neither reference them
as is.
Help to build/run/debug correctly in Intellij

-------------

Commit messages:
 - add resources source folder for common.test
 - update .classpath
 - update build.properties
 - use preferred way for test-jars

Changes: https://git.openjdk.java.net/jmc/pull/354/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jmc&pr=354&range=00
  Issue: https://bugs.openjdk.java.net/browse/JMC-7508
  Stats: 119 lines in 166 files changed: 1 ins; 78 del; 40 mod
  Patch: https://git.openjdk.java.net/jmc/pull/354.diff
  Fetch: git fetch https://git.openjdk.java.net/jmc pull/354/head:pull/354

PR: https://git.openjdk.java.net/jmc/pull/354


More information about the jmc-dev mailing list