| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ca30d27 commit fe8e0bb
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -117,16 +117,15 @@ have your local Maven setup correctly along with valid and public GPG key and | |||
| 117 | 117 | adequate authorization on the Sonatype OSS Repository to submit new artifacts, | |
| 118 | 118 | be they _staging_ or _release_ ones. | |
| 119 | 119 | ||
| 120 | - You should read the [Sonatype OSS Maven Repository Usage | ||
| 121 | - Guide](http://goo.gl/Sp9No5) before performing any of the following: | ||
| 120 | + You should read the [Sonatype OSS Aoache Maven | ||
| 121 | + Guide](http://central.sonatype.org/pages/apache-maven.html) before performing any of the following: | ||
| 122 | 122 | ||
| 123 | 123 | #### Staging | |
| 124 | - $ mvn clean deploy -DperformRelease=true | ||
| 124 | + $ mvn clean deploy -Prelease | ||
| 125 | 125 | ||
| 126 | 126 | #### Release | |
| 127 | - $ mvn release:clean -DperformRelease=true | ||
| 128 | - $ mvn release:prepare -DperformRelease=true | ||
| 129 | - $ mvn release:perform -DperformRelease=true | ||
| 127 | + $ mvn release:clean release:prepare -Prelease | ||
| 128 | + $ mvn release:perform -Prelease | ||
| 130 | 129 | ||
| 131 | 130 | #### Documentation | |
| 132 | 131 | Documentation can also be released to the public via the Github Pages subproduct | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -66,12 +66,29 @@ | |||
| 66 | 66 | <mockito.version>1.9.5</mockito.version> | |
| 67 | 67 | </properties> | |
| 68 | 68 | ||
| 69 | + <distributionManagement> | ||
| 70 | + <snapshotRepository> | ||
| 71 | + <id>ossrh</id> | ||
| 72 | + <url>https://oss.sonatype.org/content/repositories/snapshots</url> | ||
| 73 | + </snapshotRepository> | ||
| 74 | + <repository> | ||
| 75 | + <id>ossrh</id> | ||
| 76 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
| 77 | + </repository> | ||
| 78 | + </distributionManagement> | ||
| 79 | + | ||
| 69 | 80 | <build> | |
| 70 | 81 | <plugins> | |
| 71 | 82 | <plugin> | |
| 72 | 83 | <artifactId>maven-release-plugin</artifactId> | |
| 73 | 84 | <groupId>org.apache.maven.plugins</groupId> | |
| 74 | - <version>2.4.1</version> | ||
| 85 | + <version>2.5</version> | ||
| 86 | + <configuration> | ||
| 87 | + <autoVersionSubmodules>true</autoVersionSubmodules> | ||
| 88 | + <useReleaseProfile>false</useReleaseProfile> | ||
| 89 | + <releaseProfiles>release</releaseProfiles> | ||
| 90 | + <goals>deploy</goals> | ||
| 91 | + </configuration> | ||
| 75 | 92 | </plugin> | |
| 76 | 93 | <plugin> | |
| 77 | 94 | <artifactId>maven-deploy-plugin</artifactId> | |
@@ -94,19 +111,13 @@ | |||
| 94 | 111 | ||
| 95 | 112 | <profiles> | |
| 96 | 113 | <profile> | |
| 97 | - <id>release-sign-artifacts</id> | ||
| 98 | - <activation> | ||
| 99 | - <property> | ||
| 100 | - <name>performRelease</name> | ||
| 101 | - <value>true</value> | ||
| 102 | - </property> | ||
| 103 | - </activation> | ||
| 114 | + <id>release</id> | ||
| 104 | 115 | <build> | |
| 105 | 116 | <plugins> | |
| 106 | 117 | <plugin> | |
| 107 | 118 | <groupId>org.apache.maven.plugins</groupId> | |
| 108 | 119 | <artifactId>maven-gpg-plugin</artifactId> | |
| 109 | - <version>1.4</version> | ||
| 120 | + <version>1.5</version> | ||
| 110 | 121 | <executions> | |
| 111 | 122 | <execution> | |
| 112 | 123 | <id>sign-artifacts</id> | |
@@ -117,6 +128,32 @@ | |||
| 117 | 128 | </execution> | |
| 118 | 129 | </executions> | |
| 119 | 130 | </plugin> | |
| 131 | + <plugin> | ||
| 132 | + <groupId>org.apache.maven.plugins</groupId> | ||
| 133 | + <artifactId>maven-source-plugin</artifactId> | ||
| 134 | + <version>2.2.1</version> | ||
| 135 | + <executions> | ||
| 136 | + <execution> | ||
| 137 | + <id>attach-sources</id> | ||
| 138 | + <goals> | ||
| 139 | + <goal>jar-no-fork</goal> | ||
| 140 | + </goals> | ||
| 141 | + </execution> | ||
| 142 | + </executions> | ||
| 143 | + </plugin> | ||
| 144 | + <plugin> | ||
| 145 | + <groupId>org.apache.maven.plugins</groupId> | ||
| 146 | + <artifactId>maven-javadoc-plugin</artifactId> | ||
| 147 | + <version>2.9.1</version> | ||
| 148 | + <executions> | ||
| 149 | + <execution> | ||
| 150 | + <id>attach-javadocs</id> | ||
| 151 | + <goals> | ||
| 152 | + <goal>jar</goal> | ||
| 153 | + </goals> | ||
| 154 | + </execution> | ||
| 155 | + </executions> | ||
| 156 | + </plugin> | ||
| 120 | 157 | </plugins> | |
| 121 | 158 | </build> | |
| 122 | 159 | </profile> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments