RFR: 7508: Use preferred way for test-jars

Brice Dutheil duke at openjdk.java.net
Tue Mar 29 20:12:26 UTC 2022


On Thu, 13 Jan 2022 13:54:47 GMT, Patrick Reinhart <reinhapa at openjdk.org> wrote:

>> 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
>
> @jpbempel just for my understanding: do those test projects solely contain classes used as kind of test fixtures?

@reinhapa Yes these jar only contains tests or test _tools_. With this change opening and developing the core libraries in IJ got significantly easier and faster

![image](https://user-images.githubusercontent.com/803621/149349808-bcaa8d8e-7fc3-4cec-a450-e61ec5b1fb80.png)


And in Eclipse 

![image](https://user-images.githubusercontent.com/803621/149350606-889a5a96-680f-49eb-8a7e-a36b9d58d971.png)

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

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


More information about the jmc-dev mailing list