Advertisement
ggregory

Apache Commons Parent with commons-release-plugin

Jan 22nd, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 5.38 KB | None | 0 0
  1. Index: pom.xml
  2. ===================================================================
  3. --- pom.xml (revision 1821951)
  4. +++ pom.xml (working copy)
  5. @@ -45,6 +45,7 @@
  6.      - build artifacts -test.jar, -sources.jar and -test-sources.jar always, not only at release time
  7.      - maven-enforcer-plugin set version to 3.0.0-M1 and update Maven requirement from 3.0.0 to 3.0.5 (the latest 3.0.x.)
  8.      - jacoco-maven-plugin 0.7.9 -> 0.8.0.
  9. +    - commons-release-plugin 1.0
  10.  
  11.    -->
  12.  
  13. @@ -550,6 +551,58 @@
  14.          </plugin>
  15.          <!-- Apache parent: plexus & modello -->
  16.        </plugins>
  17. +      <plugin>
  18. +        <groupId>org.apache.maven.plugins</groupId>
  19. +        <artifactId>maven-scm-publish-plugin</artifactId>
  20. +        <configuration>
  21. +          <content>${project.reporting.outputDirectory}</content>
  22. +          <pubScmUrl>scm:svn:${commons.scmPubUrl}</pubScmUrl>
  23. +          <checkoutDirectory>${commons.scmPubCheckoutDirectory}</checkoutDirectory>
  24. +          <serverId>${commons.scmPubServer}</serverId>
  25. +          <tryUpdate>true</tryUpdate>
  26. +        </configuration>
  27. +        <executions>
  28. +          <execution>
  29. +            <id>scm-publish</id>
  30. +            <phase>site-deploy</phase><!-- deploy site with maven-scm-publish-plugin -->
  31. +            <goals>
  32. +              <goal>publish-scm</goal>
  33. +            </goals>
  34. +          </execution>
  35. +        </executions>
  36. +      </plugin>
  37. +      <plugin>
  38. +        <groupId>org.apache.commons</groupId>
  39. +        <artifactId>commons-release-plugin</artifactId>
  40. +        <version>${commons.release.plugin.version}</version>
  41. +        <configuration>
  42. +          <distSvnStagingUrl>scm:svn:https://dist.apache.org/repos/dist/dev/commons/${commons.componentid.basic}</distSvnStagingUrl>
  43. +          <dryRun>${dryRun}</dryRun>
  44. +        </configuration>
  45. +        <executions>
  46. +          <execution>
  47. +            <id>detatch-distributions</id>
  48. +            <phase>verify</phase>
  49. +            <goals>
  50. +              <goal>detatch-distributions</goal>
  51. +            </goals>
  52. +          </execution>
  53. +          <execution>
  54. +            <id>compress-site</id>
  55. +            <phase>site</phase>
  56. +            <goals>
  57. +              <goal>compress-site</goal>
  58. +            </goals>
  59. +          </execution>
  60. +          <execution>
  61. +            <id>stage-distributions</id>
  62. +            <phase>deploy</phase>
  63. +            <goals>
  64. +              <goal>stage-distributions</goal>
  65. +            </goals>
  66. +          </execution>
  67. +        </executions>
  68. +      </plugin>      
  69.      </pluginManagement>
  70.      <plugins>
  71.        <!-- org.apache.maven.plugins, alpha order by artifact id -->
  72. @@ -766,7 +819,38 @@
  73.            </execution>
  74.          </executions>
  75.        </plugin>
  76. -
  77. +      <plugin>
  78. +        <groupId>org.apache.commons</groupId>
  79. +        <artifactId>commons-release-plugin</artifactId>
  80. +        <version>${commons.release.plugin.version}</version>
  81. +        <configuration>
  82. +          <distSvnStagingUrl>scm:svn:https://dist.apache.org/repos/dist/dev/commons/${commons.componentid.basic}</distSvnStagingUrl>
  83. +          <dryRun>${dryRun}</dryRun>
  84. +        </configuration>
  85. +        <executions>
  86. +          <execution>
  87. +            <id>detatch-distributions</id>
  88. +            <phase>verify</phase>
  89. +            <goals>
  90. +              <goal>detatch-distributions</goal>
  91. +            </goals>
  92. +          </execution>
  93. +          <execution>
  94. +            <id>compress-site</id>
  95. +            <phase>site</phase>
  96. +            <goals>
  97. +              <goal>compress-site</goal>
  98. +            </goals>
  99. +          </execution>
  100. +          <execution>
  101. +            <id>stage-distributions</id>
  102. +            <phase>deploy</phase>
  103. +            <goals>
  104. +              <goal>stage-distributions</goal>
  105. +            </goals>
  106. +          </execution>
  107. +        </executions>
  108. +      </plugin>
  109.      </plugins>
  110.    </build>
  111.  
  112. @@ -1625,6 +1709,7 @@
  113.      <commons.surefire.java />
  114.  
  115.      <!-- plugin versions (allows same value in reporting and build sections; also allows easy override) -->
  116. +    <commons.release.plugin.version>1.0</commons.release.plugin.version>
  117.      <commons.build-plugin.version>1.7</commons.build-plugin.version>
  118.      <commons.surefire.version>2.20.1</commons.surefire.version>
  119.      <commons.failsafe.version>2.20.1</commons.failsafe.version>
  120. @@ -1708,6 +1793,8 @@
  121.  
  122.      <!-- Commons Component Id -->
  123.      <commons.componentid>${project.artifactId}</commons.componentid>
  124. +    <!-- Commons Component Id used for dev and release folders, this would be "lang" instead of "lang3" for example. -->
  125. +    <commons.componentid.basic>${project.artifactId}</commons.componentid.basic>
  126.  
  127.      <!-- Configuration properties for the OSGi maven-bundle-plugin -->
  128.      <commons.osgi.symbolicName>org.apache.commons.${commons.componentid}</commons.osgi.symbolicName>
  129. @@ -1768,7 +1855,7 @@
  130.      <!-- value modules can override it -->
  131.      <commons.site.path>${project.artifactId}</commons.site.path>
  132.  
  133. -    <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/${project.artifactId}</commons.scmPubUrl>
  134. +    <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/${commons.componentid.basic}</commons.scmPubUrl>
  135.      <commons.scmPubCheckoutDirectory>${commons.site.cache}/${commons.site.path}</commons.scmPubCheckoutDirectory>
  136.      <commons.scmPubServer>commons.site</commons.scmPubServer>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement