Skip to content

Commit 90a22d0

Browse files
committed
added release steps and automatic deploy into nexus
1 parent 1fc11cf commit 90a22d0

File tree

2 files changed

+82
-5
lines changed

2 files changed

+82
-5
lines changed

DEVELOPMENT.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
Development info
2+
================
3+
4+
How to build project
5+
--------------------
6+
7+
[Maven 2.2.x](http://maven.apache.org/) is used as build tool for this project.
8+
9+
To build project simply run `mvn clean package` from command line (or equal command from your IDE)
10+
11+
12+
How to release new version of the project
13+
-----------------------------------------
14+
15+
### Before release
16+
jar file for this project is released into jboss.org nexus maven repository running at https://repository.jboss.org/nexus/.
17+
To be able release this project you have to:
18+
19+
* have jboss.org user account
20+
* have permission to release into jboss.org nexus maven repository granted for this account
21+
* next section added into your maven `settings.xml` file
22+
````
23+
<server>
24+
<id>jboss-releases-repository</id>
25+
<username>jboss.org username</username>
26+
<password>jboss.org password</password>
27+
</server>
28+
29+
````
30+
31+
### Release steps
32+
* check that `version` is updated to the correct version in `pom.xml`
33+
* update `README.md`
34+
* increase version in download URL above releases table
35+
* add row with release date into release table
36+
* push all changes into github git repository
37+
* check that Milestone exists for the release in issue tracker - https://github.com/searchisko/elasticsearch-river-jira/milestones
38+
* check that all Issues resolved in this release are correctly assigned to the Milestone and closed
39+
* run `mvn clean package deploy` command, check it finish successfully
40+
* create tag named `vx.y.z` (where `x.y.z` is released version) and push it into github git repository
41+
* set 'release date' and description for Milestone in the issue tracker and close it
42+

pom.xml

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>org.jboss.elasticsearch</groupId>
77
<artifactId>elasticsearch-river-jira</artifactId>
8-
<version>1.8.2</version>
8+
<version>1.8.3</version>
99
<packaging>jar</packaging>
1010
<description>JIRA River for Elasticsearch</description>
1111
<inceptionYear>2012</inceptionYear>
12-
<url>http://github.com/jbossorg/elasticsearch-river-jira</url>
12+
<url>http://github.com/searchisko/elasticsearch-river-jira</url>
1313

1414
<developers>
1515
<developer>
@@ -26,16 +26,23 @@
2626
</license>
2727
</licenses>
2828
<scm>
29-
<connection>scm:git:git@github.com:jbossorg/elasticsearch-river-jira.git</connection>
30-
<developerConnection>scm:git:git@github.com:jbossorg/elasticsearch-river-jira.git</developerConnection>
31-
<url>http://github.com/jbossorg/elasticsearch-river-jira</url>
29+
<connection>scm:git:https://github.com/searchisko/elasticsearch-river-remote.git</connection>
30+
<developerConnection>scm:git:https://github.com/searchisko/elasticsearch-river-remote.git</developerConnection>
31+
<url>http://github.com/searchisko/elasticsearch-river-jira</url>
3232
</scm>
33+
<ciManagement>
34+
<system>travis</system>
35+
<url>https://travis-ci.org/searchisko/elasticsearch-river-jira</url>
36+
</ciManagement>
3337

3438
<properties>
3539
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3640
<java.version>1.7</java.version>
3741
<elasticsearch.version>1.4.0</elasticsearch.version>
3842
<structured-content-tools.version>1.3.7</structured-content-tools.version>
43+
<!-- The Base URL of Nexus instance where we want to stage and automatically deploy during release-->
44+
<jboss.nexus.base.url>https://repository.jboss.org/nexus/</jboss.nexus.base.url>
45+
<!-- The URL of Nexus reposutory where we want to stage and deploy during release-->
3946
<jboss.releases.repo.url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/</jboss.releases.repo.url>
4047
<jboss.snapshots.repo.url>https://repository.jboss.org/nexus/content/repositories/snapshots/</jboss.snapshots.repo.url>
4148
</properties>
@@ -180,6 +187,34 @@
180187
</execution>
181188
</executions>
182189
</plugin>
190+
<!-- Direct deploy to the maven repository during release -->
191+
<plugin>
192+
<groupId>org.apache.maven.plugins</groupId>
193+
<artifactId>maven-deploy-plugin</artifactId>
194+
<configuration>
195+
<skip>true</skip>
196+
</configuration>
197+
</plugin>
198+
<plugin>
199+
<groupId>org.sonatype.plugins</groupId>
200+
<artifactId>nexus-staging-maven-plugin</artifactId>
201+
<executions>
202+
<execution>
203+
<id>default-deploy</id>
204+
<phase>deploy</phase>
205+
<goals>
206+
<goal>deploy</goal>
207+
<goal>release</goal>
208+
</goals>
209+
</execution>
210+
</executions>
211+
<configuration>
212+
<nexusUrl>${jboss.nexus.base.url}</nexusUrl>
213+
<!-- The server "id" element from settings.xml to use authentication from -->
214+
<serverId>jboss-releases-repository</serverId>
215+
</configuration>
216+
</plugin>
217+
<!-- coverage reports to the cobertura -->
183218
<plugin>
184219
<groupId>org.codehaus.mojo</groupId>
185220
<artifactId>cobertura-maven-plugin</artifactId>

0 commit comments

Comments
 (0)