How do I write a file with Maven?
Basically, I开发者_JS百科 am looking for the maven equivalent of Ant's <echo>
task.
Use the maven-antrun-plugin ?
Maven plugins can be used for this. Under the hood a maven plugin basically uses jelly to execute ant tasks. Anything done in ant can be done in maven. Check out this plugin for running ant tasks: http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html
精彩评论