Search code examples
javaeclipsejbossmyeclipse

Can I configure Eclipse / JBoss integration so it does not rely on deploying Jars to the "server/default/deploy" folder?


I am using MyEclipse 7.5 with JBoss 4.2.3 GA. When I define my local development JBoss server in MyEclipse it always wants to deploy jars, wars etc. to the "server/default/deploy" directory.

Unfortunately our JBoss directory structure for production is "server/XYZ/deploy/abc" (driven by a third party).

As a result our Dev JBoss instances are different from our QA/Staging/Production JBoss instances.

Is there a way to configure Eclipse to use JBoss but deploy to that specific folder path "server/XYZ/deploy/abc" rather than the default one "server/default/deploy"?


Solution

  • With MyEclipse IDE, you can change deployment location for Project. Just click on Windows->Preferences->Servers->JBoss.

    • Select proper Jboss - For eg. JBoss 5.x, here you have to set Jboss home directory, For eg. 'd:\Jboss5.0GA'.

    • In 'Server Name' field if you specify 'default' then project deployment directory will be for eg.'d:\Jboss5.0GA\server\default\deploy'. As in your case, you may specify any other 'Server Name', then deployment location will get modified accordingly.

      For eg. if server name is :'XYZ' then deployment location: 'd:\Jboss5.0GA\server\XYZ\deploy' .Make sure you have all configuration folders (like conf,lib etc ) at 'server\xyz' as in 'server\default' folder.