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 ( 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?

Take a look here:

What do you have to do:

  & lt; Build & gt; & Lt; SourceDirectory & gt; Src / mainproduct & lt; / SourceDirectory & gt; ... & lt; / Build & gt;  

Alternatively, you can try and use the suggested approach here:
Build-Helper-Plugin and its documents can be found here:


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -