pom.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <artifactId>gs-docs</artifactId>
  5. <groupId>org.geoserver.en</groupId>
  6. <version>2.26-SNAPSHOT</version>
  7. <packaging>pom</packaging>
  8. <name>GeoServer Chinese Simplified Documentation</name>
  9. <description>GeoServer Chinese Simplified documentation</description>
  10. <licenses>
  11. <license>
  12. <name>Creative Commmons Attribution 4.0 International</name>
  13. <url>https://creativecommons.org/licenses/by/4.0/</url>
  14. </license>
  15. </licenses>
  16. <dependencies>
  17. </dependencies>
  18. <build>
  19. <plugins>
  20. <!-- documentation build -->
  21. <plugin>
  22. <artifactId>maven-antrun-plugin</artifactId>
  23. <version>3.1.0</version>
  24. <dependencies>
  25. <dependency>
  26. <groupId>org.apache.ant</groupId>
  27. <artifactId>ant</artifactId>
  28. <version>1.10.12</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>ant-contrib</groupId>
  32. <artifactId>ant-contrib</artifactId>
  33. <version>1.0b3</version>
  34. </dependency>
  35. </dependencies>
  36. <executions>
  37. <execution>
  38. <id>version</id>
  39. <phase>process-resources</phase>
  40. <configuration>
  41. <target>
  42. <copy file="../en/release/VERSION.txt" todir="target" filtering="true">
  43. <filterset begintoken="$${" endtoken="}">
  44. <filter token="project.version" value="${project.version}"/>
  45. <filter token="build.revision" value="${build.commit.id}"/>
  46. <filter token="build.branch" value="${build.branch}"/>
  47. <filter token="build.timestamp" value="${build.timestamp}"/>
  48. <filter token="build.hudsonId" value="${build.hudsonId}"/>
  49. </filterset>
  50. </copy>
  51. </target>
  52. </configuration>
  53. <goals>
  54. <goal>run</goal>
  55. </goals>
  56. </execution>
  57. <execution>
  58. <id>sphinx</id>
  59. <phase>compile</phase>
  60. <configuration>
  61. <target>
  62. <ant antfile="build.xml" dir="${basedir}" target="${target}">
  63. <property name="build.directory" value="${project.build.directory}"/>
  64. <property name="project.version" value="${project.version}"/>
  65. </ant>
  66. </target>
  67. </configuration>
  68. <goals>
  69. <goal>run</goal>
  70. </goals>
  71. </execution>
  72. </executions>
  73. </plugin>
  74. <plugin>
  75. <groupId>org.apache.maven.plugins</groupId>
  76. <artifactId>maven-assembly-plugin</artifactId>
  77. <version>3.2.0</version>
  78. <configuration>
  79. <finalName>geoserver-${project.version}</finalName>
  80. </configuration>
  81. <executions>
  82. <execution>
  83. <id>user</id>
  84. <phase>package</phase>
  85. <configuration>
  86. <descriptors>
  87. <descriptor>release/user.xml</descriptor>
  88. </descriptors>
  89. </configuration>
  90. <goals>
  91. <goal>single</goal>
  92. </goals>
  93. </execution>
  94. </executions>
  95. </plugin>
  96. </plugins>
  97. </build>
  98. <!-- sphinx build targets - default to full -->
  99. <properties>
  100. <target>full</target>
  101. </properties>
  102. <profiles>
  103. <profile>
  104. <id>user</id>
  105. <properties>
  106. <target>user</target>
  107. </properties>
  108. </profile>
  109. <profile>
  110. <id>user-pdf</id>
  111. <properties>
  112. <target>user-pdf</target>
  113. </properties>
  114. </profile>
  115. </profiles>
  116. </project>