pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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. >
  6. <artifactId>com.creditease.uav.monitorframework.buildComponent</artifactId>
  7. <groupId>com.creditease.moniter</groupId>
  8. <version>1.0</version>
  9. <modelVersion>4.0.0</modelVersion>
  10. <packaging>pom</packaging>
  11. <modules>
  12. <module>../com.creditease.uav.helper</module>
  13. <module>../com.creditease.uav.fastjson</module>
  14. <module>../com.creditease.uav.monitorframework</module>
  15. <module>../com.creditease.uav.tomcat.plus.core</module>
  16. <module>../com.creditease.uav.mock.sl4j</module>
  17. <module>../com.creditease.uav.annoscan</module>
  18. <module>../com.creditease.uav.loghook</module>
  19. <module>../com.creditease.uav.hook.httpclients</module>
  20. <module>../com.creditease.uav.monitorframework.dproxy</module>
  21. <module>../com.creditease.uav.hook.jdbc</module>
  22. <module>../com.creditease.uav.hook.jaxws</module>
  23. <module>../com.creditease.uav.hook.redis</module>
  24. <module>../com.creditease.uav.hook.mongoclients</module>
  25. <module>../com.creditease.uav.hook.mq</module>
  26. <module>../com.creditease.uav.monitorframework.agent</module>
  27. <module>../com.creditease.uav.monitorframework.apm</module>
  28. <module>../com.creditease.uav.logging</module>
  29. <module>../com.creditease.uav.base</module>
  30. <module>../com.creditease.uav.cache.redis</module>
  31. <module>../com.creditease.uav.ttl</module>
  32. <module>../com.creditease.uav.hook.dubbo</module>
  33. <module>../com.creditease.uav.jetty.plus.core</module>
  34. <module>../com.creditease.uav.hook.esclient</module>
  35. </modules>
  36. <build>
  37. <plugins>
  38. <plugin>
  39. <groupId>org.apache.maven.plugins</groupId>
  40. <artifactId>maven-antrun-plugin</artifactId>
  41. <version>1.8</version>
  42. <executions>
  43. <execution>
  44. <phase>install</phase>
  45. <goals>
  46. <goal>run</goal>
  47. </goals>
  48. <configuration>
  49. <tasks>
  50. <echo>Building MonitorFramework START....</echo>
  51. <delete dir="target/build" />
  52. <!-- UAV code for JDK -->
  53. <mkdir dir="target/build/com.creditease.uav.jdk" />
  54. <copy todir="target/build/com.creditease.uav.jdk" >
  55. <fileset file="../com.creditease.uav.ttl/target/com.creditease.uav.ttl-2.1.0.jar"></fileset>
  56. </copy>
  57. <!-- UAV MONITORFRAMEWORK for JEE APP SERVER -->
  58. <mkdir dir="target/build/com.creditease.uav" />
  59. <copy todir="target/build/com.creditease.uav" >
  60. <fileset file="../com.creditease.uav.monitorframework/target/com.creditease.uav.monitorframework-1.0.jar" ></fileset>
  61. <fileset file="../com.creditease.uav.helper/target/com.creditease.uav.helper-1.0.jar" ></fileset>
  62. <fileset file="../com.creditease.uav.fastjson/target/com.creditease.uav.fastjson-1.2.6.jar" ></fileset>
  63. <fileset file="../com.creditease.uav.annoscan/target/com.creditease.uav.annoscan-1.0.jar"></fileset>
  64. <fileset file="../com.creditease.uav.logging/target/com.creditease.uav.logging-1.0.jar"></fileset>
  65. <fileset file="../com.creditease.uav.monitorframework.dproxy/target/com.creditease.uav.monitorframework.dproxy-1.0-dproxy.jar"></fileset>
  66. <fileset file="../com.creditease.uav.monitorframework.dproxy/target/com.creditease.uav.monitorframework.dproxy-1.0-webservice.jar"></fileset>
  67. <fileset dir="config" ></fileset>
  68. </copy>
  69. <delete >
  70. <fileset dir="target/build/com.creditease.uav" includes="slf4j-api*.jar" />
  71. <fileset dir="target/build/com.creditease.uav" includes="log4j-*.jar" />
  72. </delete>
  73. <copy todir="target/build/com.creditease.uav" >
  74. <fileset file="../com.creditease.uav.monitorframework.apm/target/com.creditease.uav.monitorframework.apm-1.0.jar"></fileset>
  75. <fileset file="../com.creditease.uav.monitorframework.apm/target/lib/UserAgentUtils-1.20.jar" ></fileset>
  76. <fileset file="../com.creditease.uav.monitorframework.apm/jslib/com.creditease.uav.uemhook.js" ></fileset>
  77. </copy>
  78. <move file="target/build/com.creditease.uav/UserAgentUtils-1.20.jar" tofile="target/build/com.creditease.uav/com.creditease.uav.uautils-1.20.jar" />
  79. <move file="target/build/com.creditease.uav/com.creditease.uav.uemhook.js" tofile="target/build/com.creditease.uav/com.creditease.uav.uemhook-1.0.jsx" />
  80. <!-- UAV Hook System for APP FRAMEWORK -->
  81. <mkdir dir="target/build/com.creditease.uav.appfrk" />
  82. <copy todir="target/build/com.creditease.uav.appfrk" >
  83. <fileset file="../com.creditease.uav.loghook/target/com.creditease.uav.loghook-1.0.jar" ></fileset>
  84. <fileset file="../com.creditease.uav.hook.httpclients/target/com.creditease.uav.hook.httpclients-1.0-sync.jar" ></fileset>
  85. <fileset file="../com.creditease.uav.hook.httpclients/target/com.creditease.uav.hook.httpclients-1.0-sync3.jar" ></fileset>
  86. <fileset file="../com.creditease.uav.hook.httpclients/target/com.creditease.uav.hook.httpclients-1.0-async.jar" ></fileset>
  87. <fileset file="../com.creditease.uav.hook.jdbc/target/com.creditease.uav.hook.jdbc-1.0.jar" ></fileset>
  88. <fileset file="../com.creditease.uav.hook.jaxws/target/com.creditease.uav.hook.jaxws-1.0.jar"></fileset>
  89. <fileset file="../com.creditease.uav.hook.redis/target/com.creditease.uav.hook.redis-1.0-jedis.jar" ></fileset>
  90. <fileset file="../com.creditease.uav.hook.redis/target/com.creditease.uav.hook.redis-1.0-lettuce.jar" ></fileset>
  91. <fileset file="../com.creditease.uav.hook.redis/target/com.creditease.uav.hook.redis-1.0-lettuce5x.jar" ></fileset>
  92. <fileset file="../com.creditease.uav.hook.redis/target/com.creditease.uav.hook.redis-1.0-aredis.jar" ></fileset>
  93. <fileset file="../com.creditease.uav.hook.mongoclients/target/com.creditease.uav.hook.mongoclients-1.0.jar" ></fileset>
  94. <fileset file="../com.creditease.uav.hook.mq/target/com.creditease.uav.hook.mq-1.0-rabbitmq.jar" ></fileset>
  95. <fileset file="../com.creditease.uav.hook.mq/target/com.creditease.uav.hook.mq-1.0-rocketmq.jar" ></fileset>
  96. <fileset file="../com.creditease.uav.hook.dubbo/target/com.creditease.uav.hook.dubbo-1.0.jar" ></fileset>
  97. <fileset file="../com.creditease.uav.hook.esclient/target/com.creditease.uav.hook.esclient-1.0.jar"></fileset>
  98. <fileset file="../com.creditease.uav.hook.mq/target/com.creditease.uav.hook.mq-1.0-kafka.jar" ></fileset>
  99. </copy>
  100. <!-- UAV BIN -->
  101. <copy todir="target/build/bin" >
  102. <fileset dir="bin" ></fileset>
  103. </copy>
  104. <!-- UAV MSCP SUPPORT -->
  105. <mkdir dir="target/build/com.creditease.uav.mscp" />
  106. <mkdir dir="target/build/com.creditease.uav.mscp/common" />
  107. <copy todir="target/build/com.creditease.uav.mscp/common" >
  108. <fileset file="../com.creditease.uav.monitorframework.agent/target/com.creditease.uav.monitorframework.agent-1.0-mscpplus.jar" ></fileset>
  109. </copy>
  110. <!-- UAV TOMCAT SUPPORT -->
  111. <mkdir dir="target/build/com.creditease.uav.tomcat" />
  112. <mkdir dir="target/build/com.creditease.uav.tomcat/common" />
  113. <copy todir="target/build/com.creditease.uav.tomcat/common" >
  114. <fileset file="../com.creditease.uav.tomcat.plus.core/target/com.creditease.uav.tomcat.plus.core-1.0.jar" ></fileset>
  115. </copy>
  116. <!-- UAV JETTY SUPPORT -->
  117. <mkdir dir="target/build/com.creditease.uav.jetty" />
  118. <mkdir dir="target/build/com.creditease.uav.jetty/common" />
  119. <copy todir="target/build/com.creditease.uav.jetty/common" >
  120. <fileset file="../com.creditease.uav.jetty.plus.core/target/com.creditease.uav.jetty.plus.core-1.0.jar" ></fileset>
  121. </copy>
  122. <!-- UAV EXTLIB SUPPORT -->
  123. <mkdir dir="target/build/com.creditease.uav.extlib" />
  124. <copy todir="target/build/com.creditease.uav.extlib" >
  125. <fileset dir="extlib"></fileset>
  126. </copy>
  127. <!-- UAV MonitorFramework 2.0 SUPPORT -->
  128. <mkdir dir="target/build/com.creditease.uav.agent" />
  129. <copy todir="target/build/com.creditease.uav.agent" >
  130. <fileset file="../com.creditease.uav.monitorframework.agent/target/com.creditease.uav.monitorframework.agent-1.0-agent.jar" ></fileset>
  131. </copy>
  132. <mkdir dir="target/build/com.creditease.uav.adaptor" />
  133. <copy todir="target/build/com.creditease.uav.adaptor" >
  134. <fileset file="../com.creditease.uav.monitorframework.agent/target/com.creditease.uav.monitorframework.agent-1.0-adaptor.jar" ></fileset>
  135. </copy>
  136. <!-- ZIP -->
  137. <copy todir="target/tempbuild/uavmof" >
  138. <fileset dir="target/build"></fileset>
  139. </copy>
  140. <tstamp>
  141. <format property="current.date.time" pattern="yyyyMMddHHmmss"/>
  142. </tstamp>
  143. <zip destfile="target/uavmof_${version}_${current.date.time}.zip">
  144. <zipfileset dir="target/tempbuild"></zipfileset>
  145. </zip>
  146. <checksum file="target/uavmof_${version}_${current.date.time}.zip" forceOverwrite="yes" algorithm="MD5" fileext=".MD5"></checksum>
  147. <delete dir="target/tempbuild" />
  148. <echo>Building MonitorFramework END</echo>
  149. </tasks>
  150. </configuration>
  151. </execution>
  152. </executions>
  153. </plugin>
  154. <plugin>
  155. <groupId>org.jasig.maven</groupId>
  156. <artifactId>maven-notice-plugin</artifactId>
  157. <version>1.0.6.1</version>
  158. <configuration>
  159. <generateChildNotices>false</generateChildNotices>
  160. <noticeTemplate>https://source.jasig.org/licenses/NOTICE.template</noticeTemplate>
  161. <licenseMapping>
  162. <param>license-mappings.xml</param>
  163. <param>https://source.jasig.org/licenses/license-mappings.xml</param>
  164. </licenseMapping>
  165. </configuration>
  166. </plugin>
  167. </plugins>
  168. </build>
  169. </project>