I am converting a Java project from an any build process to Maven.
Maven can currently compile the jars from the project but to fully replace Ant I need to do two additional steps:
- Create a file tree
- Copy the compiled jars and other files stored in the project into desired directories created in step 1.
This tree needs to mirror the structure that both jars and resource files will appear in installed machine.
e.g. the contents of srs/foo/bar/scripts
might need to be moved to /usr/local/myFoo/spam/bar/scripts
while jars might need to
go from ./myPjroject/target/*.jar
to /usr/local/tomcat/webaps/fooApp/WEB-IBF/lib
ect
this tree does not then get zipped but processed by a subsequent program.
I have read that that install mojo can copy the jars but I have not seen any documentation showing that it can also copy the other files I need to move.