pom.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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>io.jpress</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>io.jpress</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>io.jpress</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>io.jpress</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>io.jpress</groupId>
  43. <artifactId>jpress-web-template-jblog</artifactId>
  44. <version>1.0</version>
  45. <type>war</type>
  46. <scope>compile</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>io.jpress</groupId>
  50. <artifactId>jpress-web-template-usoftchina</artifactId>
  51. <version>1.0</version>
  52. <type>war</type>
  53. <scope>compile</scope>
  54. </dependency>
  55. </dependencies>
  56. <build>
  57. <finalName>${project.artifactId}-${project.version}</finalName>
  58. <plugins>
  59. <plugin>
  60. <artifactId>maven-compiler-plugin</artifactId>
  61. <configuration>
  62. <encoding>UTF-8</encoding>
  63. </configuration>
  64. </plugin>
  65. <plugin>
  66. <groupId>com.uas.plugins</groupId>
  67. <artifactId>monitor-maven-plugin</artifactId>
  68. <version>0.0.1</version>
  69. <configuration>
  70. <interval>3000</interval>
  71. <observers>
  72. <observer>
  73. <scanDir>../jpress-web-template-usoftchina/src/main/webapp/templates/usoftchina</scanDir>
  74. <copyDir>${basedir}/target/${project.artifactId}-${project.version}/templates/usoftchina</copyDir>
  75. </observer>
  76. <observer>
  77. <scanDir>../jpress-web-admin/src/main/webapp/WEB-INF/admin</scanDir>
  78. <copyDir>${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/admin</copyDir>
  79. </observer>
  80. </observers>
  81. </configuration>
  82. <executions>
  83. <execution>
  84. <phase>validate</phase>
  85. <goals>
  86. <goal>monitor</goal>
  87. </goals>
  88. </execution>
  89. </executions>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.apache.tomcat.maven</groupId>
  93. <artifactId>tomcat7-maven-plugin</artifactId>
  94. <version>2.2</version>
  95. <configuration>
  96. <port>8080</port>
  97. <path>/jpress</path>
  98. <uriEncoding>UTF-8</uriEncoding>
  99. <server>tomcat7</server>
  100. <contextReloadable>true</contextReloadable>
  101. </configuration>
  102. </plugin>
  103. <plugin>
  104. <groupId>org.mortbay.jetty</groupId>
  105. <artifactId>maven-jetty-plugin</artifactId>
  106. <version>6.1.10</version>
  107. </plugin>
  108. <plugin>
  109. <groupId>org.apache.maven.plugins</groupId>
  110. <artifactId>maven-war-plugin</artifactId>
  111. <configuration>
  112. <packagingExcludes>WEB-INF/web.xml</packagingExcludes>
  113. <overlays>
  114. <overlay>
  115. <groupId>io.jpress</groupId>
  116. <artifactId>jpress-web-front</artifactId>
  117. </overlay>
  118. <overlay>
  119. <groupId>io.jpress</groupId>
  120. <artifactId>jpress-web-admin</artifactId>
  121. </overlay>
  122. <overlay>
  123. <groupId>io.jpress</groupId>
  124. <artifactId>jpress-web-template-jblog</artifactId>
  125. </overlay>
  126. <overlay>
  127. <groupId>io.jpress</groupId>
  128. <artifactId>jpress-web-template-usoftchina</artifactId>
  129. </overlay>
  130. </overlays>
  131. </configuration>
  132. </plugin>
  133. </plugins>
  134. </build>
  135. <distributionManagement>
  136. <!-- 发布release仓库 -->
  137. <repository>
  138. <id>platform-release</id>
  139. <name>platform-release</name>
  140. <url>http://113.105.74.141:8081/artifactory/libs-release-local</url>
  141. </repository>
  142. <!-- 发布快照版本 -->
  143. <snapshotRepository>
  144. <id>platform-snapshots</id>
  145. <name>platform-snapshots</name>
  146. <url>http://113.105.74.141:8081/artifactory/libs-snapshot-local</url>
  147. </snapshotRepository>
  148. </distributionManagement>
  149. </project>