Skip to content

Instantly share code, notes, and snippets.

@wyatt-herkamp
Created September 8, 2018 22:28
Show Gist options
  • Save wyatt-herkamp/128a11fb29ac0c50a5a11d4dbad70697 to your computer and use it in GitHub Desktop.
Save wyatt-herkamp/128a11fb29ac0c50a5a11d4dbad70697 to your computer and use it in GitHub Desktop.
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<archive>
<manifest>
<addClasspath>false</addClasspath>
<mainClass>Path to Main Class</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment