pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?xml version="1.0"?>
  2. <project
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  4. xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.uas.cms</groupId>
  8. <artifactId>jpress</artifactId>
  9. <version>1.0</version>
  10. </parent>
  11. <artifactId>jpress-web</artifactId>
  12. <name>jpress-web</name>
  13. <url>http://jpress.io</url>
  14. <packaging>war</packaging>
  15. <properties>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>com.uas.cms</groupId>
  22. <artifactId>jpress-web-core</artifactId>
  23. <version>1.0</version>
  24. <type>war</type>
  25. <scope>compile</scope>
  26. </dependency>
  27. <dependency>
  28. <groupId>com.uas.cms</groupId>
  29. <artifactId>jpress-web-admin</artifactId>
  30. <version>1.0</version>
  31. <type>war</type>
  32. <scope>compile</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.uas.cms</groupId>
  36. <artifactId>jpress-web-front</artifactId>
  37. <version>1.0</version>
  38. <type>war</type>
  39. <scope>compile</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.uas.cms</groupId>
  43. <artifactId>jpress-web-template-mallcms</artifactId>
  44. <version>1.0</version>
  45. <type>war</type>
  46. <scope>compile</scope>
  47. </dependency>
  48. </dependencies>
  49. <build>
  50. <finalName>${project.artifactId}-${project.version}</finalName>
  51. <plugins>
  52. <plugin>
  53. <artifactId>maven-compiler-plugin</artifactId>
  54. <configuration>
  55. <encoding>UTF-8</encoding>
  56. </configuration>
  57. </plugin>
  58. <plugin>
  59. <groupId>org.apache.tomcat.maven</groupId>
  60. <artifactId>tomcat7-maven-plugin</artifactId>
  61. <version>2.2</version>
  62. <configuration>
  63. <port>8080</port>
  64. <path>/jpress</path>
  65. <uriEncoding>UTF-8</uriEncoding>
  66. <server>tomcat7</server>
  67. <contextReloadable>true</contextReloadable>
  68. </configuration>
  69. </plugin>
  70. <plugin>
  71. <groupId>com.uas.plugins</groupId>
  72. <artifactId>monitor-maven-plugin</artifactId>
  73. <version>0.0.1</version>
  74. <configuration>
  75. <interval>3000</interval>
  76. <observers>
  77. <observer>
  78. <scanDir>../jpress-web-template-mallcms/src/main/webapp/templates/mallcms</scanDir>
  79. <copyDir>${basedir}/target/${project.artifactId}-${project.version}/templates/mallcms</copyDir>
  80. </observer>
  81. <observer>
  82. <scanDir>../jpress-web-admin/src/main/webapp/WEB-INF/admin</scanDir>
  83. <copyDir>${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/admin</copyDir>
  84. </observer>
  85. </observers>
  86. </configuration>
  87. <executions>
  88. <execution>
  89. <phase>validate</phase>
  90. <goals>
  91. <goal>monitor</goal>
  92. </goals>
  93. </execution>
  94. </executions>
  95. </plugin>
  96. <plugin>
  97. <groupId>org.apache.maven.plugins</groupId>
  98. <artifactId>maven-war-plugin</artifactId>
  99. <configuration>
  100. <encoding>utf-8</encoding>
  101. <packagingExcludes>WEB-INF/web.xml</packagingExcludes>
  102. <overlays>
  103. <overlay>
  104. <groupId>com.uas.cms</groupId>
  105. <artifactId>jpress-web-front</artifactId>
  106. </overlay>
  107. <overlay>
  108. <groupId>com.uas.cms</groupId>
  109. <artifactId>jpress-web-admin</artifactId>
  110. </overlay>
  111. <overlay>
  112. <groupId>com.uas.cms</groupId>
  113. <artifactId>jpress-web-template-mallcms</artifactId>
  114. </overlay>
  115. </overlays>
  116. </configuration>
  117. </plugin>
  118. </plugins>
  119. </build>
  120. <distributionManagement>
  121. <!-- 发布release仓库 -->
  122. <repository>
  123. <id>platform-release</id>
  124. <name>platform-release</name>
  125. <url>http://10.10.100.21:8081/artifactory/libs-release-local</url>
  126. </repository>
  127. <!-- 发布快照版本 -->
  128. <snapshotRepository>
  129. <id>platform-snapshots</id>
  130. <name>platform-snapshots</name>
  131. <url>http://10.10.100.21:8081/artifactory/libs-snapshot-local</url>
  132. </snapshotRepository>
  133. </distributionManagement>
  134. </project>