Customize Maven Source Directory
I'm taking over a project that is ant based. The source directory is in this format: ROOT/src/java/com/...
The standard maven source directory should be in this format: ROOT/src/main/java/com/... (see maven doc).
Without change the physical file structure, a quick way to customize maven source directory is to update "build" tag in pom.xml (see maven doc).
<build>
<sourcedirectory> src/java </sourcedirectory>
</build>
2 comments:
The name of the XML element should be "sourceDirectory", not "sourcedirectory".
Nice, thanks))
Post a Comment