Reputation: 9000
I have a maven Java web application which generates a WAR file, I want to be able to copy a specific folder inside target to an external directory on my filesystem:
app folder structure:
├───app
│ ├───css
│ ├───img
│ ├───js
│ ├───lib
│
├───META-INF
└───WEB-INF
└───lib
I want to be able to copy only the "app" folder from target to a specific external directory after the build is completed successfully.
Upvotes: 0
Views: 414
Reputation: 3464
Maven resources plugin can help you to do that. Other possible choices are Maven antrun plugin or copy Maven plugin.
Technically, a plugin cannot be executed after the end of the build, but you can choose an appropriate phase to link your plugin execution to.
Upvotes: 1