How do we copy an entire directory to another directory in maven?
I would like to improve the build foe development in our project and in this regard I would like to achive the following using maven开发者_高级运维:
- I want to copy an entire directory heirarchy, including the directory itself to another directory using maven. How do I achive that ? I need this to copy a "MyApp.ear" directory to \domain\autodeploy.
- Then, I would like to create a file "REDEPLOY" under autodeploy of weblogic domain using maven
- When ever we do some changes to java file, would like to copy only the exploded dir of class files and touch the REDEPLOY filr using maven to trigger the auto-deploy
Pls. suggest how do we achive this using maven.
A couple suggestions come to mind:
- The maven antrun plugin will let you copy files, folders, etc
- The maven deploy plugin allows for uploading with ftp & ssh - and so does the antrun plugin
精彩评论