java - Migrating Ant targets to Maven goals -


i migrating existing ant project maven. facing problem while building project in maven have achieve existing targets.

i want copy files based on env passed. in ant using below:

<fileset dir="${scripts.dir}" />             <filtermapper>                 <replacestring from=".${param.environment}" to="" />             </filtermapper> 

edit have achived this:

enter image description here

edit

now want keep files below:

enter image description here

if want custom build output structure, should take @ this post.

you might want familiarize concept of maven build profiles, should allow have different build configurations based on external setting.

if want copy files part of maven built, should take @ maven copy resources plugin


Comments