diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-02-07 10:57:09 +0100 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-02-07 10:57:09 +0100 |
commit | 18597a7008da01006d823eab61d9f857b83a242c (patch) | |
tree | 3b56ad89aa55ef8d78ed9fb12f64ea3c55e13395 /same/pom.xml | |
parent | c27be9ac861bb74f9be1ec375034d8d2ed0c35dc (diff) |
Add jar-with-dependencies support in same project.
– Use assembly:single to generate a jar file.
Diffstat (limited to 'same/pom.xml')
-rw-r--r-- | same/pom.xml | 50 |
1 files changed, 23 insertions, 27 deletions
diff --git a/same/pom.xml b/same/pom.xml index 60402b3..d7d5ca4 100644 --- a/same/pom.xml +++ b/same/pom.xml @@ -1,19 +1,15 @@ -<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"> +<?xml version="1.0" encoding="utf8"?> +<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"> <modelVersion>4.0.0</modelVersion> - <groupId>com.orbekk</groupId> <artifactId>same</artifactId> <version>0.0-SNAPSHOT</version> <packaging>jar</packaging> - <name>same</name> <url>http://github.com/orbekk/master</url> - <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> - <repositories> <repository> <id>jsonrpc3j-webdav-maven-repo</id> @@ -22,81 +18,81 @@ <layout>default</layout> </repository> </repositories> - <dependencies> <dependency> <groupId>com.googlecode</groupId> <artifactId>jsonrpc4j</artifactId> <version>0.18</version> </dependency> - <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-mapper-asl</artifactId> <version>1.7.5</version> </dependency> - <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> <scope>test</scope> </dependency> - <dependency> - <groupId>org.mockito</groupId> - <artifactId>mockito-all</artifactId> - <version>1.9.0</version> - <scope>test</scope> + <groupId>org.mockito</groupId> + <artifactId>mockito-all</artifactId> + <version>1.9.0</version> + <scope>test</scope> </dependency> - <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.6.4</version> </dependency> - <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.6.4</version> </dependency> - <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> </dependency> - <dependency> <groupId>javax.portlet</groupId> <artifactId>portlet-api</artifactId> <version>2.0</version> </dependency> - <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-servlet</artifactId> <version>8.0.0.M3</version> </dependency> - <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-server</artifactId> - <version>8.0.0.M3</version> + <version>8.0.0.M3</version> </dependency> - <dependency> - <groupId>org.apache.httpcomponents</groupId> - <artifactId>httpclient</artifactId> - <version>4.1.2</version> + <groupId>org.apache.httpcomponents</groupId> + <artifactId>httpclient</artifactId> + <version>4.1.2</version> </dependency> - </dependencies> - <build> <plugins> <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <configuration> + <archive> + <manifest> + <mainClass>com.orbekk.same.App</mainClass> + </manifest> + </archive> + <descriptorRefs> + <descriptorRef>jar-with-dependencies</descriptorRef> + </descriptorRefs> + </configuration> + </plugin> + <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> |