Skip to content

Instantly share code, notes, and snippets.

@SakaDream
Last active May 17, 2017 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SakaDream/7d89913d14db6926e357f5254692f94c to your computer and use it in GitHub Desktop.
Save SakaDream/7d89913d14db6926e357f5254692f94c to your computer and use it in GitHub Desktop.
<repositories>
<repository>
<id>YOUR-PROJECT-NAME-mvn-repo</id>
<url>https://raw.github.com/YOUR-USERNAME/YOUR-PROJECT-NAME/mvn-repo/</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>YOUR-PROJECT-GROUP-ID</groupId>
<artifactId>YOUR-PROJECT-ARTIFACT-ID</artifactId>
<version>YOUR-PROJECT-VERSION</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>YOUR-MAIN-CLASS</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment