Skip to content

Commit

Permalink
Add Build to POM
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathachai committed Nov 24, 2019
1 parent 98c47dc commit cde225c
Showing 1 changed file with 40 additions and 2 deletions.
42 changes: 40 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>groupId</groupId>
<artifactId>TrackrMan</artifactId>
<version>1.0-SNAPSHOT</version>
<version>beta0.1</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand All @@ -30,4 +30,42 @@

</dependencies>

</project>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.TrackrMan.AppRunner</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>

</project>

0 comments on commit cde225c

Please sign in to comment.