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
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值