You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RELEASE.md
+48-26
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
## Smooks Release process
2
-
This section describes the process to create a release for Smooks. To do this you will to have a codehaus account.
2
+
This section describes the process to create a release for Smooks. To do this you will need a codehaus account.
3
3
4
4
### Generate a keypair for signing artifacts
5
5
To deploy to Nexus it is required that the artifacts are signed. This section describes how to generate the keys for signing:
@@ -10,7 +10,7 @@ Install [pgp](http://www.openpgp.org/resources/downloads.shtml). For example, us
10
10
11
11
Now, generate the keypair:
12
12
13
-
gpg —gen-key
13
+
gpg --gen-key
14
14
15
15
List the key to get the public key identifier:
16
16
@@ -27,24 +27,6 @@ For others to be able to verify the signature, in our case Nexus must be able to
27
27
28
28
In the example above we are using the _pub_ identifer.
29
29
30
-
### Update settings.xml
31
-
Update your settings.xml with the correct credentials:
32
-
33
-
<settings>
34
-
<servers>
35
-
<server>
36
-
<id>codehaus-nexus-snapshots</id>
37
-
<username>username</username>
38
-
<password>xxxx</password>
39
-
</server>
40
-
<server>
41
-
<id>codehaus-nexus-staging</id>
42
-
<username>username</username>
43
-
<password>xxxx</password>
44
-
</server>
45
-
</servers>
46
-
</settings>
47
-
48
30
### Update the project version number
49
31
We need to update the project version number. This need to be done once for in the root project and once for the
50
32
smooks-examples module. The reason for this is that the smooks-examples module does has a different parent.
@@ -63,12 +45,55 @@ And if you are not happy you can revert using:
63
45
64
46
When you are done you should commit and tag.
65
47
66
-
### Run the deploy goal/target
48
+
### Deploy artifacts to Codehaus Nexus repository
49
+
50
+
There are 2 ways of doing this, depending on the OS you are running on. In either case, this should build and upload all artifacts to the [Codehaus Nexus maven Repository](https://nexus.codehaus.org) ([see HAUSEMATE docs for more details](http://docs.codehaus.org/display/HAUSMATES/Codehaus+Maven+Repository+Usage+Guide)), from which we can test and hopefully release the artifacts.
51
+
52
+
53
+
#### Deploy artifacts from a Linux type OS (including Mac OSX)
We use Docker to build and deploy artifacts, guaranteeing a consistent build environment.
62
+
63
+
Assuming you have Docker installed on the local host system, we install the `smooks` image:
64
+
65
+
```
66
+
docker build -t smooks github.com/smooks/smooks
67
+
```
68
+
69
+
One catch of running the build in a Docker container is that we need to make the GPG key available to the build running in the Docker container. So, we need to mount the host system's `~/.gnupg` directory into the docker container as the root account's `~/.gnupg` directory by adding `-v $HOME/.gnupg:/.gnupg` to the docker commands.
70
+
71
+
#### Deploy artifacts from a non-Linux type OS (Windows etc)
72
+
73
+
Update your `~/.m2/settings.xml` with the correct Codehaus credentials (same as your Xircles login details):
This should build and upload and complete successfully. Things will be uploaded to the [Codehaus Nexus maven Repository](https://nexus.codehaus.org) ([see HAUSEMATE docs for more details](http://docs.codehaus.org/display/HAUSMATES/Codehaus+Maven+Repository+Usage+Guide)).
96
+
### Releasing artifacts from Codehaus Nexus repository
72
97
73
98
You log into the Codehaus Nexus repo using your [Xircles](http://xircles.codehaus.org/) userid and password. From there, take a look at the “Staging Repository”. The staging repository is where you can inspect what was uploaded and make sure that everything looks peachy.
74
99
If it doesn't, you can drop the repository and fix the issue and deploy again. Once you think everything is in order you need to “Close” the repository. Closing will run a number of verification
0 commit comments