I am converting my existing project into maven but the point at which I am getting stuck is that I don't want to use the standard src/main/java
structure.
I thought How to edit the directory structure in Maven? might help, but from what I understood it gives a way to append a directory path before src/main/java
. This is the solution suggested in post that I am referring to:
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
<testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>${project.basedir}/src/test/resources</directory>
</testResource>
</testResources>
Whereas, in my case I want to be able to completely configure the source and build/output directories as I can't alter my existing directory structure. Is there a way to do that?