|
171 | 171 | <groupId>org.apache.maven.plugins</groupId>
|
172 | 172 | <artifactId>maven-javadoc-plugin</artifactId>
|
173 | 173 | <version>3.11.2</version>
|
174 |
| - <executions> |
175 |
| - <execution> |
176 |
| - <id>attach-javadocs</id> |
177 |
| - <goals> |
178 |
| - <goal>jar</goal> |
179 |
| - </goals> |
180 |
| - </execution> |
181 |
| - </executions> |
182 | 174 | <configuration>
|
183 | 175 | <!-- Never fail a build based on Javadoc errors -->
|
184 | 176 | <failOnError>false</failOnError>
|
|
200 | 192 | </pluginManagement>
|
201 | 193 | <plugins>
|
202 | 194 | <plugin>
|
| 195 | + <!-- Specify our settings for new releases via 'mvn release:*' --> |
203 | 196 | <groupId>org.apache.maven.plugins</groupId>
|
204 | 197 | <artifactId>maven-release-plugin</artifactId>
|
205 | 198 | <version>3.1.1</version>
|
206 | 199 | <configuration>
|
207 |
| - <!-- During release:perform, enable the "release" profile (see below) --> |
| 200 | + <!-- During release:prepare and release:perform, pass the "release" property to enable the |
| 201 | + "release" profile (and enable/disable other profiles based on whether they need releasing) --> |
208 | 202 | <arguments>-Drelease</arguments>
|
209 | 203 | <goals>deploy</goals>
|
210 | 204 | <!-- Suggest tagging the release in SCM as "dspace-[version]" -->
|
|
244 | 238 | to actually perform an dspace-replicate release to Maven central.
|
245 | 239 | This profile contains settings which are ONLY enabled when performing
|
246 | 240 | a DSpace module release. See also https://wiki.lyrasis.org/display/DSPACE/Release+Procedure
|
| 241 | + NOTE: You MUST trigger this profile by running "-Drelease" |
| 242 | + (as that flag also triggers other modules to be enabled/disabled as necessary for release) |
247 | 243 | -->
|
248 | 244 | <profile>
|
249 | 245 | <id>release</id>
|
250 | 246 | <activation>
|
251 | 247 | <activeByDefault>false</activeByDefault>
|
| 248 | + <!-- Enable this profile if we are doing a release (-Drelease) --> |
| 249 | + <property> |
| 250 | + <name>release</name> |
| 251 | + </property> |
252 | 252 | </activation>
|
253 | 253 | <build>
|
254 | 254 | <plugins>
|
|
284 | 284 | </execution>
|
285 | 285 | </executions>
|
286 | 286 | </plugin>
|
| 287 | + <!-- For new releases, generate JavaDocs --> |
| 288 | + <plugin> |
| 289 | + <groupId>org.apache.maven.plugins</groupId> |
| 290 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 291 | + <executions> |
| 292 | + <execution> |
| 293 | + <id>attach-javadocs</id> |
| 294 | + <goals> |
| 295 | + <goal>jar</goal> |
| 296 | + </goals> |
| 297 | + </execution> |
| 298 | + </executions> |
| 299 | + </plugin> |
287 | 300 | <!-- Sign any new releases via GPG.
|
288 |
| - NOTE: you may optionall specify the "gpg.passphrase" in your settings.xml --> |
| 301 | + NOTE: you may optionally specify the "gpg.passphrase" in your settings.xml --> |
289 | 302 | <plugin>
|
290 | 303 | <groupId>org.apache.maven.plugins</groupId>
|
291 | 304 | <artifactId>maven-gpg-plugin</artifactId>
|
|
0 commit comments