Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Generate a standalone executable jar file, including all dependencies…
Browse files Browse the repository at this point in the history
… in it. Run it with 'java -jar shjgit-*-standalone.jar'.
  • Loading branch information
hugojosefson committed Jan 9, 2010
1 parent f6e8e89 commit 82cb578
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,22 @@
<target>1.${java.lang.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.dstovall</groupId>
<artifactId>onejar-maven-plugin</artifactId>
<version>1.4.1</version>
<configuration>
<mainClass>com.sonatype.shjgit.Main</mainClass>
<filename>${project.build.finalName}-standalone.jar</filename>
</configuration>
<executions>
<execution>
<goals>
<goal>one-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand All @@ -69,4 +85,11 @@
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>onejar-maven-plugin.googlecode.com</id>
<url>http://onejar-maven-plugin.googlecode.com/svn/mavenrepo</url>
</pluginRepository>
</pluginRepositories>

</project>

0 comments on commit 82cb578

Please sign in to comment.