Skip to content

Commit 3d23580

Browse files
author
Matt Hayes
committed
Update README, add settings.xml template
1 parent f0112a8 commit 3d23580

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,16 @@ Override `testclasses.pattern`, which defaults to `**/*.class`. For example, to
171171

172172
### Releasing
173173

174-
We use Sonatype to release artifacts. Information on how this is set up can be found [here](https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide). Most of this has already been set up with the `build.xml` file. You will however need a Sonatype account and must create a Maven `settings.xml` with your account information, as described [here](https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-7a.1.POMandsettingsconfig).
174+
We use Sonatype to release artifacts. Information on how this is set up can be found [here](https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide). Most of this has already been set up with the `build.xml` file. You will however need a Sonatype account and must create a Maven `~/.m2/settings.xml` with your account information, as described [here](https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-7a.1.POMandsettingsconfig).
175175

176-
We use `gpg` to sign the artifacts, so you'll need `gpg` set up as well. Information on generating PGP signatures with `gpg` can be found [here](https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven).
176+
Create the settings.xml from our template:
177+
178+
mkdir ~/.m2
179+
cp settings.xml.template ~/.m2/settings.xml
180+
181+
Then edit `~/.m2/settings.xml` and add your user name and password.
182+
183+
We use `gpg` to sign the artifacts, so you'll need `gpg` set up as well. Information on generating PGP signatures with `gpg` can be found [here](https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven). Make sure you follow the section *Deleting a Sub Key*.
177184

178185
First run the tests to make sure all is well:
179186

settings.xml.template

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<settings>
2+
<servers>
3+
<server>
4+
<id>sonatype-nexus-snapshots</id>
5+
<username>TODOTODO</username>
6+
<password>TODOTODO</password>
7+
</server>
8+
<server>
9+
<id>sonatype-nexus-staging</id>
10+
<username>TODOTODO</username>
11+
<password>TODOTODO</password>
12+
</server>
13+
</servers>
14+
<profiles>
15+
<profile>
16+
<id>gpg</id>
17+
<properties>
18+
<gpg.passphrase>TODOTODO</gpg.passphrase>
19+
</properties>
20+
</profile>
21+
</profiles>
22+
</settings>

0 commit comments

Comments
 (0)