RFR: 8097: Fix project setup of uitests/org.openjdk.jmc.test.jemmy

Christoph Langer clanger at openjdk.org
Thu Jun 29 15:45:09 UTC 2023


The project uitests/org.openjdk.jmc.test.jemmy is a plugin project which is a helper library for other uitests.

Currently, the sources reside in the src/test/java folder and the eclipse configuration would also place the compiled classes in target/test-classes.
When one does a plain maven build, without Eclipse involvement or using the clean target, everything works fine since then the compiled classes are generated into target/classes despite their source location.
However, building the project in Eclipse generates the classes in target/test-classes and this will cause the surefire plugin to pick up some classes as potential tests when running mvn verify thereafter. Since the test.jemmy project is not configured for launching a test runtime, we see bundle resolver failures.

I fix this by moving the source files from src/test to src/main and fixing the Eclipse configuration files. I also removed the target-platform-configuration section from the pom.xml since it is redundant (already inherited by a parent pom).

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

Commit messages:
 - JMC-8097

Changes: https://git.openjdk.org/jmc/pull/503/files
 Webrev: https://webrevs.openjdk.org/?repo=jmc&pr=503&range=00
  Issue: https://bugs.openjdk.org/browse/JMC-8097
  Stats: 16 lines in 46 files changed: 0 ins; 12 del; 4 mod
  Patch: https://git.openjdk.org/jmc/pull/503.diff
  Fetch: git fetch https://git.openjdk.org/jmc.git pull/503/head:pull/503

PR: https://git.openjdk.org/jmc/pull/503


More information about the jmc-dev mailing list