One click build and deploy using Eclipse/Maven/JBoss AS 7

你离开我真会死。 提交于 2019-12-06 10:17:09

You can use JBoss Tools 3.3.0 (Current milestone M4) with the maven integration to easily deploy projects (wars or ears) to your AS7 server.

Once you defined your AS7 instance in eclipse, all you have to do is right click on your project > Run As ...> Run on Server. It'll start your app server if it's stopped, or just deploy your app if it's already running.

See http://vimeo.com/25768303 and http://community.jboss.org/en/tools/blog/2011/11/09/jboss-tools-shift-happens-in-m4

If you are using maven, you can use the cargo plugin: http://cargo.codehaus.org/Maven2+plugin

You just configure where the JBoss is installed, set the plugin to run in the phase you want (or make a new one) and you are all set.

You can also create different configurations for different profiles, so you have local, integration, test, production, etc... And just by running with the selected profile deploys the ear in the server, remote or local.

If you want more control, you can set the path of the container as a variable that you pass in the Eclipse run configuration, that way each developer can have their servers in different paths.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!