pom.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.uas.huid</groupId>
  5. <artifactId>huid_attch</artifactId>
  6. <packaging>jar</packaging>
  7. <version>1.0.0</version>
  8. <name>huid attch</name>
  9. <url>http://maven.apache.org</url>
  10. <properties>
  11. <static.prefix.skip>true</static.prefix.skip>
  12. </properties>
  13. <profiles>
  14. <profile>
  15. <id>prod</id>
  16. </profile>
  17. </profiles>
  18. <build>
  19. <finalName>${project.artifactId}</finalName>
  20. <sourceDirectory>src</sourceDirectory>
  21. <resources>
  22. <resource>
  23. <directory>${basedir}/src</directory>
  24. <filtering>true</filtering>
  25. <includes>
  26. <include>**/*.properties</include>
  27. <include>**/*.xml</include>
  28. </includes>
  29. </resource>
  30. </resources>
  31. <!-- 获取svn信息 -->
  32. <plugins>
  33. <plugin>
  34. <groupId>pl.project13.maven</groupId>
  35. <artifactId>git-commit-id-plugin</artifactId>
  36. <version>2.2.5</version>
  37. <executions>
  38. <execution>
  39. <goals>
  40. <goal>revision</goal>
  41. </goals>
  42. </execution>
  43. </executions>
  44. <configuration>
  45. <dateFormat>yyyyMMddHHmmss</dateFormat>
  46. </configuration>
  47. </plugin>
  48. <plugin>
  49. <groupId>org.apache.maven.plugins</groupId>
  50. <artifactId>maven-compiler-plugin</artifactId>
  51. <version>3.5.1</version>
  52. <configuration>
  53. <source>1.7</source>
  54. <target>1.7</target>
  55. <encoding>UTF-8</encoding>
  56. <compilerArgs>
  57. <arg>-Xlint:unchecked</arg>
  58. <arg>-Xlint:deprecation</arg>
  59. <arg>-bootclasspath</arg>
  60. <arg>${env.JAVA_HOME}/jre/lib/rt.jar</arg>
  61. <arg>-extdirs</arg>
  62. <!-- windows下用分号隔开 -->
  63. <arg>${env.JAVA_HOME}/jre/lib:${basedir}/lib</arg>
  64. </compilerArgs>
  65. </configuration>
  66. </plugin>
  67. <plugin>
  68. <!-- Build an executable JAR -->
  69. <groupId>org.apache.maven.plugins</groupId>
  70. <artifactId>maven-jar-plugin</artifactId>
  71. <version>3.1.0</version>
  72. <configuration>
  73. <archive>
  74. <manifest>
  75. <addClasspath>true</addClasspath>
  76. <classpathPrefix>lib/</classpathPrefix>
  77. <mainClass>com.uas.main.Main</mainClass>
  78. </manifest>
  79. </archive>
  80. </configuration>
  81. </plugin>
  82. </plugins>
  83. </build>
  84. <repositories>
  85. <repository>
  86. <snapshots>
  87. <enabled>false</enabled>
  88. </snapshots>
  89. <id>aliyun</id>
  90. <name>aliyun</name>
  91. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  92. </repository>
  93. <repository>
  94. <snapshots>
  95. <enabled>false</enabled>
  96. </snapshots>
  97. <id>ubtob-release</id>
  98. <name>ubtob-release</name>
  99. <url>http://maven.ubtob.com/artifactory/libs-release-local</url>
  100. </repository>
  101. <repository>
  102. <snapshots>
  103. <enabled>true</enabled>
  104. <updatePolicy>always</updatePolicy>
  105. </snapshots>
  106. <id>ubtob-snapshot</id>
  107. <name>ubtob-snapshot</name>
  108. <url>http://maven.ubtob.com/artifactory/libs-snapshot-local</url>
  109. </repository>
  110. </repositories>
  111. <distributionManagement>
  112. <!-- 发布release仓库 -->
  113. <repository>
  114. <id>platform-release</id>
  115. <name>platform-release</name>
  116. <url>http://10.10.101.21:8081/artifactory/libs-release-local</url>
  117. </repository>
  118. <!-- 发布快照版本 -->
  119. <snapshotRepository>
  120. <id>platform-snapshots</id>
  121. <name>platform-snapshots</name>
  122. <url>http://10.10.101.21:8081/artifactory/libs-snapshot-local</url>
  123. </snapshotRepository>
  124. </distributionManagement>
  125. </project>