Skip to content

Commit aa8ec4a

Browse files
committed
Readme updates
1 parent 10d5362 commit aa8ec4a

File tree

1 file changed

+57
-6
lines changed

1 file changed

+57
-6
lines changed

README.md

Lines changed: 57 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,49 @@ All of the solutions to these issues are implemented independently in different
4545
<developerConnection>scm:git:ssh://git@server/project/path.git</developerConnection>
4646
</scm>
4747
...
48+
<!-- Configure a local nexus mirror that won't act as a mirror for repos used as gitflow deployment targets.
49+
This can go in a default active profile in your ~/.m2/settings.xml
50+
-->
51+
<mirrors>
52+
<mirror>
53+
<mirrorOf>*,!localnexus-releases,!localnexus-stage,!localnexus-snapshots</mirrorOf>
54+
<url>https://localnexus/nexus/content/groups/public</url>
55+
</mirror>
56+
</mirrors>
57+
...
58+
<!-- Configure a set of repositories for publishing artifacts. Even if you share the same server id credentials,
59+
It's a good idea to give these discrete ids. Otherwise if you use the 'update-stage-dependencies' you may get
60+
some strange behavior!
61+
62+
This can go in a default active profile in your ~/.m2/settings.xml
63+
-->
64+
<repositories>
65+
<repository>
66+
<id>localnexus-releases</id>
67+
<url>https://localnexus/nexus/content/repositories/releases</url>
68+
<snapshots><enabled>false</enabled></snapshots>
69+
<releases><enabled>true</enabled></releases>
70+
</repository>
71+
<repository>
72+
<id>localnexus-stage</id>
73+
<url>https://localnexus/nexus/content/repositories/test-releases</url>
74+
<snapshots><enabled>false</enabled></snapshots>
75+
<releases><enabled>true</enabled></releases>
76+
</repository>
77+
<repository>
78+
<id>localnexus-snapshots</id>
79+
<url>http://localnexus/nexus/content/repositories/snapshots</url>
80+
<snapshots><enabled>true</enabled></snapshots>
81+
<releases><enabled>false</enabled></releases>
82+
</repository>
83+
<repository>
84+
<id>central</id>
85+
<url>http://central</url>
86+
<snapshots><enabled>true</enabled></snapshots>
87+
<releases><enabled>true</enabled></releases>
88+
</repository>
89+
</repositories>
90+
...
4891
<build>
4992
<plugins>
5093
<plugin>
@@ -53,12 +96,17 @@ All of the solutions to these issues are implemented independently in different
5396
<version>${gitflow.helper.plugin.version}</version>
5497
<extensions>true</extensions>
5598
<configuration>
56-
<!-- These repository definitions expect id::layout::url::unique, for example
99+
<!--
100+
These repository definitions expect either a configured repository id, or an inline definition
101+
like 'id::layout::url::unique'
102+
103+
For example:
104+
57105
release::default::https://some.server.path/content/repositories/test-releases::false
58106
-->
59-
<releaseDeploymentRepository>${release.repository}</releaseDeploymentRepository>
60-
<stageDeploymentRepository>${stage.repository}</stageDeploymentRepository>
61-
<snapshotDeploymentRepository>${snapshot.repository}</snapshotDeploymentRepository>
107+
<releaseDeploymentRepository>localnexus-releases</releaseDeploymentRepository>
108+
<stageDeploymentRepository>localnexus-stage</stageDeploymentRepository>
109+
<snapshotDeploymentRepository>localnexus-snapshots</snapshotDeploymentRepository>
62110
</configuration>
63111
<executions>
64112
<execution>
@@ -207,10 +255,13 @@ re-resolved (so you get the latest version from either the stage repository, or
207255

208256
It is **very important** if you're using this goal, that the **`stageDeploymentReposity` have a unique repository/server id**.
209257
If you use the same ID for release, snapshot, and stage, every time you exeucte this goal, every release version
210-
dependency will be purged and re-resolved.
258+
dependency will be purged and re-resolved.
211259

260+
If you have a local build / install of a release version, this goal will currently not update that package, by design.
261+
You will need to manually remove your local build (or have a newer version resolve from a remote) before this goal will
262+
purge it.
212263

213-
## Goal: `tag-master` ("Automagic" Tagging for Master Branch Releases)
264+
# Goal: `tag-master` ("Automagic" Tagging for Master Branch Releases)
214265

215266
In a gitflow environment, a commit to a master branch should trigger a job to build on the master branch, which would result in the release being tagged if successful.
216267

0 commit comments

Comments
 (0)