Skip to content

Commit 305cb11

Browse files
committed
add maven-resources-plugin to copy version.xml for package deployment
1 parent b09d6ad commit 305cb11

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

beast-morph-models/pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,30 @@
4949
</systemPropertyVariables>
5050
</configuration>
5151
</plugin>
52+
<!-- Copy version.xml to target/ for BEASTClassLoader.initServices() -->
53+
<plugin>
54+
<groupId>org.apache.maven.plugins</groupId>
55+
<artifactId>maven-resources-plugin</artifactId>
56+
<version>3.3.1</version>
57+
<executions>
58+
<execution>
59+
<id>copy-version-xml</id>
60+
<phase>generate-resources</phase>
61+
<goals><goal>copy-resources</goal></goals>
62+
<configuration>
63+
<outputDirectory>${project.build.directory}</outputDirectory>
64+
<resources>
65+
<resource>
66+
<directory>${maven.multiModuleProjectDirectory}</directory>
67+
<includes>
68+
<include>version.xml</include>
69+
</includes>
70+
</resource>
71+
</resources>
72+
</configuration>
73+
</execution>
74+
</executions>
75+
</plugin>
5276
<!-- Run BEAST with morph-models on module path:
5377
mvn -pl beast-morph-models exec:exec -Dbeast.args="examples/M3982.xml"
5478
mvn -pl beast-morph-models exec:exec -Dbeast.args="-validate examples/M3982.xml" -->

0 commit comments

Comments
 (0)