You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.vaadin</groupId>
  7. <artifactId>vaadin-root</artifactId>
  8. <version>7.7.0-SNAPSHOT</version>
  9. </parent>
  10. <groupId>com.vaadin</groupId>
  11. <artifactId>vaadin-buildhelpers</artifactId>
  12. <name>vaadin-buildhelpers</name>
  13. <packaging>jar</packaging>
  14. <properties>
  15. <relnotes.tickets.file>${project.build.directory}/generated-resources/releasenotes/release-notes-tickets.html</relnotes.tickets.file>
  16. <relnotes.authors.file>${project.build.directory}/generated-resources/releasenotes/release-notes-authors.html</relnotes.authors.file>
  17. <webcontent.dir>${project.build.outputDirectory}/WebContent/</webcontent.dir>
  18. <maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
  19. </properties>
  20. <organization>
  21. <name>Vaadin Ltd</name>
  22. </organization>
  23. <url>https://vaadin.com/</url>
  24. <description>Vaadin build helpers</description>
  25. <dependencies>
  26. <dependency>
  27. <groupId>commons-io</groupId>
  28. <artifactId>commons-io</artifactId>
  29. <version>${commons-io.version}</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>commons-cli</groupId>
  33. <artifactId>commons-cli</artifactId>
  34. <version>1.2</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.vaadin</groupId>
  38. <artifactId>vaadin-sass-compiler</artifactId>
  39. <version>${vaadin.sass.version}</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.carrotsearch</groupId>
  43. <artifactId>smartsprites</artifactId>
  44. <version>0.2.10</version>
  45. </dependency>
  46. </dependencies>
  47. <build>
  48. <plugins>
  49. <plugin>
  50. <groupId>org.codehaus.mojo</groupId>
  51. <artifactId>build-helper-maven-plugin</artifactId>
  52. <version>1.5</version>
  53. <executions>
  54. <execution>
  55. <phase>initialize</phase>
  56. <id>parse-version</id>
  57. <goals>
  58. <goal>parse-version</goal>
  59. </goals>
  60. </execution>
  61. </executions>
  62. </plugin>
  63. <plugin>
  64. <artifactId>maven-antrun-plugin</artifactId>
  65. <executions>
  66. <execution>
  67. <id>filter-release-notes</id>
  68. <phase>prepare-package</phase>
  69. <goals>
  70. <goal>run</goal>
  71. </goals>
  72. <configuration>
  73. <target>
  74. <loadfile property="release-notes-tickets" srcFile="${relnotes.tickets.file}"
  75. failonerror="false" />
  76. <loadfile property="release-notes-authors" srcFile="${relnotes.authors.file}"
  77. failonerror="false" />
  78. <copy todir="${webcontent.dir}">
  79. <fileset dir="src/main/templates/">
  80. <patternset>
  81. <include name="release-notes.html" />
  82. </patternset>
  83. </fileset>
  84. <filterchain>
  85. <expandproperties />
  86. <replacetokens begintoken="@" endtoken="@">
  87. <token key="version" value="${project.version}" />
  88. </replacetokens>
  89. <replacetokens begintoken="@" endtoken="@">
  90. <token key="version-minor"
  91. value="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}" />
  92. </replacetokens>
  93. <replacetokens begintoken="@" endtoken="@">
  94. <token key="builddate" value="${maven.build.timestamp}" />
  95. </replacetokens>
  96. <replacetokens begintoken="@" endtoken="@">
  97. <token key="release-notes-tickets" value="${release-notes-tickets}" />
  98. </replacetokens>
  99. <replacetokens begintoken="@" endtoken="@">
  100. <token key="release-notes-authors" value="${release-notes-authors}" />
  101. </replacetokens>
  102. </filterchain>
  103. </copy>
  104. </target>
  105. </configuration>
  106. </execution>
  107. </executions>
  108. </plugin>
  109. <plugin>
  110. <groupId>org.apache.maven.plugins</groupId>
  111. <artifactId>maven-jar-plugin</artifactId>
  112. <configuration>
  113. <archive>
  114. <index>false</index>
  115. <manifest>
  116. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  117. </manifest>
  118. </archive>
  119. </configuration>
  120. </plugin>
  121. <plugin>
  122. <artifactId>maven-resources-plugin</artifactId>
  123. <configuration>
  124. <excludes>
  125. <exclude>**/*.properties</exclude>
  126. </excludes>
  127. </configuration>
  128. </plugin>
  129. <plugin>
  130. <artifactId>maven-deploy-plugin</artifactId>
  131. <configuration>
  132. <skip>true</skip>
  133. </configuration>
  134. </plugin>
  135. </plugins>
  136. </build>
  137. <profiles>
  138. <profile>
  139. <id>release</id>
  140. <activation>
  141. <activeByDefault>false</activeByDefault>
  142. </activation>
  143. <build>
  144. <plugins>
  145. <plugin>
  146. <groupId>org.codehaus.mojo</groupId>
  147. <artifactId>exec-maven-plugin</artifactId>
  148. <version>1.4.0</version>
  149. <executions>
  150. <execution>
  151. <id>fetch-release-notes-tickets</id>
  152. <phase>process-classes</phase>
  153. <goals>
  154. <goal>exec</goal>
  155. </goals>
  156. <configuration>
  157. <classpathScope>compile</classpathScope>
  158. <executable>${java.home}/bin/java</executable>
  159. <arguments>
  160. <argument>-Dvaadin.version=${project.version}</argument>
  161. <argument>-classpath</argument>
  162. <classpath />
  163. <argument>com.vaadin.buildhelpers.FetchReleaseNotesTickets</argument>
  164. </arguments>
  165. <outputFile>${relnotes.tickets.file}</outputFile>
  166. </configuration>
  167. </execution>
  168. <execution>
  169. <id>fetch-release-notes-authors</id>
  170. <phase>process-classes</phase>
  171. <goals>
  172. <goal>exec</goal>
  173. </goals>
  174. <configuration>
  175. <classpathScope>compile</classpathScope>
  176. <executable>${java.home}/bin/java</executable>
  177. <arguments>
  178. <argument>-Dvaadin.version=${project.version}</argument>
  179. <argument>-classpath</argument>
  180. <classpath />
  181. <argument>com.vaadin.buildhelpers.FetchReleaseNotesAuthors</argument>
  182. </arguments>
  183. <outputFile>${relnotes.authors.file}</outputFile>
  184. </configuration>
  185. </execution>
  186. </executions>
  187. </plugin>
  188. </plugins>
  189. </build>
  190. </profile>
  191. </profiles>
  192. </project>