Skip to content

Commit 047c580

Browse files
mkristiankares
authored andcommitted
setup oss.sonatype.org deployment
needed to do the "install gems" differently since it conflicted with the main artifact. if snapshot version ```$mvn deploy``` will deploy the artifact to https://oss.sonatype.org/content/repositories/snapshots/ and the released version will go to a staging repository on https://oss.sonatype.org/content/repositories/ it is also possible to use the maven release mantra: * mvn release:prepare * mvn release:perform
1 parent d270046 commit 047c580

File tree

1 file changed

+37
-55
lines changed

1 file changed

+37
-55
lines changed

pom.xml

Lines changed: 37 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
-->
88
<project xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd' xmlns='http://maven.apache.org/POM/4.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
99
<modelVersion>4.0.0</modelVersion>
10+
11+
<parent>
12+
<groupId>org.sonatype.oss</groupId>
13+
<artifactId>oss-parent</artifactId>
14+
<version>7</version>
15+
</parent>
16+
1017
<groupId>org.jruby.rack</groupId>
1118
<artifactId>jruby-rack</artifactId>
1219
<version>1.1.17-SNAPSHOT</version>
@@ -45,33 +52,6 @@
4552
</license>
4653
</licenses>
4754

48-
<distributionManagement>
49-
<repository>
50-
<id>codehaus-jruby-repository</id>
51-
<name>JRuby Central Repository</name>
52-
<url>dav:https://dav.codehaus.org/repository/jruby</url>
53-
</repository>
54-
<snapshotRepository>
55-
<id>codehaus-jruby-snapshot-repository</id>
56-
<name>JRuby Central Development Repository</name>
57-
<url>dav:https://dav.codehaus.org/snapshots.repository/jruby</url>
58-
</snapshotRepository>
59-
</distributionManagement>
60-
61-
<repositories>
62-
<repository>
63-
<id>codehaus</id>
64-
<name>Codehaus Repository</name>
65-
<releases>
66-
<enabled>true</enabled>
67-
</releases>
68-
<snapshots>
69-
<enabled>false</enabled>
70-
</snapshots>
71-
<url>http://repository.codehaus.org</url>
72-
</repository>
73-
</repositories>
74-
7555
<developers>
7656
<developer>
7757
<id>nicksieger</id>
@@ -143,6 +123,27 @@
143123
<version>3.1.4.RELEASE</version>
144124
<scope>test</scope>
145125
</dependency>
126+
<dependency>
127+
<groupId>rubygems</groupId>
128+
<artifactId>bouncy-castle-java</artifactId>
129+
<version>1.5.0147</version>
130+
<scope>provided</scope>
131+
<type>gem</type>
132+
</dependency>
133+
<dependency>
134+
<groupId>rubygems</groupId>
135+
<artifactId>jruby-openssl</artifactId>
136+
<version>0.9.4</version>
137+
<scope>provided</scope>
138+
<type>gem</type>
139+
</dependency>
140+
<dependency>
141+
<groupId>rubygems</groupId>
142+
<artifactId>bundler</artifactId>
143+
<version>${bundler.version}</version>
144+
<scope>provided</scope>
145+
<type>gem</type>
146+
</dependency>
146147
</dependencies>
147148

148149
<build>
@@ -190,28 +191,16 @@
190191
<groupId>de.saumya.mojo</groupId>
191192
<artifactId>gem-maven-plugin</artifactId>
192193
<version>${saumya.mojo.version}</version>
194+
<configuration>
195+
<includeOpenSSL>false</includeOpenSSL>
196+
<gemHomes>
197+
<provided>${project.build.directory}/rubygems</provided>
198+
</gemHomes>
199+
</configuration>
193200
<executions>
194-
<execution>
195-
<!-- NOTE: due JRuby 1.6.8 -->
196-
<id>gem-install-jruby-openssl</id>
197-
<phase>test</phase>
198-
<goals><goal>install</goal></goals>
199-
<configuration>
200-
<jruby.version>${jruby.version}</jruby.version>
201-
<includeOpenSSL>false</includeOpenSSL>
202-
<args>--local ${vendor.gems.path}/bouncy-castle-java-1.5.0147.gem ${vendor.gems.path}/jruby-openssl-0.9.4.gem</args>
203-
</configuration>
204-
</execution>
205-
<execution>
206-
<id>gem-install-bundler</id>
207-
<phase>test</phase>
208-
<goals><goal>install</goal></goals>
209-
<configuration>
210-
<jruby.version>${jruby.version}</jruby.version>
211-
<includeOpenSSL>false</includeOpenSSL>
212-
<args>bundler -v ${bundler.version}</args>
213-
</configuration>
214-
</execution>
201+
<execution>
202+
<goals><goal>initialize</goal></goals>
203+
</execution>
215204
</executions>
216205
</plugin>
217206
<plugin>
@@ -259,13 +248,6 @@
259248
</executions>
260249
</plugin>
261250
</plugins>
262-
<extensions>
263-
<extension>
264-
<groupId>org.apache.maven.wagon</groupId>
265-
<artifactId>wagon-webdav</artifactId>
266-
<version>1.0-beta-2</version>
267-
</extension>
268-
</extensions>
269251
</build>
270252

271253
<profiles>

0 commit comments

Comments
 (0)