pom.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.l2jserver</groupId>
  6. <artifactId>l2j-server-cli</artifactId>
  7. <version>1.2.1</version>
  8. <name>L2J Server Command Line</name>
  9. <properties>
  10. <maven.compiler.source>21</maven.compiler.source>
  11. <maven.compiler.target>21</maven.compiler.target>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14. <!-- Dependencies -->
  15. <picocli.version>4.7.5</picocli.version>
  16. <jgit.version>6.8.0.202311291450-r</jgit.version>
  17. <slf4j.version>2.0.9</slf4j.version>
  18. <log4j.version>2.22.0</log4j.version>
  19. <mysql-connector-j.version>8.2.0</mysql-connector-j.version>
  20. <mariadb-java-client.version>3.3.1</mariadb-java-client.version>
  21. <mssql-jdbc.version>12.4.2.jre11</mssql-jdbc.version>
  22. <postgresql.version>42.7.1</postgresql.version>
  23. <hsqldb.version>2.7.2</hsqldb.version>
  24. <h2.version>2.2.224</h2.version>
  25. <derbyclient.version>10.17.1.0</derbyclient.version>
  26. <asciitable.version>0.3.2</asciitable.version>
  27. <owner.version>1.0.12</owner.version>
  28. <maven-invoker.version>3.2.0</maven-invoker.version>
  29. <!-- L2J -->
  30. <l2j-server-commons.version>2.6.7.0</l2j-server-commons.version>
  31. <!-- Plugins -->
  32. <dependency-check-maven.version>9.0.6</dependency-check-maven.version>
  33. <maven-dependency-plugin.version>3.6.1</maven-dependency-plugin.version>
  34. <maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>
  35. <maven-assembly-plugin.version>3.6.0</maven-assembly-plugin.version>
  36. </properties>
  37. <repositories>
  38. <repository>
  39. <id>jitpack.io</id>
  40. <url>https://jitpack.io</url>
  41. </repository>
  42. </repositories>
  43. <dependencies>
  44. <dependency>
  45. <groupId>info.picocli</groupId>
  46. <artifactId>picocli</artifactId>
  47. <version>${picocli.version}</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.eclipse.jgit</groupId>
  51. <artifactId>org.eclipse.jgit</artifactId>
  52. <version>${jgit.version}</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.slf4j</groupId>
  56. <artifactId>slf4j-api</artifactId>
  57. <version>${slf4j.version}</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.logging.log4j</groupId>
  61. <artifactId>log4j-slf4j-impl</artifactId>
  62. <version>${log4j.version}</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.apache.logging.log4j</groupId>
  66. <artifactId>log4j-core</artifactId>
  67. <version>${log4j.version}</version>
  68. </dependency>
  69. <!-- Database -->
  70. <dependency>
  71. <groupId>com.mysql</groupId>
  72. <artifactId>mysql-connector-j</artifactId>
  73. <version>${mysql-connector-j.version}</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.mariadb.jdbc</groupId>
  77. <artifactId>mariadb-java-client</artifactId>
  78. <version>${mariadb-java-client.version}</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>com.microsoft.sqlserver</groupId>
  82. <artifactId>mssql-jdbc</artifactId>
  83. <version>${mssql-jdbc.version}</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.postgresql</groupId>
  87. <artifactId>postgresql</artifactId>
  88. <version>${postgresql.version}</version>
  89. </dependency>
  90. <!-- In-Memory Database -->
  91. <dependency>
  92. <groupId>org.hsqldb</groupId>
  93. <artifactId>hsqldb</artifactId>
  94. <version>${hsqldb.version}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>com.h2database</groupId>
  98. <artifactId>h2</artifactId>
  99. <version>${h2.version}</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.apache.derby</groupId>
  103. <artifactId>derbyclient</artifactId>
  104. <version>${derbyclient.version}</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>de.vandermeer</groupId>
  108. <artifactId>asciitable</artifactId>
  109. <version>${asciitable.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.aeonbits.owner</groupId>
  113. <artifactId>owner-java8</artifactId>
  114. <version>${owner.version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.apache.maven.shared</groupId>
  118. <artifactId>maven-invoker</artifactId>
  119. <version>${maven-invoker.version}</version>
  120. </dependency>
  121. </dependencies>
  122. <build>
  123. <plugins>
  124. <plugin>
  125. <groupId>org.apache.maven.plugins</groupId>
  126. <artifactId>maven-jar-plugin</artifactId>
  127. <version>${maven-jar-plugin.version}</version>
  128. <configuration>
  129. <finalName>l2jcli</finalName>
  130. <archive>
  131. <manifest>
  132. <addClasspath>true</addClasspath>
  133. <classpathPrefix>libs/</classpathPrefix>
  134. <mainClass>com.l2jserver.cli.L2JServerCLI</mainClass>
  135. </manifest>
  136. </archive>
  137. </configuration>
  138. </plugin>
  139. <plugin>
  140. <groupId>org.apache.maven.plugins</groupId>
  141. <artifactId>maven-assembly-plugin</artifactId>
  142. <version>${maven-assembly-plugin.version}</version> <!--$NO-MVN-MAN-VER$-->
  143. <executions>
  144. <execution>
  145. <phase>package</phase>
  146. <goals>
  147. <goal>single</goal>
  148. </goals>
  149. <configuration>
  150. <finalName>l2jcli-${project.version}</finalName>
  151. <appendAssemblyId>false</appendAssemblyId>
  152. <descriptors>
  153. <descriptor>src/main/assembly/zip.xml</descriptor>
  154. </descriptors>
  155. </configuration>
  156. </execution>
  157. </executions>
  158. </plugin>
  159. </plugins>
  160. </build>
  161. <profiles>
  162. <profile>
  163. <id>ci</id>
  164. <build>
  165. <plugins>
  166. <plugin>
  167. <groupId>org.owasp</groupId>
  168. <artifactId>dependency-check-maven</artifactId>
  169. <version>${dependency-check-maven.version}</version>
  170. <configuration>
  171. <failBuildOnCVSS>8</failBuildOnCVSS>
  172. <assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled>
  173. <nvdApiKey>${env.NVD_API_KEY}</nvdApiKey>
  174. </configuration>
  175. <executions>
  176. <execution>
  177. <goals>
  178. <goal>check</goal>
  179. </goals>
  180. </execution>
  181. </executions>
  182. </plugin>
  183. </plugins>
  184. </build>
  185. </profile>
  186. </profiles>
  187. </project>