Skip to content

Commit

Permalink
Add development pom.xml
Browse files Browse the repository at this point in the history
Motivation
----------
While ivy/ant works for years now, it is a little too hard to get
started when contributing simple patches with IDE setup. Since most
IDEs have good maven support, adding a pom.xml to get up and running
quickly makes it easier to contribute and develop.

Modification
------------
Add a pom.xml which is inteded to get up and running quickly. It is not
designed to do release management, which still happens through the
ant/ivy pipeline.

Note that the test case fix is by intention, because otherwise the
unit tests get messed up when ran through IntelliJ with the maven
file imported.

Result
------
Contributors and developers can import the project more easily and
contribute patches.

Change-Id: I837eb73cb07560aef15301490eaab56e484be3a8
Reviewed-on: http://review.couchbase.org/34845
Reviewed-by: Michael Nitschinger <[email protected]>
Tested-by: Michael Nitschinger <[email protected]>
  • Loading branch information
daschl authored and Michael Nitschinger committed Mar 27, 2014
1 parent 3ba49ca commit 7a8f15e
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
<exclude name=".gitreview" />
<exclude name=".git/**" />
<exclude name=".idea/**" />
<exclude name="pom.xml" />
</fileset>
</delete>
</target>
Expand Down
89 changes: 89 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">

<!--
== NOTE ==
This maven file is just for developer convenience, release management
and primary dependency configuration, as well as all ant targets are
managed through ant/ivy.
-->

<modelVersion>4.0.0</modelVersion>
<groupId>net.spy</groupId>
<artifactId>spymemcached</artifactId>
<version>2.999.999-SNAPSHOT</version> <!-- not used -->

<name>Spymemcached</name>
<description>A client library for memcached.</description>
<url>http://www.couchbase.org/code/couchbase/java</url>

<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/couchbase/spymemcached</url>
<connection>
scm:git:git://github.com/couchbase/spymemcached.git
</connection>
</scm>
<developers>
<developer>
<id>net.spy.spymemcached</id>
<name>The Spymemcached Project Contributors</name>
<url>https://code.google.com/p/spymemcached/</url>
<organization>Couchbase, Inc.</organization>
<organizationUrl>http://couchbase.com/</organizationUrl>
</developer>
</developers>

<dependencies>
<!-- Optional Dependencies at Runtime -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.5</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>3.0.3.RELEASE</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.codahale.metrics</groupId>
<artifactId>metrics-core</artifactId>
<version>3.0.1</version>
<optional>true</optional>
</dependency>

<!-- Test Dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jmock</groupId>
<artifactId>jmock</artifactId>
<version>1.2.0</version>
<scope>test</scope>
</dependency>
</dependencies>


</project>
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* TODO: Implement revid check
* TODO: Replace a lot of the checks for zeros
*/
public class ResponseMessageBaseCase {
public abstract class ResponseMessageBaseCase {

protected byte[] responsebytes;
protected ResponseMessage instance = null;
Expand Down

0 comments on commit 7a8f15e

Please sign in to comment.