I am converting a large Java project to use maven. I have many interdependencies to work, but I would like to get it from scratch with maven before I do the real work of cleaning. I broke it into several modules plus one giant module; let me call this module monolith. The monolith has the usual Java classes and some gwt classes (with interdependencies). I divided the two parts to have a directory structure like this:
./SRc/home/Java / ...
./src/client/gwt / ...
So, I can easily get this to compile in eclipse with m2eclipse, but then I cannot find how it can be compiled using maven. I saw that there is an assembly section in the pom file where you can specify an alternative source and target, but I think this is not a repeatable attribute in pom:
<build> <sourceDirectory>${basedir}/src/main/java</sourceDirectory> </build>
In eclipse, I can configure the .classpath project file (in the project properties) to add additional source files (and output dirs) to accomplish what I'm looking for.
Is there a way to do this, or do I need to develop the dependencies first, and split them into separate modules?
source share