Reputation: 15955
I have a Maven project where I want to have two build artifacts:
.properties
file. How can I setup my Maven project to do this? And then, once I've done this, how can I consume them up the dependency graph?
Upvotes: 2
Views: 2273
Reputation: 14762
Add a copy-resources
goal of the Maven Resources Plugin to your POM.
<project>
...
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<id>copy-property-files</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/property-files</outputDirectory>
<resources>
<resource>
...
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
...
</build>
...
</project>
I can't understand what you mean exactly by "consume them up the dependency graph".
Upvotes: 4