|
107 | 107 | <execution> |
108 | 108 | <id>attach-sources</id> |
109 | 109 | <goals> |
110 | | - <goal>jar</goal> |
| 110 | + <goal>jar-no-fork</goal> |
111 | 111 | </goals> |
112 | 112 | </execution> |
113 | 113 | </executions> |
|
116 | 116 | <groupId>org.apache.maven.plugins</groupId> |
117 | 117 | <artifactId>maven-javadoc-plugin</artifactId> |
118 | 118 | <version>2.9.1</version> |
119 | | - <configuration> |
120 | | - <encoding>UTF-8</encoding> |
121 | | - </configuration> |
122 | 119 | <executions> |
123 | 120 | <execution> |
124 | 121 | <id>attach-javadocs</id> |
|
131 | 128 | <plugin> |
132 | 129 | <groupId>org.apache.maven.plugins</groupId> |
133 | 130 | <artifactId>maven-release-plugin</artifactId> |
134 | | - <version>2.4.1</version> |
| 131 | + <version>2.5</version> |
| 132 | + <configuration> |
| 133 | + <autoVersionSubmodules>true</autoVersionSubmodules> |
| 134 | + <useReleaseProfile>false</useReleaseProfile> |
| 135 | + <releaseProfiles>release</releaseProfiles> |
| 136 | + <goals>deploy</goals> |
| 137 | + </configuration> |
135 | 138 | </plugin> |
136 | 139 | </plugins> |
137 | 140 | </build> |
138 | 141 |
|
139 | 142 | <profiles> |
140 | 143 | <profile> |
141 | | - <id>release-sign-artifacts</id> |
142 | | - <activation> |
143 | | - <property> |
144 | | - <name>performRelease</name> |
145 | | - <value>true</value> |
146 | | - </property> |
147 | | - </activation> |
| 144 | + <id>release</id> |
148 | 145 | <build> |
149 | 146 | <plugins> |
| 147 | + <!-- Source --> |
| 148 | + <plugin> |
| 149 | + <groupId>org.apache.maven.plugins</groupId> |
| 150 | + <artifactId>maven-source-plugin</artifactId> |
| 151 | + <version>2.2.1</version> |
| 152 | + <executions> |
| 153 | + <execution> |
| 154 | + <phase>package</phase> |
| 155 | + <goals> |
| 156 | + <goal>jar-no-fork</goal> |
| 157 | + </goals> |
| 158 | + </execution> |
| 159 | + </executions> |
| 160 | + </plugin> |
| 161 | + <!-- Javadoc --> |
| 162 | + <plugin> |
| 163 | + <groupId>org.apache.maven.plugins</groupId> |
| 164 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 165 | + <version>2.9.1</version> |
| 166 | + <executions> |
| 167 | + <execution> |
| 168 | + <phase>package</phase> |
| 169 | + <goals> |
| 170 | + <goal>jar</goal> |
| 171 | + </goals> |
| 172 | + </execution> |
| 173 | + </executions> |
| 174 | + </plugin> |
| 175 | + <!-- GPG --> |
150 | 176 | <plugin> |
151 | 177 | <groupId>org.apache.maven.plugins</groupId> |
152 | 178 | <artifactId>maven-gpg-plugin</artifactId> |
153 | | - <version>1.1</version> |
| 179 | + <version>1.5</version> |
154 | 180 | <executions> |
155 | 181 | <execution> |
156 | | - <id>sign-artifacts</id> |
157 | 182 | <phase>verify</phase> |
158 | 183 | <goals> |
159 | 184 | <goal>sign</goal> |
160 | 185 | </goals> |
161 | 186 | </execution> |
162 | 187 | </executions> |
163 | 188 | </plugin> |
| 189 | + <plugin> |
| 190 | + <groupId>org.sonatype.plugins</groupId> |
| 191 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 192 | + <version>1.6</version> |
| 193 | + <extensions>true</extensions> |
| 194 | + <configuration> |
| 195 | + <serverId>sonatype-nexus-staging</serverId> |
| 196 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 197 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 198 | + </configuration> |
| 199 | + </plugin> |
164 | 200 | </plugins> |
165 | 201 | </build> |
| 202 | + <distributionManagement> |
| 203 | + <snapshotRepository> |
| 204 | + <id>sonatype-nexus-snapshots</id> |
| 205 | + <url>https://oss.sonatype.org/content/repositories/snapshots/</url> |
| 206 | + </snapshotRepository> |
| 207 | + <repository> |
| 208 | + <id>sonatype-nexus-staging</id> |
| 209 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 210 | + </repository> |
| 211 | + </distributionManagement> |
166 | 212 | </profile> |
167 | 213 | </profiles> |
168 | 214 |
|
|
0 commit comments