@@ -98,14 +98,7 @@ All of the solutions to these issues are implemented independently in different
98
98
<version>${gitflow.helper.plugin.version}</version>
99
99
<extensions>true</extensions>
100
100
<configuration>
101
- <!--
102
- These repository definitions expect either a configured repository id, or an inline definition
103
- like 'id::layout::url::unique'
104
-
105
- For example:
106
-
107
- release::default::https://some.server.path/content/repositories/test-releases::false
108
- -->
101
+ <!-- Tell the plugins what repositories to use (by id) -->
109
102
<releaseDeploymentRepository>localnexus-releases</releaseDeploymentRepository>
110
103
<stageDeploymentRepository>localnexus-stage</stageDeploymentRepository>
111
104
<snapshotDeploymentRepository>localnexus-snapshots</snapshotDeploymentRepository>
@@ -207,38 +200,58 @@ plugins in the build process (deploy, site-deploy, etc.) will use the repositori
207
200
208
201
** The repository properties should follow the following format** , ` id::layout::url::uniqueVersion ` .
209
202
210
- When using this plugin, the ` <distributionManagement> ` repository definitions can be completely removed from your pom.xml
211
- The following configuration block:
203
+ When using this plugin, the ` <distributionManagement> ` repository definitions should be removed from your pom.xml
204
+ This block, is replaced by defining 'normal' repositories which are then referenced by the ` <id> ` and used by the gitflow-helper-maven-plugin to retarget artifact repository deployment and resolution.
212
205
213
206
<distributionManagement>
214
207
<snapshotRepository>
215
208
<id>snapshots</id>
216
209
<layout>default</layout>
217
210
<url>https://some.server.path/content/repositories/snapshots</url>
218
- <uniqueVersion>true</uniqueVersion>
219
211
</snapshotRepository>
220
212
<repository>
221
213
<id>releases</id>
222
214
<layout>default</layout>
223
215
<url>https://some.server.path/content/repositories/releases</url>
224
- <uniqueVersion>false</uniqueVersion>
225
216
</repository>
226
217
</distributionManagement>
227
218
228
- Can be replaced with the following plugin configuration, which also introduces the stage repository.
219
+ Keep in mind repositories can be defined in a user settings.xml as part of your development profiles to keep from repeating yourself in project files.
220
+ Below is an example configuration for the gitflow-helper-maven-plugin.
229
221
230
222
<project...>
231
223
...
224
+ <repositories>
225
+ <repository>
226
+ <id>snapshots</id>
227
+ <url>https://some.server.path/content/repositories/snapshots</url>
228
+ <snapshots><enabled>true</enabled></snapshots>
229
+ <releases><enabled>false</enabled></releases>
230
+ </repository>
231
+ <repository>
232
+ <id>test-releases</id>
233
+ <url>https://some.server.path/content/repositories/test-releases</url>
234
+ <snapshots><enabled>false</enabled></snapshots>
235
+ <releases><enabled>true</enabled></releases>
236
+ </repository>
237
+ <repository>
238
+ <id>releases</id>
239
+ <url>https://some.server.path/content/repositories/releases</url>
240
+ <snapshots><enabled>false</enabled></snapshots>
241
+ <releases><enabled>true</enabled></releases>
242
+ </repository>
243
+ </repositories>
244
+ ...
232
245
<build>
233
246
<plugins>
234
247
<plugin>
235
248
<groupId>com.e-gineering</groupId>
236
249
<artifactId>gitflow-helper-maven-plugin</artifactId>
237
250
<version>${gitflow.helper.plugin.version}</version>
238
251
<configuration>
239
- <releaseDeploymentRepository>releases::default::https://some.server.path/content/repositories/releases::false </releaseDeploymentRepository>
240
- <stageDeploymentRepository>stage::default::https://some.server.path/content/repositories/stage::false </stageDeploymentRepository>
241
- <snapshotDeploymentRepository>snapshots::default::https://some.server.path/content/repositories/snapshots::true </snapshotDeploymentRepository>
252
+ <releaseDeploymentRepository>releases</releaseDeploymentRepository>
253
+ <stageDeploymentRepository>stage</stageDeploymentRepository>
254
+ <snapshotDeploymentRepository>snapshots</snapshotDeploymentRepository>
242
255
</configuration>
243
256
<executions>
244
257
<execution>
@@ -405,7 +418,7 @@ You can then connect a remote debugger and step through the plugin code.
405
418
## Building with IntelliJ IDEA notes
406
419
### To Debug Test Code:
407
420
Configure the Maven commandline to include
408
- ` -DforkMode=never ` You will likely get warnings when you run maven with this argument.
421
+ ` -DforkCount=0 `
409
422
410
423
### To inspect code-coverage results from Integration Tests:
411
424
* Select the ** Analyze** -> ** Show Coverage Data** menu.
0 commit comments