Creating multiple project configurations using eclipse

Is there a way to get Eclipse to export multiple configurations to a single project?

My problem is this:

I have several java web applications that I am developing in Eclipse. Before I put new versions on my production server, I publish new versions on a test server, where applications work with a slightly different configuration (database server name, etc.).

Is there a way to something like "export war for TEST env" and "export war for PROD env"? An eclipse would have to take another properties file ...

I guess there is a way, I just can't understand.

Any ideas / hints?

+3
source share
2 answers

In fact, there are plugins for this:

Maven4Eclipse

+2
source

You will get much better results if Ant or Maven .

These are build systems, not IDEs, so all you have to do is run a shell command with parameters, if necessary.


Update: Regarding the issue of integrating Ant or Maven with Eclipse, see my answer on the Best way to split banks across multiple projects .

+1
source

All Articles