|
@@ -24,14 +24,34 @@
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
|
+ <finalName>${project.artifactId}-${project.version}.${build.number}</finalName>
|
|
|
<sourceDirectory>src</sourceDirectory>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
|
- <version>3.5.1</version>
|
|
|
+ <artifactId>maven-assembly-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>single</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <archive>
|
|
|
+ <manifest>
|
|
|
+ <addClasspath>true</addClasspath>
|
|
|
+ <mainClass>eu.tankernn.pong.Pong</mainClass>
|
|
|
+ </manifest>
|
|
|
+ </archive>
|
|
|
+ <!-- The filename of the assembled distribution file default ${project.build.finalName} -->
|
|
|
+ <finalName>${project.build.finalName}</finalName>
|
|
|
+ <appendAssemblyId>false</appendAssemblyId>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
<configuration>
|
|
|
- <source>1.8</source>
|
|
|
- <target>1.8</target>
|
|
|
+ <descriptorRefs>
|
|
|
+ <descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
+ </descriptorRefs>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
<plugin>
|
|
@@ -49,5 +69,18 @@
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>res</directory>
|
|
|
+ <excludes>
|
|
|
+ </excludes>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
</build>
|
|
|
+
|
|
|
+ <properties>
|
|
|
+ <maven.compiler.source>1.8</maven.compiler.source>
|
|
|
+ <maven.compiler.target>1.8</maven.compiler.target>
|
|
|
+ <build.number>SNAPSHOT</build.number>
|
|
|
+ </properties>
|
|
|
</project>
|