My current plugin configuration works good and the part looks like:
<plugin>
<artifactId>maven-resources-plugin</artifactId>
....
<configuration>
....
<includes>
<include>**/*.${file.type}</include>
</includes>
<configuration>
So that now I can use it like:
mvn clean install -Pdeploy-files -Dfile.type=java
What I'm concerned about is how can I pass several file types which are not kind of 'hardcoded', for example:
mvn clean install -Pdeploy-files -Dfile.type=java,class,war,tar
Is it possible with maven?