maven的pom.xml举例
1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 5 <modelVersion>4.0.0</modelVersion> 6 <groupId>bdd-ssd-test</groupId> 7 <artifactId>org.weshare.ssd.test</artifactId> 8 <version>2.1-SNAPSHOT</version> 9 10 <properties> 11 <spring>4.3.10.RELEASE</spring> 12 <mybatis>3.4.1</mybatis> 13 <mybaits.spring>1.3.1</mybaits.spring> 14 <mysql.connector>8.0.7-dmr</mysql.connector> 15 <commons>1.4</commons> 16 <dom4j>1.6.1</dom4j> 17 <jaxen>1.1.6</jaxen> 18 <jsoup>1.10.3</jsoup> 19 <fastjson>1.2.35</fastjson> 20 <jackson>2.9.0</jackson> 21 <log4j2>2.8.2</log4j2> 22 <cucumber>1.2.5</cucumber> 23 <junit>4.12</junit> 24 <gson>2.8.2</gson> 25 <cucumber>1.2.5</cucumber> 26 <meteorite>1.1.1</meteorite> 27 <jsonequals>1.0.1</jsonequals> 28 <commons-io>2.5</commons-io> 29 <jdk>1.8</jdk> 30 <encoding>UTF-8</encoding> 31 <maven.clean.plugin>3.0.0</maven.clean.plugin> 32 <maven.compiler.plugin>3.6.1</maven.compiler.plugin> 33 <maven.deploy.plugin>2.8.2</maven.deploy.plugin> 34 <maven.install.plugin>2.5.2</maven.install.plugin> 35 <maven.gpg.plugin>1.6</maven.gpg.plugin> 36 <maven.jar.plugin>3.0.2</maven.jar.plugin> 37 <maven.resources.plugin>3.0.2</maven.resources.plugin> 38 <maven.surefire.plugin>2.19.1</maven.surefire.plugin> 39 <maven.javadoc.plugin>2.10.4</maven.javadoc.plugin> 40 <maven.release.plugin>2.5.3</maven.release.plugin> 41 <maven.scm.plugin>1.9.5</maven.scm.plugin> 42 <maven.site.plugin>3.6</maven.site.plugin> 43 <maven.enforcer.plugin>1.4.1</maven.enforcer.plugin> 44 <versions.maven.plugin>2.3</versions.maven.plugin> 45 <maven.assembly.plugin>3.0.0</maven.assembly.plugin> 46 <maven.source.plugin>3.0.1</maven.source.plugin> 47 <maven.jarsigner.plugin>1.4</maven.jarsigner.plugin> 48 <!--解决编译时资源文件输出乱码问题:using platform encoding GBK--> 49 <!--<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>--> 50 </properties> 51 52 <dependencies> 53 <!-- spring --> 54 <dependency> 55 <groupId>org.springframework</groupId> 56 <artifactId>spring-context</artifactId> 57 <version>${spring}</version> 58 <scope>compile</scope> 59 </dependency> 60 61 <dependency> 62 <groupId>org.springframework</groupId> 63 <artifactId>spring-core</artifactId> 64 <version>${spring}</version> 65 <scope>compile</scope> 66 </dependency> 67 68 <dependency> 69 <groupId>org.springframework</groupId> 70 <artifactId>spring-beans</artifactId> 71 <version>${spring}</version> 72 <scope>compile</scope> 73 </dependency> 74 75 <dependency> 76 <groupId>org.springframework</groupId> 77 <artifactId>spring-aop</artifactId> 78 <version>${spring}</version> 79 <scope>compile</scope> 80 </dependency> 81 82 <dependency> 83 <groupId>org.springframework</groupId> 84 <artifactId>spring-tx</artifactId> 85 <version>${spring}</version> 86 <scope>compile</scope> 87 </dependency> 88 89 <dependency> 90 <groupId>org.springframework</groupId> 91 <artifactId>spring-context-support</artifactId> 92 <version>${spring}</version> 93 <scope>compile</scope> 94 </dependency> 95 96 <dependency> 97 <groupId>org.springframework</groupId> 98 <artifactId>spring-jdbc</artifactId> 99 <version>${spring}</version> 100 <scope>compile</scope> 101 </dependency> 102 103 <dependency> 104 <groupId>org.springframework</groupId> 105 <artifactId>spring-web</artifactId> 106 <version>${spring}</version> 107 </dependency> 108 109 <!-- mybatis --> 110 <dependency> 111 <groupId>org.mybatis</groupId> 112 <artifactId>mybatis</artifactId> 113 <version>${mybatis}</version> 114 <scope>compile</scope> 115 </dependency> 116 117 <dependency> 118 <groupId>org.mybatis</groupId> 119 <artifactId>mybatis-spring</artifactId> 120 <version>${mybaits.spring}</version> 121 <scope>compile</scope> 122 </dependency> 123 124 <!-- mysql --> 125 <dependency> 126 <groupId>mysql</groupId> 127 <artifactId>mysql-connector-java</artifactId> 128 <version>${mysql.connector}</version> 129 <scope>compile</scope> 130 </dependency> 131 132 <!-- commons --> 133 <dependency> 134 <groupId>commons-dbcp</groupId> 135 <artifactId>commons-dbcp</artifactId> 136 <version>${commons}</version> 137 <!--<scope>compile</scope>--> 138 </dependency> 139 140 <!-- dom4j --> 141 <dependency> 142 <groupId>dom4j</groupId> 143 <artifactId>dom4j</artifactId> 144 <version>${dom4j}</version> 145 <!--<scope>compile</scope>--> 146 </dependency> 147 148 <dependency> 149 <groupId>jaxen</groupId> 150 <artifactId>jaxen</artifactId> 151 <version>${jaxen}</version> 152 <!--<scope>compile</scope>--> 153 </dependency> 154 155 <!-- jsoup --> 156 <dependency> 157 <groupId>org.jsoup</groupId> 158 <artifactId>jsoup</artifactId> 159 <version>${jsoup}</version> 160 <!--<scope>compile</scope>--> 161 </dependency> 162 163 <!-- log4j2 --> 164 <dependency> 165 <groupId>org.apache.logging.log4j</groupId> 166 <artifactId>log4j-core</artifactId> 167 <version>${log4j2}</version> 168 <!--<scope>compile</scope>--> 169 </dependency> 170 171 <dependency> 172 <groupId>org.apache.logging.log4j</groupId> 173 <artifactId>log4j-api</artifactId> 174 <version>${log4j2}</version> 175 <!--<scope>compile</scope>--> 176 </dependency> 177 178 <!-- junit --> 179 <dependency> 180 <groupId>junit</groupId> 181 <artifactId>junit</artifactId> 182 <version>${junit}</version> 183 <!--<scope>compile</scope>--> 184 </dependency> 185 186 <!-- gson --> 187 <dependency> 188 <groupId>com.google.code.gson</groupId> 189 <artifactId>gson</artifactId> 190 <version>${gson}</version> 191 <scope>compile</scope> 192 </dependency> 193 194 <!-- cucumber --> 195 <dependency> 196 <groupId>info.cukes</groupId> 197 <artifactId>cucumber-java</artifactId> 198 <version>${cucumber}</version> 199 <scope>compile</scope> 200 </dependency> 201 <dependency> 202 <groupId>info.cukes</groupId> 203 <artifactId>cucumber-junit</artifactId> 204 <version>${cucumber}</version> 205 <scope>compile</scope> 206 </dependency> 207 <dependency> 208 <groupId>info.cukes</groupId> 209 <artifactId>cucumber-core</artifactId> 210 <version>${cucumber}</version> 211 <scope>compile</scope> 212 </dependency> 213 <dependency> 214 <groupId>info.cukes</groupId> 215 <artifactId>cucumber-jvm</artifactId> 216 <version>${cucumber}</version> 217 <type>pom</type> 218 <scope>compile</scope> 219 </dependency> 220 <dependency> 221 <groupId>info.cukes</groupId> 222 <artifactId>cucumber-jvm-deps</artifactId> 223 <version>1.0.5</version> 224 <scope>compile</scope> 225 </dependency> 226 227 <!--测试框架包--> 228 <dependency> 229 <groupId>meteorite</groupId> 230 <artifactId>meteorite-constant</artifactId> 231 <version>${meteorite}</version> 232 <scope>system</scope> 233 <systemPath>${project.basedir}/libs/meteorite-constant-${meteorite}.jar</systemPath> 234 </dependency> 235 236 <dependency> 237 <groupId>meteorite</groupId> 238 <artifactId>meteorite-resource</artifactId> 239 <version>${meteorite}</version> 240 <scope>system</scope> 241 <systemPath>${project.basedir}/libs/meteorite-resource-${meteorite}.jar</systemPath> 242 </dependency> 243 244 <dependency> 245 <groupId>meteorite</groupId> 246 <artifactId>meteorite-model</artifactId> 247 <version>${meteorite}</version> 248 <scope>system</scope> 249 <systemPath>${project.basedir}/libs/meteorite-model-${meteorite}.jar</systemPath> 250 </dependency> 251 252 <dependency> 253 <groupId>meteorite</groupId> 254 <artifactId>meteorite-utils</artifactId> 255 <version>${meteorite}</version> 256 <scope>system</scope> 257 <systemPath>${project.basedir}/libs/meteorite-utils-${meteorite}.jar</systemPath> 258 </dependency> 259 260 <dependency> 261 <groupId>meteorite</groupId> 262 <artifactId>meteorite-core</artifactId> 263 <version>${meteorite}</version> 264 <scope>system</scope> 265 <systemPath>${project.basedir}/libs/meteorite-core-${meteorite}.jar</systemPath> 266 </dependency> 267 268 <dependency> 269 <groupId>meteorite</groupId> 270 <artifactId>meteorite-register</artifactId> 271 <version>${meteorite}</version> 272 <scope>system</scope> 273 <systemPath>${project.basedir}/libs/meteorite-register-${meteorite}.jar</systemPath> 274 </dependency> 275 276 <dependency> 277 <groupId>meteorite</groupId> 278 <artifactId>meteorite-load</artifactId> 279 <version>${meteorite}</version> 280 <scope>system</scope> 281 <systemPath>${project.basedir}/libs/meteorite-load-${meteorite}.jar</systemPath> 282 </dependency> 283 284 <dependency> 285 <groupId>meteorite</groupId> 286 <artifactId>meteorite-protocol</artifactId> 287 <version>${meteorite}</version> 288 <scope>system</scope> 289 <systemPath>${project.basedir}/libs/meteorite-protocol-${meteorite}.jar</systemPath> 290 </dependency> 291 292 <dependency> 293 <groupId>meteorite</groupId> 294 <artifactId>meteorite-mybatis</artifactId> 295 <version>${meteorite}</version> 296 <scope>system</scope> 297 <systemPath>${project.basedir}/libs/meteorite-mybatis-${meteorite}.jar</systemPath> 298 </dependency> 299 300 <dependency> 301 <groupId>meteorite</groupId> 302 <artifactId>meteorite-runner</artifactId> 303 <version>${meteorite}</version> 304 <scope>system</scope> 305 <systemPath>${project.basedir}/libs/meteorite-runner-${meteorite}.jar</systemPath> 306 </dependency> 307 308 <dependency> 309 <groupId>meteorite</groupId> 310 <artifactId>meteorite-junit</artifactId> 311 <version>${meteorite}</version> 312 <scope>system</scope> 313 <systemPath>${project.basedir}/libs/meteorite-junit-${meteorite}.jar</systemPath> 314 </dependency> 315 316 <!--<dependency> 已经更新为1.11版本--> 317 <!--<groupId>org.apache.commons.codec</groupId>--> 318 <!--<artifactId>commons.codec</artifactId>--> 319 <!--<version>1.1</version>--> 320 <!--<scope>system</scope>--> 321 <!--<systemPath>${project.basedir}/libs/commons.codec-1.1.jar</systemPath>--> 322 <!--</dependency>--> 323 <dependency> 324 <groupId>commons-codec</groupId> 325 <artifactId>commons-codec</artifactId> 326 <version>1.11</version> 327 </dependency> 328 <dependency> 329 <groupId>com.github.kvnxiao</groupId> 330 <artifactId>jsonequals</artifactId> 331 <version>${jsonequals}</version> 332 </dependency> 333 <dependency> 334 <groupId>commons-io</groupId> 335 <artifactId>commons-io</artifactId> 336 <version>${commons-io}</version> 337 </dependency> 338 <dependency> 339 <groupId>totallylazy</groupId> 340 <artifactId>totallylazy</artifactId> 341 <version>1001</version> 342 <scope>system</scope> 343 <systemPath>${project.basedir}/libs/totallylazy-1001.jar</systemPath> 344 </dependency> 345 346 <!-- maven-cucumber-reporting依赖包 --> 347 <dependency> 348 <groupId>net.masterthought</groupId> 349 <artifactId>cucumber-reporting</artifactId> 350 <version>3.13.0</version> 351 </dependency> 352 <!--<dependency>--> 353 <!--<groupId>org.apache.maven</groupId>--> 354 <!--<artifactId>maven-plugin-api</artifactId>--> 355 <!--<version>3.3.9</version>--> 356 <!--</dependency>--> 357 <!--<dependency>--> 358 <!--<groupId>org.apache.maven.plugins</groupId>--> 359 <!--<artifactId>maven-gpg-plugin</artifactId>--> 360 <!--<version>1.6</version>--> 361 <!--</dependency>--> 362 363 </dependencies> 364 365 <repositories> 366 <repository> 367 <id>jitpack.io</id> 368 <url>https://jitpack.io</url> 369 </repository> 370 <!--私服仓库地址--> 371 <repository> 372 <id>my-nexus-releases</id> 373 <name>Nexus Release Repository</name> 374 <url>http://10.15.9.182:8081/nexus/content/groups/public</url> 375 </repository> 376 </repositories> 377 378 <build> 379 <plugins> 380 <plugin> 381 <artifactId>maven-compiler-plugin</artifactId> 382 <version>${maven.compiler.plugin}</version> 383 <configuration> 384 <source>${jdk}</source> 385 <target>${jdk}</target> 386 <encoding>${encoding}</encoding> 387 </configuration> 388 </plugin> 389 <plugin> 390 <groupId>org.apache.maven.plugins</groupId> 391 <artifactId>maven-surefire-plugin</artifactId> 392 <version>${maven.surefire.plugin}</version> 393 <configuration> 394 <testFailureIgnore> 395 true<!-- 因为要执行Cucumber --> 396 </testFailureIgnore> 397 <!--<includes>--> 398 <!--<include>**/TestRun.java</include>--> 399 <!--</includes>--> 400 </configuration> 401 </plugin> 402 403 <!--<plugin>--> 404 <!--<groupId>org.apache.maven.plugins</groupId>--> 405 <!--<artifactId>maven-surefire-plugin</artifactId>--> 406 <!--<version>2.18.1</version>--> 407 <!--<configuration>--> 408 <!--<testFailureIgnore>true</testFailureIgnore>--> 409 <!--<argLine>-Duser.language=en</argLine>--> 410 <!--<argLine>-Xmx1024m</argLine>--> 411 <!--<argLine>-XX:MaxPermSize=256m</argLine>--> 412 <!--<argLine>-Dfile.encoding=UTF-8</argLine>--> 413 <!--<useFile>false</useFile>--> 414 <!--<includes>--> 415 <!--<include>**/SSDTest.java</include>--> 416 <!--</includes>--> 417 <!--</configuration>--> 418 <!--</plugin>--> 419 420 <plugin> 421 <groupId>net.masterthought</groupId> 422 <artifactId>maven-cucumber-reporting</artifactId> 423 <version>3.13.0</version> 424 <executions> 425 <execution> 426 <id>execution</id> 427 <phase>verify</phase> 428 <goals> 429 <goal>generate</goal> 430 </goals> 431 <configuration> 432 <projectName>cucumber-jvm-example</projectName> 433 <outputDirectory>${project.build.directory}/reports/cucumber-reports</outputDirectory> 434 <cucumberOutput>${project.build.directory}/reports/output.json</cucumberOutput> 435 <parallelTesting>false</parallelTesting> 436 </configuration> 437 </execution> 438 </executions> 439 </plugin> 440 </plugins> 441 </build> 442 </project>
转载于:https://www.cnblogs.com/gongxr/p/8241440.html
maven的pom.xml举例相关推荐
- maven的pom.xml用<exclusion>解决版本问题
maven的pom.xml用解决版本问题 参考文章: (1)maven的pom.xml用解决版本问题 (2)https://www.cnblogs.com/liu2-/p/9035922.html 备 ...
- maven的pom.xml中repositories的作用
在maven中pom.xml是Maven进行工作的主要配置文件,它的作用包括:配置Maven项目中需要使用的远程仓库,Maven项目的资源依赖关系等.其中pom是Project Object Mode ...
- Maven的pom.xml文件详解------The Basics
转载自 Maven的pom.xml文件详解------The Basics Maven坐标 GroupId.artifactId和version构成了Maven的坐标(groupId和version ...
- Maven的pom.xml文件详解------Environment Settings
转载自 Maven的pom.xml文件详解------Environment Settings Issue Management 使用的缺陷跟踪系统(Bugzilla,TestTrack,Clear ...
- Maven的pom.xml文件详解------Build Settings
转载自 Maven的pom.xml文件详解------Build Settings 根据POM 4.0.0 XSD,build元素概念性的划分为两个部分:BaseBuild(包含poject bui ...
- Maven的pom.xml文件结构之Build配置build
From: https://blog.csdn.net/taiyangdao/article/details/52374125 在Maven的pom.xml文件中,Build相关配置包含两个部分,一个 ...
- maven项目pom.xml中parent标签的使用
本文来说下maven项目pom.xml中parent标签的使用 文章目录 parent标签 parent标签由来 依赖排除 本文小结 parent标签 parent标签使用例子 <!--父项目的 ...
- maven项目pom.xml文件Maven install时报错
欢迎加入JavaWeb开发交流群:群号:1062758224 [WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has be ...
- pom文件找不到子项目_java,eclipse_eclipse中maven项目pom.xml文件找不到parent要怎么解决?,java,eclipse,maven - phpStudy...
eclipse中maven项目pom.xml文件找不到parent要怎么解决? 在maven项目中方pom.xml文件找不到parent,maven clean报错如下: [ERROR] [ERROR ...
最新文章
- linux md5sum 的用法(转)
- CLR via C#深解笔记二 - 类型设计
- paper 123: SVM如何避免过拟合
- python计算面积折线图_Python交互图表可视化Bokeh:4. 折线图| 面积图
- 机器学习-tensorflow
- 剖析Caffe源码之Layer_factory
- python学了基础之后方向_学习了解python基础后,该进去哪一个方向呢?
- 【java】System.arraycopy为什么快
- SpringCloud工作笔记065---lombok的使用和原理_在开发工具STS_eclipse_Idea中集成lombok
- django migrate 抛出异常:ValueError: Found wrong number (0) of constraints for …
- yii2 html转换,能够将yii2的api以html文件导出,以及相关的测试
- 《电机学和电机驱动入门》
- IDEA插件开发之基础篇
- 超级鹰 古诗文网验证码识别实例
- 动物派对场景插图设计
- LeetCode题解系列--309. Best Time to Buy and Sell Stock with Cooldown
- \int_0^{+\infty} \frac{\sin x}{x}\mathop{}\!\mathrm{d}{x}
- MPU6050加速度传感器学习笔记之实验《获取原始数据》
- Php ui 3dmax,Unity3d和3dMax美工功能简介
- MindMapper16中文汉化版下载
热门文章
- 能源互联网系统出线柜
- [转]英国爱丁堡大学拟开设搜寻外星人课程
- 如何用python选股票_用Python选一个自己的股票池1
- 浙江省宁波温州台州绍兴卫星地图1省4市合一大高清图(2021年)
- 石头剪刀布php源码,微信小程序 石头剪刀布实例代码
- TI AWR1843毫米波雷达采集三维点云数据(ROS)
- 大学计算机基础实践教程第二版素材,920730-大学计算机基础-实验素材-大学计算机基础教程2...
- 【雪野实训记录】Oracle宾馆管理系统-L2综合项目案例
- 已知,1英里等于1.6公里,编写一个程序,将从键盘上输入的英里数转换为公里数,结果保留两位小数。...
- 10月23日,相约全球边缘计算大会·上海站