Skip to content

Commit 1148224

Browse files
author
Bryan Varner
authored
Merge pull request e-gineering#115 from egineering-llc/feature/wagon-transports-failing
Feature/wagon transports failing
2 parents 0d60026 + 62bb487 commit 1148224

13 files changed

+154
-387
lines changed

README.md

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,7 @@ All of the solutions to these issues are implemented independently in different
9898
<version>${gitflow.helper.plugin.version}</version>
9999
<extensions>true</extensions>
100100
<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) -->
109102
<releaseDeploymentRepository>localnexus-releases</releaseDeploymentRepository>
110103
<stageDeploymentRepository>localnexus-stage</stageDeploymentRepository>
111104
<snapshotDeploymentRepository>localnexus-snapshots</snapshotDeploymentRepository>
@@ -207,38 +200,58 @@ plugins in the build process (deploy, site-deploy, etc.) will use the repositori
207200

208201
**The repository properties should follow the following format**, `id::layout::url::uniqueVersion`.
209202

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.
212205

213206
<distributionManagement>
214207
<snapshotRepository>
215208
<id>snapshots</id>
216209
<layout>default</layout>
217210
<url>https://some.server.path/content/repositories/snapshots</url>
218-
<uniqueVersion>true</uniqueVersion>
219211
</snapshotRepository>
220212
<repository>
221213
<id>releases</id>
222214
<layout>default</layout>
223215
<url>https://some.server.path/content/repositories/releases</url>
224-
<uniqueVersion>false</uniqueVersion>
225216
</repository>
226217
</distributionManagement>
227218
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.
229221

230222
<project...>
231223
...
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+
...
232245
<build>
233246
<plugins>
234247
<plugin>
235248
<groupId>com.e-gineering</groupId>
236249
<artifactId>gitflow-helper-maven-plugin</artifactId>
237250
<version>${gitflow.helper.plugin.version}</version>
238251
<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>
242255
</configuration>
243256
<executions>
244257
<execution>
@@ -405,7 +418,7 @@ You can then connect a remote debugger and step through the plugin code.
405418
## Building with IntelliJ IDEA notes
406419
### To Debug Test Code:
407420
Configure the Maven commandline to include
408-
`-DforkMode=never` You will likely get warnings when you run maven with this argument.
421+
`-DforkCount=0`
409422

410423
### To inspect code-coverage results from Integration Tests:
411424
* Select the **Analyze** -> **Show Coverage Data** menu.

pom.xml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,6 @@
7474
<version>3.6.0</version>
7575
<scope>provided</scope>
7676
</dependency>
77-
<dependency>
78-
<groupId>org.apache.maven</groupId>
79-
<artifactId>maven-compat</artifactId>
80-
<version>3.6.0</version>
81-
<scope>provided</scope>
82-
</dependency>
83-
<dependency>
84-
<groupId>org.apache.maven</groupId>
85-
<artifactId>maven-plugin-api</artifactId>
86-
<version>3.6.0</version>
87-
</dependency>
8877
<dependency>
8978
<groupId>org.apache.maven.scm</groupId>
9079
<artifactId>maven-scm-api</artifactId>
@@ -106,17 +95,6 @@
10695
<version>3.6.0</version>
10796
<scope>provided</scope>
10897
</dependency>
109-
<dependency>
110-
<groupId>org.apache.maven</groupId>
111-
<artifactId>maven-aether-provider</artifactId>
112-
<version>3.3.9</version>
113-
<scope>provided</scope>
114-
</dependency>
115-
<dependency>
116-
<groupId>org.eclipse.aether</groupId>
117-
<artifactId>aether-util</artifactId>
118-
<version>1.1.0</version>
119-
</dependency>
12098
</dependencies>
12199

122100
<build>

0 commit comments

Comments
 (0)