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 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <!--
  2. ~ Licensed to the Apache Software Foundation (ASF) under one
  3. ~ or more contributor license agreements. See the NOTICE file
  4. ~ distributed with this work for additional information
  5. ~ regarding copyright ownership. The ASF licenses this file
  6. ~ to you under the Apache License, Version 2.0 (the
  7. ~ "License"); you may not use this file except in compliance
  8. ~ with the License. You may obtain a copy of the License at
  9. ~
  10. ~ http://www.apache.org/licenses/LICENSE-2.0
  11. ~
  12. ~ Unless required by applicable law or agreed to in writing,
  13. ~ software distributed under the License is distributed on an
  14. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. ~ KIND, either express or implied. See the License for the
  16. ~ specific language governing permissions and limitations
  17. ~ under the License.
  18. -->
  19. <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/maven-v4_0_0.xsd">
  20. <parent>
  21. <groupId>org.apache.archiva</groupId>
  22. <artifactId>archiva</artifactId>
  23. <version>1.2-SNAPSHOT</version>
  24. </parent>
  25. <modelVersion>4.0.0</modelVersion>
  26. <artifactId>archiva-docs</artifactId>
  27. <packaging>pom</packaging>
  28. <name>Archiva Documentation</name>
  29. <url>http://archiva.apache.org/docs/${project.version}/</url>
  30. <build>
  31. <plugins>
  32. <plugin>
  33. <artifactId>maven-site-plugin</artifactId>
  34. <executions>
  35. <execution>
  36. <id>site</id>
  37. <phase>package</phase>
  38. <goals>
  39. <goal>site</goal>
  40. </goals>
  41. </execution>
  42. </executions>
  43. </plugin>
  44. <plugin>
  45. <artifactId>maven-assembly-plugin</artifactId>
  46. <version>2.1</version>
  47. <configuration>
  48. <descriptor>src/site/assembly/docs.xml</descriptor>
  49. </configuration>
  50. <executions>
  51. <execution>
  52. <phase>package</phase>
  53. <goals>
  54. <goal>single</goal>
  55. </goals>
  56. </execution>
  57. </executions>
  58. </plugin>
  59. </plugins>
  60. <finalName>apache-archiva-${project.version}</finalName>
  61. </build>
  62. <reporting>
  63. <excludeDefaults>true</excludeDefaults>
  64. <plugins>
  65. <plugin>
  66. <groupId>org.apache.maven.plugins</groupId>
  67. <artifactId>maven-project-info-reports-plugin</artifactId>
  68. <version>2.0.1</version>
  69. <reportSets>
  70. <reportSet>
  71. <reports>
  72. <report>license</report>
  73. <report>project-team</report>
  74. </reports>
  75. </reportSet>
  76. </reportSets>
  77. </plugin>
  78. </plugins>
  79. </reporting>
  80. <distributionManagement>
  81. <site>
  82. <id>apache.website</id>
  83. <url>${siteBaseDeployment}/docs/${project.version}</url>
  84. </site>
  85. </distributionManagement>
  86. <profiles>
  87. <profile>
  88. <id>release</id>
  89. <!-- TODO: this deploys directly - what about staging? -->
  90. <build>
  91. <plugins>
  92. <plugin>
  93. <artifactId>maven-site-plugin</artifactId>
  94. <executions>
  95. <execution>
  96. <id>deploy</id>
  97. <phase>deploy</phase>
  98. <goals>
  99. <goal>deploy</goal>
  100. </goals>
  101. </execution>
  102. </executions>
  103. </plugin>
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-enforcer-plugin</artifactId>
  107. <executions>
  108. <execution>
  109. <id>enforce-beanshell</id>
  110. <goals>
  111. <goal>enforce</goal>
  112. </goals>
  113. <configuration>
  114. <rules>
  115. <evaluateBeanshell>
  116. <message>Site descriptor needs to be updated for the current release version</message>
  117. <condition>
  118. <![CDATA[
  119. javax.xml.xpath.XPath xpath = javax.xml.xpath.XPathFactory.newInstance().newXPath();
  120. org.xml.sax.InputSource is = new org.xml.sax.InputSource( new java.io.FileInputStream( "${basedir}/src/site/site.xml" ) );
  121. xpath.evaluate( "//project/body/breadcrumbs/item[@name='${project.version}']/@href", is ).equals( "/docs/${project.version}" )
  122. ]]>
  123. </condition>
  124. </evaluateBeanshell>
  125. <evaluateBeanshell>
  126. <message>Release notes need to be updated for the current release version</message>
  127. <condition>
  128. <![CDATA[
  129. org.codehaus.plexus.util.FileUtils.fileRead( "${basedir}/src/site/apt/release-notes.apt" ).indexOf( "Release Notes for Archiva ${project.version}" ) >= 0
  130. ]]>
  131. </condition>
  132. </evaluateBeanshell>
  133. </rules>
  134. </configuration>
  135. </execution>
  136. </executions>
  137. </plugin>
  138. </plugins>
  139. </build>
  140. </profile>
  141. </profiles>
  142. </project>