Skip to content

Commit 2237d9c

Browse files
committed
Docs
1 parent 4ba878c commit 2237d9c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ It does so by:
77
* Enforcing [gitflow](http://nvie.com/posts/a-successful-git-branching-model/) version heuristics in [Maven](http://maven.apache.org/) projects.
88
* Coercing Maven to gracefully support the gitflow workflow without imposing complex CI job configurations or complex Maven setups.
99
* Setting distributionManagement repositories (for things like [maven-deploy-plugin](https://maven.apache.org/plugins/maven-deploy-plugin/)) based upon the current git branch.
10-
* SCM tagging builds for the master branch, using the CI server's repository connection information. (Zero Maven scm configuration necessary, or if you prefer it, you can use the <scm> from maven)
10+
* SCM tagging builds for the master branch. You can use the project SCM definition, or if you omit it, you can resolve the CI server's repository connection information. (Zero Maven scm configuration necessary)
1111
* Promoting existing tested (staged) artifacts for release, rather than re-building the artifacts. Eliminates the risk of accidental master merges or commits resulting in untested code being released, and provides digest hash traceability for the history of artifacts.
1212
* Enabling the decoupling of repository deployment and execution environment delivery based on the current git branch.
1313
* Automated deployment, promotion, and delivery of projects without the [maven-release-plugin](http://maven.apache.org/maven-release/maven-release-plugin/) or some other [*almost there* solution](https://axelfontaine.com/blog/final-nail.html).
14+
* Customizing maven project and system properties based upon the current branch being built. This allows test cases to target different execution environments without changing the artifact results.
1415

1516
# Why would I want to use this?
1617

@@ -38,6 +39,10 @@ All of the solutions to these issues are implemented independently in different
3839

3940
```
4041
<project>
42+
...
43+
<scm>
44+
<developerConnection>scm:git:ssh://git@server/project/path.git</developerConnection>
45+
</scm>
4146
...
4247
<build>
4348
<plugins>
@@ -53,8 +58,6 @@ All of the solutions to these issues are implemented independently in different
5358
<releaseDeploymentRepository>${release.repository}</releaseDeploymentRepository>
5459
<stageDeploymentRepository>${stage.repository}</stageDeploymentRepository>
5560
<snapshotDeploymentRepository>${snapshot.repository}</snapshotDeploymentRepository>
56-
<!-- The plugin will read the git branch and git url by resolving these properties at run-time -->
57-
<gitBranchExpression/>
5861
</configuration>
5962
<executions>
6063
<execution>
@@ -264,7 +267,7 @@ that the first build deployed into. Once they're attached to the project, the `j
264267
the artifacts built by the first job into a jboss application server.
265268

266269

267-
## Goal: `set-properties` (Dynamically Set a Maven Project / System Properties)
270+
## Goal: `set-properties` (Dynamically Set Maven Project / System Properties)
268271

269272
Some situations with automated testing (and integration testing in particular) demand changing configuration properties
270273
based upon the branch type being built. This is a common necessity when configuring automated DB refactorings as part of

0 commit comments

Comments
 (0)