pom.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>com.ildepinc</groupId>
  5. <artifactId>Persistence</artifactId>
  6. <version>1.0-SNAPSHOT</version>
  7. <properties>
  8. <maven.compiler.source>8</maven.compiler.source>
  9. <maven.compiler.target>8</maven.compiler.target>
  10. <junit-jupiter.version>5.5.2</junit-jupiter.version>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. </properties>
  13. <dependencies>
  14. <!-- https://mvnrepository.com/artifact/org.apache.derby/derby -->
  15. <dependency>
  16. <groupId>org.apache.derby</groupId>
  17. <artifactId>derby</artifactId>
  18. <version>10.13.1.1</version>
  19. </dependency>
  20. <!-- https://mvnrepository.com/artifact/org.apache.derby/derbyclient -->
  21. <dependency>
  22. <groupId>org.apache.derby</groupId>
  23. <artifactId>derbyclient</artifactId>
  24. <version>10.13.1.1</version>
  25. </dependency>
  26. <!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
  27. <dependency>
  28. <groupId>org.apache.logging.log4j</groupId>
  29. <artifactId>log4j-core</artifactId>
  30. <version>2.18.0</version>
  31. </dependency>
  32. <!-- https://mvnrepository.com/artifact/commons-dbutils/commons-dbutils -->
  33. <dependency>
  34. <groupId>commons-dbutils</groupId>
  35. <artifactId>commons-dbutils</artifactId>
  36. <version>1.7</version>
  37. </dependency>
  38. <!-- junit 5 -->
  39. <dependency>
  40. <groupId>org.junit.jupiter</groupId>
  41. <artifactId>junit-jupiter-engine</artifactId>
  42. <version>${junit-jupiter.version}</version>
  43. <scope>test</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.postgresql</groupId>
  47. <artifactId>postgresql</artifactId>
  48. <version>42.7.1</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.oracle.database.jdbc</groupId>
  52. <artifactId>ojdbc8</artifactId>
  53. <version>23.3.0.23.09</version>
  54. </dependency>
  55. </dependencies>
  56. <build>
  57. <plugins>
  58. <!-- To buil a jar plus a separate libs folder with all dependencies-->
  59. <plugin>
  60. <groupId>org.apache.maven.plugins</groupId>
  61. <artifactId>maven-dependency-plugin</artifactId>
  62. <executions>
  63. <execution>
  64. <id>copy-dependencies</id>
  65. <phase>prepare-package</phase>
  66. <goals>
  67. <goal>copy-dependencies</goal>
  68. </goals>
  69. <configuration>
  70. <outputDirectory>
  71. ${project.build.directory}/libs
  72. </outputDirectory>
  73. <includeScope>compile</includeScope>
  74. </configuration>
  75. </execution>
  76. </executions>
  77. </plugin>
  78. <!-- to build a path aware jar; must have libs folder to run-->
  79. <plugin>
  80. <groupId>org.apache.maven.plugins</groupId>
  81. <artifactId>maven-jar-plugin</artifactId>
  82. <configuration>
  83. <archive>
  84. <manifest>
  85. <addClasspath>true</addClasspath>
  86. <classpathPrefix>libs/</classpathPrefix>
  87. <mainClass>
  88. com.ildepinc.persistence.concretes.Launcher
  89. </mainClass>
  90. </manifest>
  91. </archive>
  92. </configuration>
  93. </plugin>
  94. </plugins>
  95. </build>
  96. </project>