Skip to content

Commit 0018754

Browse files
committed
added travis and oss sonatype parent
1 parent fbc8131 commit 0018754

File tree

3 files changed

+30
-21
lines changed

3 files changed

+30
-21
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: java
2+
3+
install: mvn clean package -DskipTests=true

bundle.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
mvn source:jar javadoc:jar package gpg:sign repository:bundle-create -Dgpg.passphrase=$1

pom.xml

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
<packaging>pom</packaging>
88
<name>OpenStack Java SDK</name>
99
<description>OpenStack Java SDK</description>
10+
11+
12+
<parent>
13+
<groupId>org.sonatype.oss</groupId>
14+
<artifactId>oss-parent</artifactId>
15+
<version>7</version>
16+
</parent>
17+
18+
1019
<modules>
1120
<module>nova-client</module>
1221
<module>glance-client</module>
@@ -69,45 +78,40 @@
6978
<url>http://github.com/woorea/openstack-java-sdk.git</url>
7079
</scm>
7180

72-
<distributionManagement>
73-
<repository>
74-
<id>releases</id>
75-
<url>https://github.com/woorea/maven/raw/master/releases</url>
76-
</repository>
77-
<snapshotRepository>
78-
<id>snapshots</id>
79-
<url>https://github.com/woorea/maven/raw/master/snapshots</url>
80-
</snapshotRepository>
81-
</distributionManagement>
82-
83-
<repositories>
84-
<repository>
85-
<id>javanet-snapshots</id>
86-
<snapshots />
87-
<url>https://maven.java.net/content/repositories/snapshots</url>
88-
</repository>
89-
</repositories>
90-
9181
<dependencies>
9282
<dependency>
9383
<groupId>org.codehaus.jackson</groupId>
9484
<artifactId>jackson-mapper-asl</artifactId>
9585
<version>1.9.4</version>
9686
</dependency>
9787
</dependencies>
98-
88+
9989
<build>
10090
<plugins>
10191
<plugin>
10292
<groupId>org.apache.maven.plugins</groupId>
10393
<artifactId>maven-compiler-plugin</artifactId>
104-
<version>2.3.2</version>
94+
<version>3.0</version>
10595
<configuration>
10696
<source>1.6</source>
10797
<target>1.6</target>
10898
<encoding>UTF-8</encoding>
10999
</configuration>
110100
</plugin>
101+
<plugin>
102+
<groupId>org.apache.maven.plugins</groupId>
103+
<artifactId>maven-gpg-plugin</artifactId>
104+
<version>1.4</version>
105+
<executions>
106+
<execution>
107+
<id>sign-artifacts</id>
108+
<phase>verify</phase>
109+
<goals>
110+
<goal>sign</goal>
111+
</goals>
112+
</execution>
113+
</executions>
114+
</plugin>
111115
<plugin>
112116
<groupId>org.apache.maven.plugins</groupId>
113117
<artifactId>maven-eclipse-plugin</artifactId>

0 commit comments

Comments
 (0)