首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

MAVEN_OPTS跟CATALINA_OPTS的作用

2012-07-20 
MAVEN_OPTS和CATALINA_OPTS的作用MAVEN_OPTS-Xdebug -Xrunjdwp:transportdt_socket,address1044,server

MAVEN_OPTS和CATALINA_OPTS的作用
MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=n

CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8787

他们的目的都是一样的,就是远程调试。无非一个是maven的远程调试,一个是tomcat的远程调试。
更具体的说明如下,以MAVEN_OPTS为例:

After setting this property, run "maven cactus:test" (or whatever goal to debug) and it will block, waiting for a debug connection.

Then, in your IDE, select the "Run -> Debug" window and create a new "Remote Java Application" configuration, passing the port set in MAVEN_OPTS (8787 in this case).

Once running this configuration in debug, the blocked Maven session will continue, enabling debugging from your IDE.
1 楼 gmemai 2011-09-30   写的不错,谢谢了

热点排行