Closed davsclaus closed 8 years ago
We can use the maven filtering plugin
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>camel-connector.json</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.1</version>
</plugin>
So we grab the version from the pom.xml or its parent pom.xml and stamp in the camel-connector.json so its up to date, in case the version is changed in the pom.xml file.