I am migrating existing Ant project to Maven. But I am facing a problem while building the project in Maven as I have to achieve the existing targets.
I want to copy the files based on ENV I passed. In Ant I am using like below:
<fileset dir="${scripts.dir}" />
<filtermapper>
<replacestring from=".${param.environment}" to="" />
</filtermapper>
EDIT I have achived this:
Edit
Now I want to keep my files as below:
If you want a custom build output structure, then you should take a look at this post .
You might want to familiarize yourself with the concept of Maven build profiles , that should allow you to have different build configurations based on an external setting.
If you want to copy files as a part of Maven built, then you should take a look at the Maven Copy Resources plugin
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.