Skip to content

Commit

Permalink
the Maven repository is now hosted on github
Browse files Browse the repository at this point in the history
  • Loading branch information
florinpatrascu committed Dec 6, 2014
1 parent 39c5805 commit 1a9c5a2
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 12 deletions.
39 changes: 29 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,40 @@ For more information on **Rack**, visit http://rack.github.io.
# Build

mvn install
or:
or:

mvn install -Dmaven.test.skip=true


—————-—————-———-✂︎
work in progress
# Pull it from Maven!

# Maven distribution hosted on [Github](https://github.com/florinpatrascu/jrack/tree/mvn-repo)

Just add these to your __pom.xml__ file:

```xml
<dependency>
<groupId>org.jrack</groupId>
<artifactId>jrack</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>org.jrack</groupId>
<artifactId>jrack</artifactId>
<version>2.0.1-SNAPSHOT</version>
</dependency>
```

### Submitting an Issue
We use the [GitHub issue tracker](https://github.com/florinpatrascu/jrack/issues) to track bugs and features. Before submitting a bug report or feature request, check to make sure it hasn't already been submitted. When submitting a bug report, please include a [Gist](https://gist.github.com/) that includes a stack trace and any other details that may be necessary to reproduce the bug, including your Java version and operating system. Ideally, a bug report should include a pull request with failing specs.


### License

Copyright (c) 2012-2014 Florin T.Pătraşcu

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

57 changes: 55 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
</license>
</licenses>
<scm>
<connection>scm:git:git@github.com:florinpatrascu/jrack.git</connection>
<developerConnection>scm:git:git@github.com:florinpatrascu/jrack.git</developerConnection>
<connection>scm:git:ssh@github.com:florinpatrascu/jrack.git</connection>
<developerConnection>scm:git:ssh@github.com:florinpatrascu/jrack.git</developerConnection>
<url>scm:git:git@github.com:florinpatrascu/jrack.git</url>
</scm>
<developers>
Expand All @@ -31,6 +31,7 @@
<properties>
<jetty.version>9.0.2.v20130417</jetty.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<github.global.server>github</github.global.server>
</properties>

<dependencies>
Expand Down Expand Up @@ -82,8 +83,21 @@
<artifactId>snakeyaml</artifactId>
<version>1.14</version>
</dependency>
<dependency>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.10</version>
</dependency>
</dependencies>

<distributionManagement>
<repository>
<id>internal.repo</id>
<name>Temporary Staging Repository</name>
<url>file://${project.build.directory}/mvn-repo</url>
</repository>
</distributionManagement>

<build>
<resources>
<resource>
Expand All @@ -102,7 +116,16 @@
</resource>
</resources>


<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.1</version>
<configuration>
<altDeploymentRepository>internal.repo::default::file://${project.build.directory}/mvn-repo
</altDeploymentRepository>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down Expand Up @@ -150,6 +173,36 @@
<configuration>
</configuration>
</plugin>


<!-- With the help from:
~ http://stackoverflow.com/questions/14013644/hosting-a-maven-repository-on-github
~ Thank you!
-->
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.10</version>
<configuration>
<message>Maven artifacts for ${project.version}</message>
<noJekyll>true</noJekyll>
<outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>
<branch>refs/heads/mvn-repo</branch>
<includes>
<include>**/*</include>
</includes>
<repositoryName>jrack</repositoryName>
<repositoryOwner>florinpatrascu</repositoryOwner>
</configuration>
<executions>
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>deploy</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 1a9c5a2

Please sign in to comment.