My maven project intentionally only needs src/test/java
and src/test/resources
. After removing src/main/*
folders, the expected w
None of the other solutions seemed particularly attractive to me, so my solution was to add a file src/main/resources/dummy
containing the explanation:
Dummy file to avoid empty jar warning from Maven.
At least this does not produce any noise in the pom.xml
, and there cannot be any misunderstandings about the purpose of the file. It produces a jar with exactly that file, but this was no problem in my case.