My maven project intentionally only needs src/test/java
and src/test/resources
. After removing src/main/*
folders, the expected w
If all you are trying to do is gather dependecies, you could add
to change from the default jar packaging.
However, based on the context in your question, having src/test/java and src/test/resources folders leads me to believe you have a component that is just tests? Changing packaging to pom would stop the tests from being run from maven. If this is indeed your use case, it would seem that you are trying to skip the packaging. The best way to achieve that is to bind the plugin for the modules packaging to phase none, as there is no way to skip the package phase of the maven lifecycle. This is identified as Solution 1 above.