pom.xml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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.console.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.fastjson</module>
  11. <module>../com.creditease.uav.helper</module>
  12. <module>../com.creditease.uav.logging</module>
  13. <module>../com.creditease.uav.cache.redis</module>
  14. <module>../com.creditease.uav.base</module>
  15. <module>../com.creditease.uav.httpasync</module>
  16. <module>../com.creditease.uav.console</module>
  17. </modules>
  18. <build>
  19. <plugins>
  20. <plugin>
  21. <groupId>org.apache.maven.plugins</groupId>
  22. <artifactId>maven-antrun-plugin</artifactId>
  23. <version>1.8</version>
  24. <executions>
  25. <execution>
  26. <phase>install</phase>
  27. <goals>
  28. <goal>run</goal>
  29. </goals>
  30. <configuration>
  31. <tasks>
  32. <echo>Building UAV AppHub START....</echo>
  33. <delete dir="target/build" />
  34. <mkdir dir="target/build" />
  35. <unzip src="../com.creditease.uav.console/target/com.creditease.uav.console-1.0.war"
  36. dest="target/build/test_apphub">
  37. </unzip>
  38. <copy todir="target/build/pro_apphub">
  39. <fileset dir="target/build/test_apphub" >
  40. </fileset>
  41. </copy>
  42. <delete file="target/build/test_apphub/WEB-INF/web.xml" />
  43. <copy tofile="target/build/test_apphub/WEB-INF/web.xml" >
  44. <fileset file="config/web_test.xml" />
  45. </copy>
  46. <delete file="target/build/pro_apphub/WEB-INF/web.xml" />
  47. <copy tofile="target/build/pro_apphub/WEB-INF/web.xml" >
  48. <fileset file="config/web_pro.xml" />
  49. </copy>
  50. <delete file="target/build/test_apphub/uavapp_baseclassmgt/eshead/app.js" />
  51. <copy tofile="target/build/test_apphub/uavapp_baseclassmgt/eshead/app.js" >
  52. <fileset file="config/uavapp_baseclassmgt/eshead/app_test.js" />
  53. </copy>
  54. <delete file="target/build/pro_apphub/uavapp_baseclassmgt/eshead/app.js" />
  55. <copy tofile="target/build/pro_apphub/uavapp_baseclassmgt/eshead/app.js" >
  56. <fileset file="config/uavapp_baseclassmgt/eshead/app_pro.js" />
  57. </copy>
  58. <delete file="target/build/pro_apphub/uavapp_baseclassmgt/config.properties" />
  59. <copy tofile="target/build/pro_apphub/uavapp_baseclassmgt/config.properties" >
  60. <fileset file="config/uavapp_baseclassmgt/config_test.properties" />
  61. </copy>
  62. <delete file="target/build/pro_apphub/uavapp_baseclassmgt/config.properties" />
  63. <copy tofile="target/build/pro_apphub/uavapp_baseclassmgt/config.properties" >
  64. <fileset file="config/uavapp_baseclassmgt/config_pro.properties" />
  65. </copy>
  66. <mkdir dir="target/build/test" />
  67. <mkdir dir="target/build/pro" />
  68. <zip destfile="target/build/test/apphub.war" basedir="target/build/test_apphub" />
  69. <zip destfile="target/build/pro/apphub.war" basedir="target/build/pro_apphub" />
  70. <echo>Building UAV AppHub END</echo>
  71. </tasks>
  72. </configuration>
  73. </execution>
  74. </executions>
  75. </plugin>
  76. </plugins>
  77. </build>
  78. </project>