1
0

pom.xml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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. <parent>
  4. <artifactId>opencron</artifactId>
  5. <groupId>org.opencron</groupId>
  6. <version>1.1.0-RELEASE</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <artifactId>opencron-agent</artifactId>
  10. <packaging>jar</packaging>
  11. <name>opencron-agent</name>
  12. <dependencies>
  13. <dependency>
  14. <groupId>org.opencron</groupId>
  15. <artifactId>opencron-common</artifactId>
  16. <exclusions>
  17. <!-- Spring -->
  18. <exclusion>
  19. <groupId>org.springframework</groupId>
  20. <artifactId>spring-core</artifactId>
  21. </exclusion>
  22. <exclusion>
  23. <groupId>org.springframework</groupId>
  24. <artifactId>spring-beans</artifactId>
  25. </exclusion>
  26. <exclusion>
  27. <groupId>org.springframework</groupId>
  28. <artifactId>spring-context</artifactId>
  29. </exclusion>
  30. <exclusion>
  31. <groupId>org.springframework</groupId>
  32. <artifactId>spring-expression</artifactId>
  33. </exclusion>
  34. <exclusion>
  35. <groupId>org.springframework</groupId>
  36. <artifactId>spring-orm</artifactId>
  37. </exclusion>
  38. <exclusion>
  39. <groupId>org.springframework</groupId>
  40. <artifactId>spring-jdbc</artifactId>
  41. </exclusion>
  42. <exclusion>
  43. <groupId>org.springframework</groupId>
  44. <artifactId>spring-web</artifactId>
  45. </exclusion>
  46. <exclusion>
  47. <groupId>org.springframework</groupId>
  48. <artifactId>spring-test</artifactId>
  49. </exclusion>
  50. <exclusion>
  51. <groupId>javassist</groupId>
  52. <artifactId>javassist</artifactId>
  53. </exclusion>
  54. <exclusion>
  55. <groupId>org.apache.commons</groupId>
  56. <artifactId>commons-email</artifactId>
  57. </exclusion>
  58. <exclusion>
  59. <groupId>org.hibernate</groupId>
  60. <artifactId>hibernate-core</artifactId>
  61. </exclusion>
  62. <exclusion>
  63. <groupId>org.hibernate</groupId>
  64. <artifactId>hibernate-ehcache</artifactId>
  65. </exclusion>
  66. <exclusion>
  67. <groupId>org.aspectj</groupId>
  68. <artifactId>aspectjweaver</artifactId>
  69. </exclusion>
  70. <exclusion>
  71. <groupId>net.spy</groupId>
  72. <artifactId>spymemcached</artifactId>
  73. </exclusion>
  74. <exclusion>
  75. <groupId>dom4j</groupId>
  76. <artifactId>dom4j</artifactId>
  77. </exclusion>
  78. <exclusion>
  79. <groupId>net.sf.json-lib</groupId>
  80. <artifactId>json-lib</artifactId>
  81. </exclusion>
  82. <exclusion>
  83. <groupId>commons-httpclient</groupId>
  84. <artifactId>commons-httpclient</artifactId>
  85. </exclusion>
  86. <exclusion>
  87. <groupId>mysql</groupId>
  88. <artifactId>mysql-connector-java</artifactId>
  89. </exclusion>
  90. <exclusion>
  91. <groupId>com.mchange</groupId>
  92. <artifactId>c3p0</artifactId>
  93. </exclusion>
  94. <!-- servlet配置开始 不参与打包 -->
  95. <exclusion>
  96. <groupId>javax.servlet</groupId>
  97. <artifactId>javax.servlet-api</artifactId>
  98. </exclusion>
  99. <exclusion>
  100. <groupId>jstl</groupId>
  101. <artifactId>jstl</artifactId>
  102. </exclusion>
  103. <exclusion>
  104. <groupId>com.alibaba</groupId>
  105. <artifactId>druid</artifactId>
  106. </exclusion>
  107. <exclusion>
  108. <groupId>cglib</groupId>
  109. <artifactId>cglib-nodep</artifactId>
  110. </exclusion>
  111. <exclusion>
  112. <groupId>quartz</groupId>
  113. <artifactId>quartz</artifactId>
  114. </exclusion>
  115. <exclusion>
  116. <groupId>commons-beanutils</groupId>
  117. <artifactId>commons-beanutils</artifactId>
  118. </exclusion>
  119. <exclusion>
  120. <groupId>commons-fileupload</groupId>
  121. <artifactId>commons-fileupload</artifactId>
  122. </exclusion>
  123. <exclusion>
  124. <groupId>org.springframework</groupId>
  125. <artifactId>spring-webmvc</artifactId>
  126. </exclusion>
  127. </exclusions>
  128. </dependency>
  129. <!--<dependency>
  130. <groupId>org.hyperic</groupId>
  131. <artifactId>sigar</artifactId>
  132. <version>1.6.5.132-6</version>
  133. </dependency>-->
  134. </dependencies>
  135. <build>
  136. <finalName>${project.artifactId}</finalName>
  137. <plugins>
  138. <plugin>
  139. <groupId>org.apache.maven.plugins</groupId>
  140. <artifactId>maven-assembly-plugin</artifactId>
  141. <version>2.6</version>
  142. <configuration>
  143. <descriptors>
  144. <descriptor>assembly.xml</descriptor>
  145. </descriptors>
  146. </configuration>
  147. <executions>
  148. <execution>
  149. <id>make-assembly</id>
  150. <phase>install</phase>
  151. <goals>
  152. <goal>single</goal>
  153. </goals>
  154. </execution>
  155. </executions>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.apache.maven.plugins</groupId>
  159. <artifactId>maven-compiler-plugin</artifactId>
  160. <version>3.1</version>
  161. <configuration>
  162. <source>1.6</source>
  163. <target>1.6</target>
  164. </configuration>
  165. </plugin>
  166. <plugin>
  167. <groupId>org.apache.maven.plugins</groupId>
  168. <artifactId>maven-surefire-plugin</artifactId>
  169. <version>2.12.4</version>
  170. <configuration>
  171. <skip>true</skip>
  172. </configuration>
  173. </plugin>
  174. <plugin>
  175. <groupId>org.apache.maven.plugins</groupId>
  176. <artifactId>maven-dependency-plugin</artifactId>
  177. <version>2.5.1</version>
  178. <configuration>
  179. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  180. <excludeTransitive>false</excludeTransitive>
  181. <stripVersion>true</stripVersion>
  182. </configuration>
  183. </plugin>
  184. <!-- jar plugin -->
  185. <plugin>
  186. <groupId>org.apache.maven.plugins</groupId>
  187. <artifactId>maven-jar-plugin</artifactId>
  188. <version>2.4</version>
  189. <configuration>
  190. <archive>
  191. <manifest>
  192. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  193. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  194. <addClasspath>true</addClasspath>
  195. <classpathPrefix>../lib</classpathPrefix>
  196. <mainClass>org.opencron.agent.Bootstrap</mainClass>
  197. </manifest>
  198. </archive>
  199. </configuration>
  200. </plugin>
  201. </plugins>
  202. </build>
  203. </project>