简体   繁体   中英

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

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.

There is probably a better answer that uses MyEclipse configuration to do exactly what you want, but I wondered if you could use a directory soft-link, like this:

ln -s server/XYZ/deploy/abc server/default/deploy

to allow applications to work with the production directory as if it were the default? This only works on Linux, Unix, OS/X; but Windows Vista and later has similar functionality.

You can create links by Far Manager.

Alse read this - Symlink in windows XP

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM