Skip to content

Commit

Permalink
#43 documented
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Oct 20, 2014
1 parent 4ac87ac commit 2ac9a54
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 0 deletions.
57 changes: 57 additions & 0 deletions deploy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
In order to deploy a new version of mysql-dist artifact
to Maven Central you should do the following steps:

1. Update `deploy/pom.xml` file with a new version of MySQL

2. Download five files from http://dev.mysql.com/downloads/mysql/

1. Windows 64
2. Windows 32
3. MacOS
4. Linux
5. Linux

3. Unpack them all

4. Zip each of them with the following command:

```
$ cd directory_with_dist_content
$ zip -0 -r ../dist-1.zip *
```

5. Install it locally and test how it works with the plugin

```
$ mvn install:install-file -Dfile=dist-1.zip -DgroupId=com.jcabi \
-DartifactId=mysql-dist -Dversion=5.6.21 -Dpackaging=zip -Dclassifier=mac-x86_64
```

6. Sign them all, using gnupg:

```
$ gpg -ab pom.xml
$ gpg -ab dist-1.zip
$ gpg -ab dist-2.zip
$ gpg -ab dist-3.zip
$ gpg -ab dist-4.zip
$ gpg -ab dist-5.zip
```

5. Login to sonatype and deploy them both (pom.xml and all dist-*.zip). You
should have these files before upload:

```
pom.xml
pom.pom.asc
dist-1.zip
dist-1.zip.asc
dist-2.zip
dist-2.zip.asc
dist-3.zip
dist-3.zip.asc
dist-4.zip
dist-4.zip.asc
dist-5.zip
dist-6.zip.asc
```
42 changes: 42 additions & 0 deletions deploy/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.jcabi</groupId>
<artifactId>mysql-dist</artifactId>
<version>5.6.21</version>
<packaging>zip</packaging>
<name>mysql-dist</name>
<description>MySQL distribution</description>
<url>http://www.jcabi.com</url>
<inceptionYear>2013</inceptionYear>
<licenses>
<license>
<name>BSD</name>
<url>http://www.jcabi.com/LICENSE.txt</url>
<distribution>repo</distribution>
<comments><![CDATA[
This is free open source project, feel free to redistribute it
]]></comments>
</license>
</licenses>
<developers>
<developer>
<id>1</id>
<name>Yegor Bugayenko</name>
<email>[email protected]</email>
<organization>tpc2.com</organization>
<organizationUrl>http://www.tpc2.com</organizationUrl>
<roles>
<role>Architect</role>
<role>Developer</role>
</roles>
<timezone>+1</timezone>
</developer>
</developers>
<scm>
<connection>scm:git:github.com:jcabi/jcabi-mysql-maven-plugin.git</connection>
<developerConnection>scm:git:github.com:jcabi/jcabi-mysql-maven-plugin.git</developerConnection>
<url>https://github.com/jcabi/jcabi-mysql-maven-plugin</url>
</scm>
</project>

0 comments on commit 2ac9a54

Please sign in to comment.