pom.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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/maven-v4_0_0.xsd">
  3. <parent>
  4. <groupId>com.v2gclarity.risev2g</groupId>
  5. <artifactId>rise-v2g-parent</artifactId>
  6. <version>1.2.6</version>
  7. <relativePath>../RISE-V2G-PARENT</relativePath>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <artifactId>rise-v2g-secc</artifactId>
  11. <name>rise-v2g-secc</name>
  12. <dependencies>
  13. <dependency>
  14. <groupId>com.v2gclarity.risev2g</groupId>
  15. <artifactId>rise-v2g-shared</artifactId>
  16. <version>${project.version}</version>
  17. </dependency>
  18. </dependencies>
  19. <properties>
  20. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21. <project.version>${project.version}</project.version>
  22. </properties>
  23. <build>
  24. <plugins>
  25. <plugin> <!-- For creating the JAR file -->
  26. <groupId>org.apache.maven.plugins</groupId>
  27. <artifactId>maven-assembly-plugin</artifactId> <!-- See http://maven.apache.org/plugins/maven-assembly-plugin/usage.html -->
  28. <version>3.1.0</version>
  29. <configuration>
  30. <finalName>rise-v2g-secc-${project.version}</finalName>
  31. <appendAssemblyId>false</appendAssemblyId>
  32. <archive>
  33. <manifest>
  34. <addClasspath>true</addClasspath>
  35. <mainClass>com.v2gclarity.risev2g.secc.main.StartSECC</mainClass>
  36. </manifest>
  37. </archive>
  38. <descriptors> <!-- Same as jar-with-dependencies descriptorRef, but can be adapted if needed -->
  39. <descriptor>src/assembly/bin.xml</descriptor>
  40. </descriptors>
  41. </configuration>
  42. <executions>
  43. <execution>
  44. <id>one-jar-only</id>
  45. <phase>package</phase> <!-- bind to the packaging phase -->
  46. <goals>
  47. <goal>single</goal>
  48. </goals>
  49. </execution>
  50. </executions>
  51. </plugin>
  52. <plugin> <!-- For copying the keystores and private key to the target folder next to the JAR file -->
  53. <artifactId>maven-resources-plugin</artifactId>
  54. <version>3.0.2</version>
  55. <executions>
  56. <execution>
  57. <id>copy-resources</id>
  58. <phase>install</phase>
  59. <goals>
  60. <goal>copy-resources</goal>
  61. </goals>
  62. <configuration>
  63. <outputDirectory>${basedir}/target</outputDirectory>
  64. <resources>
  65. <resource>
  66. <directory>${basedir}</directory>
  67. <includes>
  68. <include>*.p12</include>
  69. <include>*.jks</include>
  70. <include>*.der</include>
  71. <include>*.properties</include>
  72. </includes>
  73. </resource>
  74. </resources>
  75. </configuration>
  76. </execution>
  77. </executions>
  78. </plugin>
  79. </plugins>
  80. </build>
  81. </project>