pom.xml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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.1.4-SNAPSHOT</version>
  7. <relativePath>../RISE-V2G-PARENT</relativePath>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <artifactId>rise-v2g-evcc</artifactId>
  11. <name>rise-v2g-evcc</name>
  12. <dependencies>
  13. <dependency>
  14. <groupId>com.v2gclarity.risev2g</groupId>
  15. <artifactId>rise-v2g-shared</artifactId>
  16. <version>1.1.4-SNAPSHOT</version>
  17. </dependency>
  18. </dependencies>
  19. <properties>
  20. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21. <project.version>1.1.4-SNAPSHOT</project.version>
  22. </properties>
  23. <build>
  24. <plugins>
  25. <plugin>
  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-evcc-${project.version}</finalName>
  31. <appendAssemblyId>false</appendAssemblyId>
  32. <archive>
  33. <manifest>
  34. <addClasspath>true</addClasspath>
  35. <mainClass>com.v2gclarity.risev2g.evcc.main.StartEVCC</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>*.properties</include>
  71. </includes>
  72. </resource>
  73. </resources>
  74. </configuration>
  75. </execution>
  76. </executions>
  77. </plugin>
  78. </plugins>
  79. </build>
  80. </project>