I have an “interesting” situation at work where I need to unpack the warfile 
built by a POM to a known directory whose name does not vary with the project’s 
maven coordinates prior to starting an embedded tomcat server via “mvn 
tomcat:run-war.”  Note that I don’t need to unpack the project dependencies 
(which is what the dependency plugin does), but the actual warfile itself that 
was built during the package phase.  I can’t use the directory from which the 
warfile was built, since the name of that directory varies with the project’s 
maven coordinates, and I don’t want to change the name of that directory to 
exclude the maven coordinates for obvious reasons (e.g. old builds might 
collide when version numbers are updated).  Is there a maven plugin that will 
simply unpack a war file, as if executing “jar xvf somefile.war”?  As an 
alternate solution, is there a plugin that will recursively copy the contents 
of one directory to another?

 

Thanks,
 Tom Ault

Reply via email to