java - Converting a project to maven - dealing with additional source directories -
I am converting a legacy Java project into Maven, it currently uses the ant, and has a structure in it :
src \ mainProduct \ com \ mycompany
src \ external \ com \ acme \ ...
Let me assume that I am taking everything under the Maven structure ( Take a look here: What do you have to do: Alternatively, you can try and use the suggested approach here: src \ main \ java
) under src \ mainProduct
, there is no way in it without any extra As the source directory, go to external
folder to contain? Alternatively, how do I transfer it under the src \ main \ java \ external \ / code>, without changing the package names?
& lt; Build & gt; & Lt; SourceDirectory & gt; Src / mainproduct & lt; / SourceDirectory & gt; ... & lt; / Build & gt;
Build-Helper-Plugin and its documents can be found here:
Comments
Post a Comment