Skip to content

Commit

Permalink
added release steps and automatic deploy into nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
velias committed Jan 22, 2015
1 parent 1fc11cf commit 90a22d0
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 5 deletions.
42 changes: 42 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Development info
================

How to build project
--------------------

[Maven 2.2.x](http://maven.apache.org/) is used as build tool for this project.

To build project simply run `mvn clean package` from command line (or equal command from your IDE)


How to release new version of the project
-----------------------------------------

### Before release
jar file for this project is released into jboss.org nexus maven repository running at https://repository.jboss.org/nexus/.
To be able release this project you have to:

* have jboss.org user account
* have permission to release into jboss.org nexus maven repository granted for this account
* next section added into your maven `settings.xml` file
````
<server>
<id>jboss-releases-repository</id>
<username>jboss.org username</username>
<password>jboss.org password</password>
</server>

````

### Release steps
* check that `version` is updated to the correct version in `pom.xml`
* update `README.md`
* increase version in download URL above releases table
* add row with release date into release table
* push all changes into github git repository
* check that Milestone exists for the release in issue tracker - https://github.com/searchisko/elasticsearch-river-jira/milestones
* check that all Issues resolved in this release are correctly assigned to the Milestone and closed
* run `mvn clean package deploy` command, check it finish successfully
* create tag named `vx.y.z` (where `x.y.z` is released version) and push it into github git repository
* set 'release date' and description for Milestone in the issue tracker and close it

45 changes: 40 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.elasticsearch</groupId>
<artifactId>elasticsearch-river-jira</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
<packaging>jar</packaging>
<description>JIRA River for Elasticsearch</description>
<inceptionYear>2012</inceptionYear>
<url>http://github.com/jbossorg/elasticsearch-river-jira</url>
<url>http://github.com/searchisko/elasticsearch-river-jira</url>

<developers>
<developer>
Expand All @@ -26,16 +26,23 @@
</license>
</licenses>
<scm>
<connection>scm:git:git@github.com:jbossorg/elasticsearch-river-jira.git</connection>
<developerConnection>scm:git:git@github.com:jbossorg/elasticsearch-river-jira.git</developerConnection>
<url>http://github.com/jbossorg/elasticsearch-river-jira</url>
<connection>scm:git:https://github.com/searchisko/elasticsearch-river-remote.git</connection>
<developerConnection>scm:git:https://github.com/searchisko/elasticsearch-river-remote.git</developerConnection>
<url>http://github.com/searchisko/elasticsearch-river-jira</url>
</scm>
<ciManagement>
<system>travis</system>
<url>https://travis-ci.org/searchisko/elasticsearch-river-jira</url>
</ciManagement>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.7</java.version>
<elasticsearch.version>1.4.0</elasticsearch.version>
<structured-content-tools.version>1.3.7</structured-content-tools.version>
<!-- The Base URL of Nexus instance where we want to stage and automatically deploy during release-->
<jboss.nexus.base.url>https://repository.jboss.org/nexus/</jboss.nexus.base.url>
<!-- The URL of Nexus reposutory where we want to stage and deploy during release-->
<jboss.releases.repo.url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/</jboss.releases.repo.url>
<jboss.snapshots.repo.url>https://repository.jboss.org/nexus/content/repositories/snapshots/</jboss.snapshots.repo.url>
</properties>
Expand Down Expand Up @@ -180,6 +187,34 @@
</execution>
</executions>
</plugin>
<!-- Direct deploy to the maven repository during release -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
<goal>release</goal>
</goals>
</execution>
</executions>
<configuration>
<nexusUrl>${jboss.nexus.base.url}</nexusUrl>
<!-- The server "id" element from settings.xml to use authentication from -->
<serverId>jboss-releases-repository</serverId>
</configuration>
</plugin>
<!-- coverage reports to the cobertura -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
Expand Down

0 comments on commit 90a22d0

Please sign in to comment.