I have resource file containing:
${project.version}
${dependency.tree}
Is it possible to replace (filtering) ${dependency.tree}
property with mvn dependency:tree -Dincludes=com.foo.bar
command output ?
I have resource file containing:
${project.version}
${dependency.tree}
Is it possible to replace (filtering) ${dependency.tree}
property with mvn dependency:tree -Dincludes=com.foo.bar
command output ?
No easy way out here, but I think it's possible.
I'd do it this way:
dependency
plugin goal tree
execution to generate-resources
phase and configure it to output everything to some file (outputFile
option, see here).gmaven
plugin to load this file into a dependency.tree
property (see my answer here on how to do it). This should go after the previous step in pom.xml and be bound to generate-resources
phase.resources
plugin + filtering to achieve the goal.