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,如需转载请自行联系原作者

目录
打赏
0
0
0
0
265
分享
相关文章
在IntelliJ IDEA中如何配置使用Maven以创建Tomcat环境
所以,别担心这些工具看起来有些吓人,实际上这些都是为了帮助你更好的完成工作的工具,就像超市里的各种烹饪工具一样,尽管它们看起来可能很复杂,但只要你学会用,它们会为你烹饪出一道道美妙的食物。这就是学习新技能的乐趣,让我们一起享受这个过程,攀登知识的高峰!
195 27
在IntelliJ IDEA中使用Maven配置Tomcat环境
此配置方法具有较高的实用性,简单易懂。遵循以上步骤,您将能顺利在IntelliJ IDEA中使用Maven配置Tomcat环境,从而进行Web项目的开发和调试。
172 18
2022最新版超详细的Maven下载配置教程、IDEA中集成maven(包含图解过程)、以及导入项目时jar包下载不成功的问题解决
这篇文章是一份关于Maven的安装和配置指南,包括下载、环境变量设置、配置文件修改、IDEA集成Maven以及解决jar包下载问题的方法。
2022最新版超详细的Maven下载配置教程、IDEA中集成maven(包含图解过程)、以及导入项目时jar包下载不成功的问题解决
|
11月前
|
解决idea每次新建maven项目都需要重新配置maven的问题
解决idea每次新建maven项目都需要重新配置maven的问题
372 1
|
9月前
|
idea maven创建kotlin项目
本文介绍了在IntelliJ IDEA中使用Maven创建Kotlin项目的步骤,包括在`pom.xml`文件中添加Maven中央仓库、配置`kotlin-maven-plugin`插件、指定源目录、添加测试插件和执行插件,以及添加Kotlin测试依赖和标准库依赖。文中还提到了如何通过更换镜像或使用代理来解决依赖下载速度慢的问题,并展示了运行示例代码的截图。
521 4
idea maven创建kotlin项目
|
9月前
|
idea的maven项目打包时没有source下的文件
【10月更文挑战第21天】idea的maven项目打包时没有source下的文件
540 1
【终极解决方案】IDEA maven 项目修改代码不生效。
【终极解决方案】IDEA maven 项目修改代码不生效。
1179 1
IDEA如何用maven打包(界面和命令两种方式)
【10月更文挑战第14天】本文介绍了两种Maven项目打包方法:命令行与IDEA界面。首先确保已安装Maven并配置环境变量,通过`mvn -v`检查安装。命令行打包需进入项目目录,执行`mvn package`,之后在`target`目录查看结果。IDEA打包则需配置Maven路径,打开Maven Projects窗口,双击Lifecycle下的`package`阶段,同样在`target`目录查找生成文件,并在Build窗口查看日志以排查问题。
3347 1
idea+maven+tomcat+spring 创建一个jsp项目
这篇文章介绍了如何在IntelliJ IDEA中使用Maven和Tomcat创建一个JSP项目,包括配置Maven依赖、设置Tomcat服务器、编写JSP页面、创建控制器和配置文件,以及项目的运行结果。
461 0
idea+maven+tomcat+spring 创建一个jsp项目
|
9月前
|
震惊!idea专业版如何配置maven国内源手把手教学
文章提供了如何在IDEA专业版中配置Maven使用国内源(如阿里云)的详细步骤,以加快依赖下载速度,并解释了配置国内源的原因。
1858 0
震惊!idea专业版如何配置maven国内源手把手教学
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等