pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <artifactId>com.creditease.uav.agent.buildComponent</artifactId>
  5. <groupId>com.creditease.moniter</groupId>
  6. <version>1.0</version>
  7. <modelVersion>4.0.0</modelVersion>
  8. <packaging>pom</packaging>
  9. <modules>
  10. <module>../com.creditease.uav.helper</module>
  11. <module>../com.creditease.uav.logging</module>
  12. <module>../com.creditease.uav.base</module>
  13. <module>../com.creditease.uav.httpasync</module>
  14. <module>../com.creditease.uav.agent</module>
  15. <module>../com.creditease.uav.agent.heartbeat</module>
  16. <module>../com.creditease.uav.fastjson</module>
  17. <module>../com.creditease.uav.mq</module>
  18. <module>../com.creditease.uav.cache.redis</module>
  19. <module>../com.creditease.uav.notifymanager</module>
  20. <module>../com.creditease.uav.messaging</module>
  21. <module>../com.creditease.uav.upgrade</module>
  22. <module>../com.creditease.uav.collect</module>
  23. <module>../com.creditease.uav.elasticsearch.client</module>
  24. <module>../com.creditease.uav.threadanalysis</module>
  25. <module>../org.uavstack.resources.common</module>
  26. </modules>
  27. <build>
  28. <plugins>
  29. <plugin>
  30. <groupId>org.jasig.maven</groupId>
  31. <artifactId>maven-notice-plugin</artifactId>
  32. <version>1.0.6.1</version>
  33. <configuration>
  34. <generateChildNotices>false</generateChildNotices>
  35. <noticeTemplate>https://source.jasig.org/licenses/NOTICE.template</noticeTemplate>
  36. <licenseMapping>
  37. <param>https://source.jasig.org/licenses/license-mappings.xml</param>
  38. </licenseMapping>
  39. </configuration>
  40. </plugin>
  41. <plugin>
  42. <groupId>org.apache.maven.plugins</groupId>
  43. <artifactId>maven-antrun-plugin</artifactId>
  44. <version>1.8</version>
  45. <executions>
  46. <execution>
  47. <phase>install</phase>
  48. <goals>
  49. <goal>run</goal>
  50. </goals>
  51. <configuration>
  52. <tasks>
  53. <echo>Building MonitorAgent START....</echo>
  54. <delete dir="target/build" />
  55. <mkdir dir="target/build/lib" />
  56. <copy todir="target/build/lib" >
  57. <fileset file="../com.creditease.uav.agent/target/com.creditease.uav.agent-1.0.jar" ></fileset>
  58. <fileset file="../com.creditease.uav.agent/target/lib/*.jar" ></fileset>
  59. <fileset file="../com.creditease.uav.upgrade/target/com.creditease.uav.upgrade-1.0.jar"></fileset>
  60. <fileset file="../com.creditease.uav.agent.buildComponent/exlib/*.dll" ></fileset>
  61. <fileset file="../com.creditease.uav.agent.buildComponent/exlib/npf.sys" ></fileset>
  62. <!-- additional feature jar -->
  63. <fileset file="../com.creditease.uav.threadanalysis/target/com.creditease.uav.threadanalysis-1.0.jar" ></fileset>
  64. </copy>
  65. <copy todir="target/build/config" >
  66. <fileset dir="config" ></fileset>
  67. <fileset file="../com.creditease.uav.upgrade/config/*.properties"></fileset>
  68. </copy>
  69. <copy todir="target/build/bin" >
  70. <fileset dir="bin" ></fileset>
  71. <fileset file="../com.creditease.uav.base/target/com.creditease.uav.base-1.0-boot.jar" ></fileset>
  72. <fileset file="../com.creditease.uav.upgrade/bin/*.*"></fileset>
  73. </copy>
  74. <copy todir="target/tempbuild/uavagent" >
  75. <fileset dir="target/build"></fileset>
  76. </copy>
  77. <tstamp>
  78. <format property="current.date.time" pattern="yyyyMMddHHmmss"/>
  79. </tstamp>
  80. <zip destfile="target/uavagent_${version}_${current.date.time}.zip">
  81. <zipfileset dir="target/tempbuild"></zipfileset>
  82. </zip>
  83. <checksum file="target/uavagent_${version}_${current.date.time}.zip" forceOverwrite="yes" algorithm="MD5" fileext=".MD5"></checksum>
  84. <delete dir="target/tempbuild" />
  85. <echo>Building MonitorAgent END</echo>
  86. </tasks>
  87. </configuration>
  88. </execution>
  89. </executions>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.jasig.maven</groupId>
  93. <artifactId>maven-notice-plugin</artifactId>
  94. <version>1.0.6.1</version>
  95. <configuration>
  96. <generateChildNotices>false</generateChildNotices>
  97. <noticeTemplate>https://source.jasig.org/licenses/NOTICE.template</noticeTemplate>
  98. <licenseMapping>
  99. <param>license-mappings.xml</param>
  100. <param>https://source.jasig.org/licenses/license-mappings.xml</param>
  101. </licenseMapping>
  102. </configuration>
  103. </plugin>
  104. </plugins>
  105. </build>
  106. </project>