Permalink
Browse files

Add assembly plugin. Closes #1.

  • Loading branch information...
1 parent 8fb6a17 commit 724aaf59fb9c5b9741b81a70955e57aedea55e57 @JakeWharton committed Jan 20, 2012
Showing with 22 additions and 8 deletions.
  1. +22 −8 pom.xml
View
30 pom.xml
@@ -18,7 +18,7 @@
<description>A Java wrapper around the Pingdom RESTful API and a simple DSL for easy interaction.</description>
<url>https://github.com/JakeWharton/pingdom-java/</url>
<inceptionYear>2011</inceptionYear>
-
+
<developers>
<developer>
<name>Jake Wharton</name>
@@ -31,7 +31,7 @@
</roles>
</developer>
</developers>
-
+
<licenses>
<license>
<name>Apache License Version 2.0</name>
@@ -95,7 +95,7 @@
<artifactId>gson</artifactId>
<version>${gson.version}</version>
</dependency>
-
+
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
@@ -115,7 +115,7 @@
<target>${java.version}</target>
</configuration>
</plugin>
-
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
@@ -128,7 +128,7 @@
<version>2.2</version>
<!--
YOU MUST PUT THE FOLLOWING IN ~/.m2/settings.xml
-
+
<servers>
<server>
<id>github-project-site</id>
@@ -137,8 +137,22 @@
</servers>
-->
</plugin>
+
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+ <mainClass>fully.qualified.MainClass</mainClass>
+ </manifest>
+ </archive>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ </configuration>
+ </plugin>
</plugins>
-
+
<extensions>
<extension>
<groupId>org.apache.maven.scm</groupId>
@@ -201,7 +215,7 @@
</plugin>
</plugins>
</reporting>
-
+
<profiles>
<profile>
<id>release-sign-artifacts</id>
@@ -227,7 +241,7 @@
</execution>
</executions>
</plugin>
-
+
<plugin>
<groupId>com.jakewharton</groupId>
<artifactId>github-deploy-maven-plugin</artifactId>

0 comments on commit 724aaf5

Please sign in to comment.