Eclipse: using the same output folder for different projects

The following is a question posted at http://dev.eclipse.org in April 2003. original question :

Hello everybody,

In eclipse, I created several java projects representing different modules for one web application. I would like to set up one output folder for all these projects. Every time I build a subproject, the output folder is deleted, so I lose the classes of all the other subprojects.

I think there should be a switch or something like that to tell the eclipse not to clear the contents of the output when creating the project - but I just can't find it.

Thank you for your help!

Alex

I am trying to figure out if I can get a definitive answer to this question. I tried to find out if this question has already been considered, and I could not find anything but the following answer:

Window β†’ Settings β†’ Java β†’ Compiler β†’ Build Path

The above answer did not help me.

+3
source share
1 answer

Hmm ... I think this approach will bring more problems than it's worth. A priori confident quick and dirty solution for integrating your projects together, but you only push the problem forward. It’s good practice to keep your modules as isolated as possible from each other, trying to combine compiled code in one place, works against how the IDE was designed and will only bring problems.

maven . - , , . , , , . , .

, , , . Eclipse , . . Maven .

, maven, . , , gui, , maven literatur e, , .

+3

Source: https://habr.com/ru/post/1795373/


All Articles