IntelliJ IDEA上debug模式启动

debug模式启动

点击Edid Configurations... 增加一个Maven下的jetty,Parameters配置如下 Working directory:/home/liang/intellijIDEA_workspace/palmchat/wap-palmchat Command line:clean jetty:run-exploded -Dmaven.test.skip=true Profiles:pom.xml 点击debug图标,就是debug模式运行了 tomcat 也是类似去配置

参考: http://lavasoft.blog.51cto.com/62575/1365135 http://s3.51cto.com/wyfs02/M00/12/EF/wKioL1MQVUCSvwXTAAJ80XaXzoE843.jpg

如何打main运行的jar包

方式一:LogAnalytics项目,分析nginx日志的,采用的是maven配置文件pom.xml 指定main函数,详细看配置 直接运行clean install -Dmaven.test.skip=true 打成的jar可运行main方法 clean package -Dmaven.test.skip=true

方式二: 参考: http://bglmmz.iteye.com/blog/2058785 http://blog.sina.com.cn/s/blog_3fe961ae0102uy42.html