Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Commit

Permalink
Server key required to deploy on the central SQO-OSS maven repository…
Browse files Browse the repository at this point in the history
… and documentation on how to do it.
  • Loading branch information
gousiosg committed Dec 30, 2009
1 parent b774019 commit 2716750
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 7 deletions.
32 changes: 26 additions & 6 deletions README.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,40 @@ To run the deploy target against the SQO-OSS maven repository, we use
the webdav maven transport wagon over ssl. However, since the certificate
we use is self signed, the JSSL library underlying the HTTP library that
the webdav component uses, needs to be configured with a trust store. In
short, this involves 3 steps:
short, this involves 4 steps:

1. Get the client certificate
1. Get the required certificates

You can find the certificate under misc/repo.crt. You can also get a fresh
copy in case the certificate changes directly from the web server.
Maven repository certificate: You can find the certificate under misc/repo.crt.
You can also get a fresh copy in case the certificate changes directly from the
web server.

2. Create the truststore

keytool -v -alias mavensrv -import -file misc/repo.crt -keystore maven.jks
keytool -v -alias mavensrv -import -file misc/maven.crt -keystore maven.jks

3. Configuring maven to use it by default
3. Configure maven to use it by default

export MAVEN_OPTS="-Djavax.net.ssl.trustStore=maven.jks
-Djavax.net.ssl.trustStorePassword=XXXXXX -Djavax.net.ssl.keyStore=maven.jks
-Djavax.net.ssl.keyStoreType=jks -Djavax.net.ssl.keyStorePassword=XXXXXX"

Replace XXXXX with the password you used to create the truststore above.

4. Tell maven about your login credentials to the webdav server

To do so, you need to edit the ~/.m2/settings.xml file and add the server. The
file should look like this after editing it

<settings>
<servers>
<server>
<id>ac-main</id>
<username>YOUR-SQOOSS-USERNAME</username>
<password>YOUR-SQOOSS-PASSWORD</password>
</server>
</servers>
</settings>

For more information, check the following link:

Expand Down
33 changes: 33 additions & 0 deletions misc/maven.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
-----BEGIN CERTIFICATE-----
MIIFkTCCA3kCAQEwDQYJKoZIhvcNAQEFBQAwgZoxCzAJBgNVBAY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gWSfiThPz0Ysyqzef7TBw+n+4mNhJUM9zcDsVG0h7QC+0CA++tnnvCwUfcwm
N1yTXxfKk+yFzoh3ZQ53+njFojwWvnow/oq0LQIDAQABMA0GCSqGSIb3DQEBBQUA
A4ICAQB3GeG6E6S0BF/TW6J2SgzoLK+XgzL6+J5N/210iJvNDKnlHtHaAluWZJSF
S0qZ9ZsvZxiRQKNXMCJeqUVSYLiVIu3es8zlyi1MfjXgXv3ga9zE2GCOtseV4vvl
3vbolSBErpi2k6pXX1cd47XJWEcUHdBhtuPJcrN0walbaA74BBegQR8OTITCzbj/
0CHPk9sKndQZe5E5+eF1GRqidqV0LttT/DPDlA09Xzjdx+BhdyJNO2CMojvzUUI1
55ovyDV6tXxOvdLqihKQ78xV4npnLmhC/7VoCBg/iAKy6lmG9ulScpvq3TUmdLo/
M7jTMv8+2xqGuE/vC1izNO19+T6W2MdOpqBHWSoRs6w2Gv0jB+E2zAB5QIkTLXXn
S0t4IdieKdTq4D2OSBPX0+xMq8VlcWCBjSRDCrq+WT5ALAHEKN5YPwW2DJw+E8AY
iuOmNAybkKZiZHyg3bp2byhfxATFAHfUvUTZ+LuoEJoUkhnRqpO4x1H9jxD551P0
ZcvVDzEl3RQ+WZl0Ct63bXB0GCU8QuFJvuSK4JSiw5kHWEvJHWjA4VPPKdITBGyP
NazGDGD+4/S3+EgkD7l7IVViZfdNxebUse4U/1XCAChvI289TCNLxZqy1xaKAPsV
aRIsh31ZH2LVk1BNOE0VRejWk7sNNNsBo4xSx7PVkGN1TLkBOg==
-----END CERTIFICATE-----

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

<scm>
<url>http://websvn.sqo-oss.org</url>
<connection>scm:svn:http://svn.sqo-oss.org/</connection>
<connection>scm:svn:http://anonsvn.sqo-oss.org/</connection>
</scm>

<build>
Expand Down

0 comments on commit 2716750

Please sign in to comment.