Skip to content

Commit

Permalink
Started to relax the test key constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Prevost committed Feb 24, 2015
1 parent dc32786 commit 6bacc9a
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 37 deletions.
15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,13 @@
## Usage

1. Clone the repository.

2. Run the following command

```bash
cd <projectFolder>
mvn clean install
```

3. Put the following dependency in your pom.xml
1. Put the following dependency in your pom.xml

```xml
<dependency>
<groupId>com.lotaris.minirox.client</groupId>
<artifactId>minirox-client-java-core</artifactId>
<version>2.1.0</version>
<artifactId>minirox-client-java</artifactId>
<version>2.1.1</version>
</dependenc>
```

Expand Down
30 changes: 15 additions & 15 deletions nbactions.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<actionName>CUSTOM-PrepareRelease</actionName>
<displayName>Prepare release</displayName>
<actionName>CUSTOM-Compile</actionName>
<displayName>Compile</displayName>
<goals>
<goal>versions:set</goal>
<goal>versions:commit</goal>
<goal>clean</goal>
<goal>install</goal>
<goal>-e</goal>
</goals>
<activatedProfiles>
<activatedProfile>release</activatedProfile>
</activatedProfiles>
</action>

<action>
<actionName>CUSTOM-BuildRelease</actionName>
<displayName>Build release</displayName>
<actionName>CUSTOM-deploy</actionName>
<displayName>Deploy</displayName>
<goals>
<goal>clean</goal>
<goal>install</goal>
<goal>deploy</goal>
<goal>-e</goal>
</goals>
</action>
<action>
<actionName>CUSTOM-set-version</actionName>
<displayName>Change Version</displayName>
<goals>
<goal>versions:set</goal>
<goal>versions:commit</goal>
<goal>-e</goal>
<goal>-Pversioning</goal>
</goals>
<activatedProfiles>
<activatedProfile>release</activatedProfile>
</activatedProfiles>
</action>
</actions>
134 changes: 124 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,51 +5,165 @@
<modelVersion>4.0.0</modelVersion>

<groupId>com.lotaris.minirox.client</groupId>
<artifactId>minirox-client-java-core</artifactId>
<version>2.1.1-SNAPSHOT</version>
<artifactId>minirox-client-java</artifactId>
<version>2.1.1</version>
<packaging>jar</packaging>

<name>MiniROX Client Java</name>
<description>Base code to write MiniROX clients in Java.</description>

<packaging>jar</packaging>
<url>https://github.com/lotaris/minirox-client-java</url>

<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>

<developers>
<developer>
<name>Laurent Prevost</name>
<email>[email protected]</email>
<organization>https://github.com/lotaris</organization>
</developer>
</developers>

<scm>
<connection>scm:git:[email protected]:lotaris/minirox-client-java.git</connection>
<developerConnection>scm:git:[email protected]:lotaris/minirox-client-java.git</developerConnection>
<url>[email protected]:lotaris/minirox-client-java.git</url>
</scm>

<properties>
<lotaris.rox.core.version>2.0.0</lotaris.rox.core.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<lotaris.rox.core.version>2.2.2</lotaris.rox.core.version>
</properties>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.3</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<configuration>
<encoding>UTF-8</encoding>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<version>3.1</version>
<configuration>
<encoding>UTF-8</encoding>
<encoding>${project.build.sourceEncoding}</encoding>
<source>1.7</source>
<target>1.7</target>
<compilerArgs>
<arg>-Xlint</arg>
</compilerArgs>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.1</version>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
<id>versioning</id>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.0</version>
<version>2.1</version>
</plugin>
</plugins>
</build>
Expand All @@ -59,7 +173,7 @@
<dependencies>
<dependency>
<groupId>com.lotaris.rox.client</groupId>
<artifactId>rox-client-java-core</artifactId>
<artifactId>rox-client-java</artifactId>
<version>${lotaris.rox.core.version}</version>
<optional>true</optional>
</dependency>
Expand Down

0 comments on commit 6bacc9a

Please sign in to comment.