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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -