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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one
  4. ~ or more contributor license agreements. See the NOTICE file
  5. ~ distributed with this work for additional information
  6. ~ regarding copyright ownership. The ASF licenses this file
  7. ~ to you under the Apache License, Version 2.0 (the
  8. ~ "License"); you may not use this file except in compliance
  9. ~ with the License. You may obtain a copy of the License at
  10. ~
  11. ~ http://www.apache.org/licenses/LICENSE-2.0
  12. ~
  13. ~ Unless required by applicable law or agreed to in writing,
  14. ~ software distributed under the License is distributed on an
  15. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. ~ KIND, either express or implied. See the License for the
  17. ~ specific language governing permissions and limitations
  18. ~ under the License.
  19. -->
  20. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  21. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  22. <parent>
  23. <artifactId>archiva</artifactId>
  24. <groupId>org.apache.archiva</groupId>
  25. <version>3.0.0-SNAPSHOT</version>
  26. </parent>
  27. <modelVersion>4.0.0</modelVersion>
  28. <artifactId>archiva-modules</artifactId>
  29. <packaging>pom</packaging>
  30. <name>Archiva :: Modules</name>
  31. <url>https://archiva.apache.org/ref/${project.version}</url>
  32. <properties>
  33. <scmPubCheckoutDirectory>.site-content</scmPubCheckoutDirectory>
  34. <scmPublishBranch>asf-staging</scmPublishBranch>
  35. <scmPublishPath>/ref/${project.version}</scmPublishPath>
  36. <!-- The git repository, where the site content is placed -->
  37. <siteRepositoryUrl>scm:git:https://gitbox.apache.org/repos/asf/archiva-web-content.git</siteRepositoryUrl>
  38. <site.staging.base>${project.basedir}</site.staging.base>
  39. </properties>
  40. <modules>
  41. <module>archiva-base</module>
  42. <module>archiva-scheduler</module>
  43. <module>archiva-web</module>
  44. <module>metadata</module>
  45. <module>plugins</module>
  46. <module>archiva-maven</module>
  47. </modules>
  48. <build>
  49. <pluginManagement>
  50. <plugins>
  51. <plugin>
  52. <groupId>org.apache.maven.plugins</groupId>
  53. <artifactId>maven-site-plugin</artifactId>
  54. <configuration>
  55. <skipDeploy>true</skipDeploy>
  56. </configuration>
  57. </plugin>
  58. </plugins>
  59. </pluginManagement>
  60. <plugins>
  61. <plugin>
  62. <groupId>org.apache.maven.plugins</groupId>
  63. <artifactId>maven-scm-publish-plugin</artifactId>
  64. <inherited>false</inherited>
  65. <configuration>
  66. <checkinComment>Apache Archiva Module Documentation for ${project.version}</checkinComment>
  67. <skipDeletedFiles>true</skipDeletedFiles>
  68. <content>${project.build.directory}/staging</content>
  69. <tryUpdate>true</tryUpdate>
  70. <!--
  71. <ignorePathsToDelete>
  72. <path>%regex[^(?!docs/).*$]</path>
  73. </ignorePathsToDelete>
  74. -->
  75. </configuration>
  76. <executions>
  77. <execution>
  78. <id>scm-publish</id>
  79. <phase>site-deploy</phase>
  80. <goals>
  81. <goal>publish-scm</goal>
  82. </goals>
  83. </execution>
  84. </executions>
  85. </plugin>
  86. <plugin>
  87. <groupId>org.apache.maven.plugins</groupId>
  88. <artifactId>maven-site-plugin</artifactId>
  89. <configuration>
  90. <skipDeploy>true</skipDeploy>
  91. <stagingDirectory>${site.staging.base}/target/staging${scmPublishPath}/</stagingDirectory>
  92. </configuration>
  93. <executions>
  94. <execution>
  95. <id>attach-descriptor</id>
  96. <goals>
  97. <goal>attach-descriptor</goal>
  98. </goals>
  99. </execution>
  100. <!-- <execution>
  101. <id>site-generate-resources</id>
  102. <phase>generate-resources</phase>
  103. <goals>
  104. <goal>site</goal>
  105. </goals>
  106. </execution>-->
  107. <!--
  108. <execution>
  109. <id>stage-for-scm-publish</id>
  110. <phase>post-site</phase>
  111. <goals>
  112. <goal>stage</goal>
  113. </goals>
  114. <configuration>
  115. <skipDeploy>false</skipDeploy>
  116. </configuration>
  117. </execution>
  118. -->
  119. </executions>
  120. </plugin>
  121. </plugins>
  122. </build>
  123. <reporting>
  124. <plugins>
  125. <!-- jxr first -->
  126. <plugin>
  127. <groupId>org.apache.maven.plugins</groupId>
  128. <artifactId>maven-jxr-plugin</artifactId>
  129. <version>${jxrVersion}</version>
  130. <reportSets>
  131. <reportSet>
  132. <id>aggregate</id>
  133. <inherited>false</inherited>
  134. <reports>
  135. <report>aggregate</report>
  136. </reports>
  137. </reportSet>
  138. </reportSets>
  139. </plugin>
  140. <plugin>
  141. <groupId>org.apache.maven.plugins</groupId>
  142. <artifactId>maven-checkstyle-plugin</artifactId>
  143. <version>${checkstyleVersion}</version>
  144. <!-- inherited is needed to use netbeans checkstyle based code formatting -->
  145. <!-- 2013 05 03 may change in future release -->
  146. <inherited>true</inherited>
  147. <configuration>
  148. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  149. <configLocation>config/maven_checks.xml</configLocation>
  150. </configuration>
  151. </plugin>
  152. <plugin>
  153. <!-- No need for the standard project reports -->
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-project-info-reports-plugin</artifactId>
  156. <version>${maven-project-info-reports-plugin.version}</version>
  157. <reportSets>
  158. <reportSet>
  159. <reports>
  160. <report>index</report>
  161. </reports>
  162. </reportSet>
  163. </reportSets>
  164. </plugin>
  165. <plugin>
  166. <groupId>org.apache.maven.plugins</groupId>
  167. <artifactId>maven-javadoc-plugin</artifactId>
  168. <version>${javadocPluginVersion}</version>
  169. <inherited>false</inherited>
  170. <configuration>
  171. <notimestamp>true</notimestamp>
  172. <javadocVersion>1.8</javadocVersion>
  173. <source>1.8</source>
  174. <doclint>none</doclint>
  175. <excludePackageNames>*.test</excludePackageNames>
  176. <links>
  177. <link>https://docs.oracle.com/javase/8/docs/api</link>
  178. <link>http://commons.apache.org/collections/apidocs-COLLECTIONS_3_0/</link>
  179. <link>http://commons.apache.org/dbcp/apidocs/</link>
  180. <link>http://commons.apache.org/fileupload/apidocs/</link>
  181. <link>http://commons.apache.org/httpclient/apidocs/</link>
  182. <link>http://commons.apache.org/logging/apidocs/</link>
  183. <link>http://commons.apache.org/pool/apidocs/</link>
  184. <link>http://junit.sourceforge.net/javadoc/</link>
  185. <link>http://logging.apache.org/log4j/1.2/apidocs/</link>
  186. <link>http://jakarta.apache.org/regexp/apidocs/</link>
  187. <link>http://velocity.apache.org/engine/releases/velocity-1.5/apidocs/</link>
  188. </links>
  189. <linksource>true</linksource>
  190. <show>protected</show>
  191. <tags>
  192. <tag>
  193. <name>todo</name>
  194. <placement>a</placement>
  195. <head>To Do:</head>
  196. </tag>
  197. </tags>
  198. </configuration>
  199. <reportSets>
  200. <reportSet>
  201. <reports>
  202. <!-- Don't need tests -->
  203. <report>aggregate</report>
  204. </reports>
  205. </reportSet>
  206. </reportSets>
  207. </plugin>
  208. </plugins>
  209. </reporting>
  210. <profiles>
  211. <profile>
  212. <id>reporting</id>
  213. <reporting>
  214. <plugins>
  215. <plugin>
  216. <groupId>org.apache.maven.plugins</groupId>
  217. <artifactId>maven-checkstyle-plugin</artifactId>
  218. <version>${checkstyleVersion}</version>
  219. <inherited>false</inherited>
  220. <reportSets>
  221. <reportSet>
  222. <reports>
  223. <report>checkstyle-aggregate</report>
  224. </reports>
  225. </reportSet>
  226. </reportSets>
  227. </plugin>
  228. </plugins>
  229. </reporting>
  230. </profile>
  231. <!--
  232. This runs a sparse git checkout for the web site content repository that contains only the doc directory.
  233. The profile is activated only, if the checkout directory does not exist.
  234. The executor runs a shell script.
  235. -->
  236. <profile>
  237. <id>site-checkout</id>
  238. <activation>
  239. <file>
  240. <missing>${scmPubCheckoutDirectory}</missing>
  241. </file>
  242. </activation>
  243. <build>
  244. <plugins>
  245. <plugin>
  246. <groupId>org.codehaus.mojo</groupId>
  247. <artifactId>exec-maven-plugin</artifactId>
  248. <version>1.6.0</version>
  249. <inherited>false</inherited>
  250. <executions>
  251. <execution>
  252. <id>prepare-checkout</id>
  253. <phase>pre-site</phase>
  254. <goals>
  255. <goal>exec</goal>
  256. </goals>
  257. <configuration>
  258. <executable>checkoutSite.sh</executable>
  259. <workingDirectory>${project.basedir}</workingDirectory>
  260. <arguments>
  261. <argument>-d</argument>
  262. <argument>${scmPubCheckoutDirectory}</argument>
  263. <argument>-b</argument>
  264. <argument>${scmPublishBranch}</argument>
  265. <argument>${siteRepositoryUrl}</argument>
  266. </arguments>
  267. </configuration>
  268. </execution>
  269. </executions>
  270. </plugin>
  271. </plugins>
  272. </build>
  273. </profile>
  274. </profiles>
  275. <distributionManagement>
  276. <site>
  277. <id>apache.website</id>
  278. <url>${siteRepositoryUrl}</url>
  279. </site>
  280. </distributionManagement>
  281. </project>