参考:

https://www.jianshu.com/p/0e3a1f9c9ce7

https://blog.csdn.net/u012152619/article/details/51485297

  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>cn.com.xxx</groupId>
  5. <artifactId>gui</artifactId>
  6. <version>1.0.0</version>
  7. <name>gui</name>
  8.  
  9. <!--常量信息-->
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <project.version>0.0.1</project.version>
  13. <slf4j.version>1.7.25</slf4j.version>
  14. <log4j.version>1.2.17</log4j.version>
  15.  
  16. <keystore.filename>./src/main/resources/gui.keystore</keystore.filename>
  17. <keystore.storepass>gui</keystore.storepass>
  18. <keystore.keypass>gui</keystore.keypass>
  19. <keystore.alias>gui</keystore.alias>
  20. </properties>
  21.  
  22. <!-- 私服仓库配置(对应settings.xml)-->
  23. <repositories>
  24. <repository>
  25. <id>releases</id>
  26. <url>https://xxx.com.cn:443/artifactory/aip-release-maven</url>
  27. <releases>
  28. <enabled>true</enabled>
  29. </releases>
  30. <snapshots>
  31. <enabled>true</enabled>
  32. </snapshots>
  33. </repository>
  34. <repository>
  35. <id>snapshots</id>
  36. <name>Nexus Managed Snapshot Repository</name>
  37. <url>https://xxx.com.cn:443/artifactory/aip-snapshot-maven</url>
  38. <releases>
  39. <enabled>true</enabled>
  40. </releases>
  41. <snapshots>
  42. <enabled>true</enabled>
  43. </snapshots>
  44. </repository>
  45. <repository>
  46. <id>external</id>
  47. <name>Nexus Managed Internal Repository</name>
  48. <url>https://xxx.com.cn:443/artifactory/public-maven-virtual</url>
  49. <releases>
  50. <enabled>true</enabled>
  51. </releases>
  52. <snapshots>
  53. <enabled>true</enabled>
  54. </snapshots>
  55. </repository>
  56. </repositories>
  57.  
  58. <pluginRepositories>
  59. <pluginRepository>
  60. <id>releases</id>
  61. <url>https://xxx.com.cn:443/artifactory/aip-release-maven</url>
  62. <releases>
  63. <enabled>true</enabled>
  64. </releases>
  65. <snapshots>
  66. <enabled>true</enabled>
  67. </snapshots>
  68. </pluginRepository>
  69. <pluginRepository>
  70. <id>snapshots</id>
  71. <url>https://xxx.com.cn:443/artifactory/aip-snapshot-maven</url>
  72. <releases>
  73. <enabled>true</enabled>
  74. </releases>
  75. <snapshots>
  76. <enabled>true</enabled>
  77. </snapshots>
  78. </pluginRepository>
  79. <pluginRepository>
  80. <id>external</id>
  81. <name>Nexus Managed Internal Repository</name>
  82. <url>https://xxx.com.cn:443/artifactory/public-maven-virtual</url>
  83. <releases>
  84. <enabled>true</enabled>
  85. </releases>
  86. <snapshots>
  87. <enabled>true</enabled>
  88. </snapshots>
  89. </pluginRepository>
  90. </pluginRepositories>
  91.  
  92. <distributionManagement>
  93. <repository>
  94. <id>releases</id>
  95. <url>https://xxx.com.cn:443/artifactory/aip-snapshot-maven</url>
  96. </repository>
  97. <snapshotRepository>
  98. <id>snapshots</id>
  99. <url>https://xxx.com.cn:443/artifactory/aip-snapshot-maven</url>
  100. </snapshotRepository>
  101. </distributionManagement>
  102.  
  103. <dependencies>
  104. <dependency>
  105. <groupId>commons-beanutils</groupId>
  106. <artifactId>commons-beanutils</artifactId>
  107. <version>1.9.3</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>commons-codec</groupId>
  111. <artifactId>commons-codec</artifactId>
  112. <version>1.6</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>commons-collections</groupId>
  116. <artifactId>commons-collections</artifactId>
  117. <version>3.2.1</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>commons-lang</groupId>
  121. <artifactId>commons-lang</artifactId>
  122. <version>2.6</version>
  123. <scope>compile</scope>
  124. </dependency>
  125. <dependency>
  126. <groupId>commons-logging</groupId>
  127. <artifactId>commons-logging</artifactId>
  128. <version>1.2</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>commons-net</groupId>
  132. <artifactId>commons-net</artifactId>
  133. <version>3.6</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.apache.httpcomponents</groupId>
  137. <artifactId>httpclient</artifactId>
  138. <version>4.3.5</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.apache.httpcomponents</groupId>
  142. <artifactId>httpcore</artifactId>
  143. <version>4.3.3</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.apache.directory.studio</groupId>
  147. <artifactId>org.apache.commons.io</artifactId>
  148. <version>2.4</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>log4j</groupId>
  152. <artifactId>log4j</artifactId>
  153. <version>1.2.17</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.slf4j</groupId>
  157. <artifactId>slf4j-api</artifactId>
  158. <version>1.7.25</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>junit</groupId>
  162. <artifactId>junit</artifactId>
  163. <version>4.12</version>
  164. <scope>test</scope>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.powermock</groupId>
  168. <artifactId>powermock-module-junit4</artifactId>
  169. <version>1.7.3</version>
  170. <scope>test</scope>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.powermock</groupId>
  174. <artifactId>powermock-api-mockito</artifactId>
  175. <version>1.7.3</version>
  176. <scope>test</scope>
  177. </dependency>
  178. <dependency>
  179. <groupId>org.slf4j</groupId>
  180. <artifactId>slf4j-log4j12</artifactId>
  181. <version>1.7.25</version>
  182. </dependency>
  183. <dependency>
  184. <groupId>com.github.tomakehurst</groupId>
  185. <artifactId>wiremock</artifactId>
  186. <version>1.57</version>
  187. <scope>test</scope>
  188. </dependency>
  189. <dependency>
  190. <groupId>com.fasterxml.jackson.core</groupId>
  191. <artifactId>jackson-databind</artifactId>
  192. <version>2.9.3</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>com.fasterxml.jackson.core</groupId>
  196. <artifactId>jackson-core</artifactId>
  197. <version>2.9.3</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>com.fasterxml.jackson.core</groupId>
  201. <artifactId>jackson-annotations</artifactId>
  202. <version>2.9.3</version>
  203. </dependency>
  204. </dependencies>
  205.  
  206. <build>
  207. <plugins>
  208. <!-- pmd规则配置 -->
  209. <plugin>
  210. <groupId>org.apache.maven.plugins</groupId>
  211. <artifactId>maven-pmd-plugin</artifactId>
  212. <version>3.9.0</version>
  213. <configuration>
  214. <rulesets>
  215. <ruleset>./src/main/resources/pmd-rules/rules.xml</ruleset>
  216. </rulesets>
  217. <printFailingErrors>true</printFailingErrors>
  218. </configuration>
  219. <executions>
  220. <execution>
  221. <goals>
  222. <goal>check</goal>
  223. </goals>
  224. </execution>
  225. </executions>
  226. </plugin>
  227. <plugin>
  228. <groupId>org.apache.maven.plugins</groupId>
  229. <artifactId>maven-compiler-plugin</artifactId>
  230. <version>3.1</version>
  231. <configuration>
  232. <source>1.8</source>
  233. <target>1.8</target>
  234. <encoding>UTF-8</encoding>
  235. </configuration>
  236. </plugin>
  237. <!-- 打包配置 -->
  238. <plugin>
  239. <groupId>org.apache.maven.plugins</groupId>
  240. <artifactId>maven-assembly-plugin</artifactId>
  241. <version>2.3</version>
  242. <configuration>
  243. <appendAssemblyId>false</appendAssemblyId>
  244. <descriptorRefs>
  245. <descriptorRef>jar-with-dependencies</descriptorRef>
  246. </descriptorRefs>
  247. <archive>
  248. <!-- jar包主方法 -->
  249. <manifest>
  250. <mainClass>cn.com.zte.aip.controller.Main</mainClass>
  251. </manifest>
  252. <manifestEntries>
  253. <Permissions>all-permissions</Permissions>
  254. <Codebase>*</Codebase>
  255. <Title>gui</Title>
  256. <Vendor>xxx</Vendor>
  257. <Application-Name>gui</Application-Name>
  258. <Application-Library-Allowable-Codebase>*</Application-Library-Allowable-Codebase>
  259. <Caller-Allowable-Codebase>*</Caller-Allowable-Codebase>
  260. </manifestEntries>
  261. </archive>
  262. </configuration>
  263. <executions>
  264. <execution>
  265. <id>make-assembly</id>
  266. <phase>package</phase>
  267. <goals>
  268. <goal>assembly</goal>
  269. </goals>
  270. </execution>
  271. </executions>
  272. </plugin>
  273. <!-- plugin配置 -->
  274. <plugin>
  275. <groupId>org.apache.maven.plugins</groupId>
  276. <artifactId>maven-jarsigner-plugin</artifactId>
  277. <version>1.4</version>
  278. <executions>
  279. <execution>
  280. <id>sign</id>
  281. <goals>
  282. <goal>sign</goal>
  283. </goals>
  284. <phase>package</phase>
  285. <inherited>true</inherited>
  286. <configuration>
  287. <includes>
  288. <include>${project.build.outputDirectory}/dataset_manager_gui*.jar</include>
  289. </includes>
  290. <removeExistingSignatures>true</removeExistingSignatures>
  291. <keystore>${keystore.filename}</keystore>
  292. <storepass>${keystore.storepass}</storepass>
  293. <keypass>${keystore.keypass}</keypass>
  294. <alias>${keystore.alias}</alias>
  295. </configuration>
  296. </execution>
  297. </executions>
  298. </plugin>
  299. </plugins>
  300. </build>
  301. <reporting>
  302. <plugins>
  303. <plugin>
  304. <groupId>org.apache.maven.plugins</groupId>
  305. <artifactId>maven-pmd-plugin</artifactId>
  306. <version>3.9.0</version>
  307. <configuration>
  308. <rulesets>
  309. <ruleset>./src/main/resources/pmd-rules/rules.xml</ruleset>
  310. </rulesets>
  311. </configuration>
  312. </plugin>
  313. </plugins>
  314. </reporting>
  315. </project>

pom格式的更多相关文章

  1. Maven 使用介绍

    1,创建Project 先去官方网站下载一个最新版本http://maven.apache.org/download.cgi. 下载后解压,使用之前最好先将maven的bin目录设置到path环境变量 ...

  2. 剑指架构师系列-持续集成之Maven实现项目的编译、发布和部署

    Maven组织项目进行编译.部署 Maven项目基本的结构说明如下: mazhi  // 控制所有荐的编译.部署.发布 mazhi-app-parent  // 项目的父项目,有一些公共的设置可以被子 ...

  3. Gradle 1.12用户指南翻译——第五十章. 依赖管理

    本文由CSDN博客貌似掉线翻译,其他章节的翻译请参见:http://blog.csdn.net/column/details/gradle-translation.html翻译项目请关注Github上 ...

  4. Maven多项目继承:dependencyManagement scope=import

    maven的多项目结构中,可以使用parent定义起父项目,从而从父项目中继承依赖等属性.但是美中不足,maven只能单继承,即一个项目只能使用parent标签定一个父级项目. maven2.9之后的 ...

  5. Maven 环境搭建及使用(win10)

    最近由于公司项目需要,学习了一下Maven 环境的配置.这里把配置步骤和简单的操作做一个汇总. 一.Maven环境的搭建 1.配置java环境(这里不详述过程,可参考:http://www.cnblo ...

  6. maven运行时的配置及命令详解

      上面是指定端口运行程序的,也可以先指定好,直接在上面的地方写jettty:run           当然,如果你是在控制台运行且安装了maven,直接可以进入项目的文件中:mvn jetty:r ...

  7. maven的小知识

    一.下载及安装 1.1 下载maven 3.1.1 先到官网http://maven.apache.org/download.cgi 下载最新版本(目前是3.1.1 ),下载完成后,解压到某个目录(本 ...

  8. Maven使用(转)

    说明:文章转自http://www.cnblogs.com/JeffreySun/archive/2013/03/14/2960573.html 创建project 先去官方网站下载一个最新版本htt ...

  9. springboot的第一节课

    快速开始spring boot应用 官方向导搭建boot应用 地址:http://start.spring.io/ 设置项目属性: 3.解压,拷贝到工作空间,导入maven项目 4.写Controll ...

随机推荐

  1. oracle中delete、truncate、drop的区别

    oracle中delete.truncate.drop的区别 标签: deleteoracletable存储 2012-05-23 15:12 7674人阅读 评论(0) 收藏 举报  分类: ora ...

  2. WPF Demo19 命令、UC

    命令系统的基本元素和关系WPF命令系统的组成要素:A.命令(command):WPF命令实际上就是实习了ICommand接口的类.平时使用最多的就是RoutedCommand类.B.命令源(comma ...

  3. spring boot 热更新配置

    maven添加 spring-boot-devtools 允许自动构建 设置里面,搜索compiler,在Build,Execution,Deployment里面勾选Build project aut ...

  4. 解决下载经过GZip压缩后的网页乱码问题

    目前很多网站默认采用GZip压缩,如果不进行解压缩,下载后生成的html页面打开后会出现中文乱码 乱码前: string url = "http://quote.eastmoney.com/ ...

  5. static link:关于gcc连接静态库的几种方式

    开发一个应用程序不可避免要使用多个第三方库(library).默认情况下,gcc采用动态连接的方式连接第三方库,比如指定-lpng,连接程序就会去找libpng.so. gcc提供了一个-static ...

  6. PAT 乙级 1031 查验身份证(15) C++版

    1031. 查验身份证(15) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 CHEN, Yue 一个合法的身份证号码由17位地区. ...

  7. itertools库中product函数用法 (即可以随机出所有组合,因果图那样的)

  8. 服务注册发现consul之三:服务发现比较:Consul vs Zookeeper vs Etcd vs Eureka

    这里就平时经常用到的服务发现的产品进行下特性的对比,首先看下结论: Feature Consul zookeeper etcd euerka 服务健康检查 服务状态,内存,硬盘等 (弱)长连接,kee ...

  9. php的基本内容

    php是一门后台语言,不能直接用浏览器打开,浏览器是他的载体, php的环境时apache,我们现在用的时phpstudy的继承环境,文件目录应放在apache中的www的根目录下: js的环境为no ...

  10. linux下新建(touch)\复制(cp)\剪切(mv)\删除(rm)文件

    touch :新建多个文件,中间用空格隔开 touch file1 file2 cp: mv:剪切 rm:删除文件