pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>eu.tankernn.game</groupId>
  5. <artifactId>tankernn-3d-game</artifactId>
  6. <version>0.0.2</version>
  7. <name>Tankernn 3D Game</name>
  8. <repositories>
  9. <repository>
  10. <id>tankernn</id>
  11. <name>Tankernn Maven Repository</name>
  12. <url>http://repo.maven.tankernn.eu</url>
  13. </repository>
  14. </repositories>
  15. <dependencies>
  16. <dependency>
  17. <groupId>eu.tankernn.gameEngine</groupId>
  18. <artifactId>tankernn-game-engine</artifactId>
  19. <version>1.2</version>
  20. </dependency>
  21. <dependency>
  22. <groupId>junit</groupId>
  23. <artifactId>junit</artifactId>
  24. <version>4.12</version>
  25. <scope>test</scope>
  26. </dependency>
  27. <!-- https://mvnrepository.com/artifact/io.netty/netty-all -->
  28. <dependency>
  29. <groupId>io.netty</groupId>
  30. <artifactId>netty-all</artifactId>
  31. <version>4.0.4.Final</version>
  32. </dependency>
  33. </dependencies>
  34. <build>
  35. <finalName>${project.artifactId}-${project.version}.${build.number}</finalName>
  36. <plugins>
  37. <plugin>
  38. <artifactId>maven-assembly-plugin</artifactId>
  39. <executions>
  40. <execution>
  41. <phase>package</phase>
  42. <goals>
  43. <goal>single</goal>
  44. </goals>
  45. <configuration>
  46. <archive>
  47. <manifest>
  48. <addClasspath>true</addClasspath>
  49. <mainClass>eu.tankernn.game.Game</mainClass>
  50. </manifest>
  51. <manifestEntries>
  52. <Specification-Title>${project.name}</Specification-Title>
  53. <Specification-Version>${project.version}</Specification-Version>
  54. <Implementation-Version>${build.number}</Implementation-Version>
  55. </manifestEntries>
  56. </archive>
  57. <!-- The filename of the assembled distribution file defualt ${project.build.finalName} -->
  58. <finalName>${project.build.finalName}</finalName>
  59. <appendAssemblyId>false</appendAssemblyId>
  60. </configuration>
  61. </execution>
  62. </executions>
  63. <configuration>
  64. <descriptorRefs>
  65. <descriptorRef>jar-with-dependencies</descriptorRef>
  66. </descriptorRefs>
  67. </configuration>
  68. </plugin>
  69. <plugin>
  70. <groupId>org.apache.maven.plugins</groupId>
  71. <artifactId>maven-surefire-plugin</artifactId>
  72. <configuration>
  73. <!-- Skips unit tests if the value of skip.unit.tests property is true -->
  74. <skipTests>${skip.unit.tests}</skipTests>
  75. <argLine>-Djava.library.path="${project.basedir}/target/natives" ${surefireArgLine}</argLine>
  76. </configuration>
  77. </plugin>
  78. <plugin>
  79. <groupId>org.jacoco</groupId>
  80. <artifactId>jacoco-maven-plugin</artifactId>
  81. <version>0.7.5.201505241946</version>
  82. <executions>
  83. <!-- Prepares the property pointing to the JaCoCo runtime agent which
  84. is passed as VM argument when Maven the Surefire plugin is executed. -->
  85. <execution>
  86. <id>pre-unit-test</id>
  87. <goals>
  88. <goal>prepare-agent</goal>
  89. </goals>
  90. <configuration>
  91. <!-- Sets the path to the file which contains the execution data. -->
  92. <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
  93. <!-- Sets the name of the property containing the settings for JaCoCo
  94. runtime agent. -->
  95. <propertyName>surefireArgLine</propertyName>
  96. </configuration>
  97. </execution>
  98. <!-- Ensures that the code coverage report for unit tests is created
  99. after unit tests have been run. -->
  100. <execution>
  101. <id>post-unit-test</id>
  102. <phase>test</phase>
  103. <goals>
  104. <goal>report</goal>
  105. </goals>
  106. <configuration>
  107. <!-- Sets the path to the file which contains the execution data. -->
  108. <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
  109. <!-- Sets the output directory for the code coverage report. -->
  110. <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
  111. </configuration>
  112. </execution>
  113. </executions>
  114. </plugin>
  115. <plugin>
  116. <groupId>com.googlecode.mavennatives</groupId>
  117. <artifactId>maven-nativedependencies-plugin</artifactId>
  118. <version>0.0.6</version>
  119. <executions>
  120. <execution>
  121. <id>unpacknatives</id>
  122. <phase>package</phase>
  123. <goals>
  124. <goal>copy</goal>
  125. </goals>
  126. </execution>
  127. </executions>
  128. </plugin>
  129. </plugins>
  130. <resources>
  131. <resource>
  132. <directory>src/main/java</directory>
  133. <includes>
  134. <include>**/*.glsl</include>
  135. </includes>
  136. </resource>
  137. </resources>
  138. </build>
  139. <properties>
  140. <maven.compiler.source>1.8</maven.compiler.source>
  141. <maven.compiler.target>1.8</maven.compiler.target>
  142. <build.number>SNAPSHOT</build.number>
  143. </properties>
  144. </project>