IDEA13+Maven + Jetty-plugin 调试项目

简介:

IDEA13+Maven + Jetty-plugin 调试项目


1、pom.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
< project  xmlns = "http://maven.apache.org/POM/4.0.0"  xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation = "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" >
     < modelVersion >4.0.0</ modelVersion >
     < groupId >com.springapp</ groupId >
     < artifactId >lrtech_framework</ artifactId >
     < packaging >war</ packaging >
     < version >1.0-SNAPSHOT</ version >
     < name >lrtech_framework</ name >
     < properties >
         < spring.version >3.2.8.RELEASE</ spring.version >
         < shiro.version >1.2.2</ shiro.version >
         < slf4j.version >1.7.5</ slf4j.version >
         < commons-lang3.version >3.1</ commons-lang3.version >
         < jstl.version >1.2</ jstl.version >
         < ibatis.version >2.3.4.726</ ibatis.version >
         < servlet.version >2.5</ servlet.version >
         < jsp.version >2.1</ jsp.version >
         < jetty.version >7.6.12.v20130726</ jetty.version >
         < quartz.version >2.2.1</ quartz.version >
         <!-- Plugin的属性定义 -->
         < project.build.sourceEncoding >UTF-8</ project.build.sourceEncoding >
         < jdk.version >1.6</ jdk.version >
     </ properties >
     < dependencies >
         < dependency >
             < groupId >commons-dbcp</ groupId >
             < artifactId >commons-dbcp</ artifactId >
             < version >1.2.2</ version >
         </ dependency >
         < dependency >
             < groupId >org.freemarker</ groupId >
             < artifactId >freemarker</ artifactId >
             < version >2.3.20</ version >
         </ dependency >
         < dependency >
             < groupId >org.springframework</ groupId >
             < artifactId >spring-context</ artifactId >
             < version >${spring.version}</ version >
         </ dependency >
         < dependency >
             < groupId >org.springframework</ groupId >
             < artifactId >spring-core</ artifactId >
             < version >${spring.version}</ version >
         </ dependency >
         < dependency >
             < groupId >org.springframework</ groupId >
             < artifactId >spring-web</ artifactId >
             < version >${spring.version}</ version >
         </ dependency >
         < dependency >
             < groupId >org.springframework</ groupId >
             < artifactId >spring-webmvc</ artifactId >
             < version >${spring.version}</ version >
         </ dependency >
         < dependency >
             < groupId >org.springframework</ groupId >
             < artifactId >spring-orm</ artifactId >
             < version >${spring.version}</ version >
         </ dependency >
         < dependency >
             < groupId >org.springframework</ groupId >
             < artifactId >spring-tx</ artifactId >
             < version >${spring.version}</ version >
         </ dependency >
         < dependency >
             < groupId >org.aspectj</ groupId >
             < artifactId >aspectjrt</ artifactId >
             < version >1.7.3</ version >
         </ dependency >
         < dependency >
             < groupId >org.aspectj</ groupId >
             < artifactId >aspectjweaver</ artifactId >
             < version >1.7.3</ version >
             < scope >runtime</ scope >
         </ dependency >
         < dependency >
             < groupId >org.apache.ibatis</ groupId >
             < artifactId >ibatis-sqlmap</ artifactId >
             < version >${ibatis.version}</ version >
         </ dependency >
         < dependency >
             < groupId >org.slf4j</ groupId >
             < artifactId >slf4j-log4j12</ artifactId >
             < version >${slf4j.version}</ version >
         </ dependency >
         < dependency >
             < groupId >javax.servlet</ groupId >
             < artifactId >jstl</ artifactId >
             < version >${jstl.version}</ version >
             < type >jar</ type >
             < scope >compile</ scope >
         </ dependency >
         < dependency >
             < groupId >javax.servlet</ groupId >
             < artifactId >servlet-api</ artifactId >
             < version >${servlet.version}</ version >
         </ dependency >
         < dependency >
             < groupId >javax.servlet.jsp</ groupId >
             < artifactId >jsp-api</ artifactId >
             < version >${jsp.version}</ version >
             < scope >provided</ scope >
         </ dependency >
         < dependency >
             < groupId >org.springframework</ groupId >
             < artifactId >spring-test</ artifactId >
             < version >${spring.version}</ version >
             < scope >test</ scope >
         </ dependency >
         < dependency >
             < groupId >junit</ groupId >
             < artifactId >junit</ artifactId >
             < version >4.8.2</ version >
             < scope >test</ scope >
         </ dependency >
         < dependency >
             < groupId >com.alibaba</ groupId >
             < artifactId >fastjson</ artifactId >
             < version >1.1.38</ version >
         </ dependency >
         < dependency >
             < groupId >mysql</ groupId >
             < artifactId >mysql-connector-java</ artifactId >
             < version >5.1.29</ version >
         </ dependency >
         < dependency >
             < groupId >org.apache.shiro</ groupId >
             < artifactId >shiro-spring</ artifactId >
             < version >${shiro.version}</ version >
         </ dependency >
         < dependency >
             < groupId >org.apache.shiro</ groupId >
             < artifactId >shiro-ehcache</ artifactId >
             < version >${shiro.version}</ version >
         </ dependency >
         <!--<dependency>-->
         <!--<groupId>net.sf.ehcache</groupId>-->
         <!--<artifactId>ehcache-core</artifactId>-->
         <!--<version>2.6.6</version>-->
         <!--</dependency>-->
         <!--<dependency>-->
         <!--<groupId>commons-codec</groupId>-->
         <!--<artifactId>commons-codec</artifactId>-->
         <!--<version>1.8</version>-->
         <!--</dependency>-->
         <!--<dependency>-->
         <!--<groupId>dom4j</groupId>-->
         <!--<artifactId>dom4j</artifactId>-->
         <!--<version>1.6.1</version>-->
         <!--</dependency>-->
     </ dependencies >
     < build >
         < finalName >lrtech_framework</ finalName >
         < resources >
             < resource >
                 < directory >src/main/java</ directory >
                 < includes >
                     < include >**/*.xml</ include >
                     < include >**/*.properties</ include >
                 </ includes >
             </ resource >
         </ resources >
         < plugins >
             < plugin >
                 < groupId >org.mortbay.jetty</ groupId >
                 < artifactId >maven-jetty-plugin</ artifactId >
                 < version >6.1.7</ version >
                 < configuration >
                     < connectors >
                         < connector  implementation = "org.mortbay.jetty.nio.SelectChannelConnector" >
                             < port >8888</ port >
                             < maxIdleTime >30000</ maxIdleTime >
                         </ connector >
                     </ connectors >
                     < webAppSourceDirectory >${project.build.directory}/${pom.artifactId}-${pom.version}
                     </ webAppSourceDirectory >
                     < contextPath >/lrtech</ contextPath >
                 </ configuration >
             </ plugin >
             < plugin >
                 < groupId >org.apache.tomcat.maven</ groupId >
                 < artifactId >tomcat7-maven-plugin</ artifactId >
                 < version >2.2</ version >
                 < executions >
                     < execution >
                         < id >tomcat-run</ id >
                         < goals >
                             < goal >exec-war-only</ goal >
                         </ goals >
                         < phase >package</ phase >
                         < configuration >
                             < warRunDependencies >
                                 < warRunDependency >
                                     < dependency >
                                         < groupId >cmsi</ groupId >
                                         < artifactId >cmsi</ artifactId >
                                         < version >1.0-SNAPSHOT</ version >
                                         < type >war</ type >
                                     </ dependency >
                                     < contextPath >/</ contextPath >
                                 </ warRunDependency >
                             </ warRunDependencies >
                             < enableNaming >true</ enableNaming >
                         </ configuration >
                     </ execution >
                 </ executions >
             </ plugin >
             <!--<plugin>-->
             <!--<groupId>org.apache.tomcat.maven</groupId>-->
             <!--<artifactId>tomcat7-maven-plugin</artifactId>-->
             <!--<version>2.2</version>-->
             <!--<executions>-->
             <!--<execution>-->
             <!--<id>tomcat-run</id>-->
             <!--<goals>-->
             <!--<goal>exec-war-only</goal>-->
             <!--</goals>-->
             <!--<phase>package</phase>-->
             <!--<configuration>-->
             <!--<path>/</path>-->
             <!--<attachArtifactClassifier>${pom.artifactId}-${pom.version}-->
             <!--</attachArtifactClassifier>-->
             <!--<attachArtifactClassifierType>war</attachArtifactClassifierType>-->
             <!--</configuration>-->
             <!--</execution>-->
             <!--</executions>-->
             <!--</plugin>-->
             < plugin >
                 < artifactId >maven-compiler-plugin</ artifactId >
                 < configuration >
                     < source >1.6</ source >
                     < target >1.6</ target >
                 </ configuration >
             </ plugin >
             < plugin >
                 < artifactId >maven-surefire-plugin</ artifactId >
                 < configuration >
                     < includes >
                         < include >**/*Tests.java</ include >
                     </ includes >
                 </ configuration >
             </ plugin >
         </ plugins >
     </ build >
</ project >


2、idea的配置

wKioL1MQVUCSvwXTAAJ80XaXzoE843.jpg

wKiom1MQVWbgl17AAARIjikkd4s546.jpg




本文转自 leizhimin 51CTO博客,原文链接:http://blog.51cto.com/lavasoft/1365135,如需转载请自行联系原作者

相关文章
|
1月前
|
Java Maven
2022最新版超详细的Maven下载配置教程、IDEA中集成maven(包含图解过程)、以及导入项目时jar包下载不成功的问题解决
这篇文章是一份关于Maven的安装和配置指南,包括下载、环境变量设置、配置文件修改、IDEA集成Maven以及解决jar包下载问题的方法。
2022最新版超详细的Maven下载配置教程、IDEA中集成maven(包含图解过程)、以及导入项目时jar包下载不成功的问题解决
|
29天前
|
Java Maven
解决idea每次新建maven项目都需要重新配置maven的问题
解决idea每次新建maven项目都需要重新配置maven的问题
72 1
|
1月前
|
Java Maven 容器
Maven使用IDEA自带工具打包,同时将lib下的jar包打入,双击jar包可直接运行
使用IntelliJ IDEA的Artifacts功能,可以将项目依赖的第三方jar包打包进jar文件中,实现双击jar包即可直接运行。
Maven使用IDEA自带工具打包,同时将lib下的jar包打入,双击jar包可直接运行
|
1月前
|
前端开发 Java Maven
【前端学java】全网最详细的maven安装与IDEA集成教程!
【8月更文挑战第12天】全网最详细的maven安装与IDEA集成教程!
66 2
【前端学java】全网最详细的maven安装与IDEA集成教程!
|
1月前
|
Java Maven
intellij idea如何查看项目maven依赖关系图
这篇文章介绍了如何在IntelliJ IDEA中查看项目的Maven依赖关系图,包括使用Maven工具栏和相关操作来展示和查看依赖细节。
|
1月前
|
Java 应用服务中间件 Maven
Mac使用Idea配置传统SSM项目(非maven项目)
Mac使用Idea配置传统SSM项目(非maven项目)
31 1
|
2月前
|
Java Maven 开发者
入职必会-开发环境搭建14-IDEA配置Maven
在 IDEA 中配置 Maven 可以帮助开发者更方便地管理项目依赖、构建项目和部署应用程序。要在 IDEA 中配置 Maven,可以按照以下步骤进行。
入职必会-开发环境搭建14-IDEA配置Maven
|
1月前
|
XML JSON Java
使用IDEA+Maven搭建整合一个Struts2+Spring4+Hibernate4项目,混合使用传统Xml与@注解,返回JSP视图或JSON数据,快来给你的SSH老项目翻新一下吧
本文介绍了如何使用IntelliJ IDEA和Maven搭建一个整合了Struts2、Spring4、Hibernate4的J2EE项目,并配置了项目目录结构、web.xml、welcome.jsp以及多个JSP页面,用于刷新和学习传统的SSH框架。
32 0
使用IDEA+Maven搭建整合一个Struts2+Spring4+Hibernate4项目,混合使用传统Xml与@注解,返回JSP视图或JSON数据,快来给你的SSH老项目翻新一下吧
|
1月前
|
Java Maven
成功解决IDEA中建立新项目Maven会默认选择配置(图解详细说明)
这篇文章提供了在IntelliJ IDEA中设置新项目的Maven配置的详细步骤,包括如何通过菜单路径进入设置,选择Maven配置,以及展示设置后的效果,还提供了Maven的安装教程和解决导入项目时jar包下载问题的方案。
成功解决IDEA中建立新项目Maven会默认选择配置(图解详细说明)
|
1月前
|
SQL 前端开发 Java
在IDEA中使用Maven将SpringBoot项目打成jar包、同时运行打成的jar包(前后端项目分离)
这篇文章介绍了如何在IntelliJ IDEA中使用Maven将Spring Boot项目打包成可运行的jar包,并提供了运行jar包的方法。同时,还讨论了如何解决jar包冲突问题,并提供了在IDEA中同时启动Vue前端项目和Spring Boot后端项目的步骤。
在IDEA中使用Maven将SpringBoot项目打成jar包、同时运行打成的jar包(前后端项目分离)

推荐镜像

更多