fabric8io / django

Camel iPaaS functionality
0 stars 4 forks source link

connector-maven-plugin - Update version in camel-connector.json #28

Closed davsclaus closed 8 years ago

davsclaus commented 8 years ago

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.

davsclaus commented 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>