|
@@ -18,8 +18,36 @@
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
|
|
|
- <build>
|
|
|
+ <build>
|
|
|
<plugins>
|
|
|
+ <!-- generate version.txt -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
|
+ <version>3.1.0</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>copy-resources</id>
|
|
|
+ <phase>prepare-package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>copy-resources</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>${project.basedir}/src/main/resources</directory>
|
|
|
+ <includes>
|
|
|
+ <include>version.txt</include>
|
|
|
+ </includes>
|
|
|
+ <filtering>true</filtering>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
<!-- copy libraries to target/libs/: -->
|
|
|
<plugin>
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|