java - Maven: creating a war with a ROOT dir -
i have (for purposes of vhost configuration in apache , tomcat) deployed web app tomcat follows extracting tar.gz file built ant;
tomcat/webapps/myapp/root/<application>
and production expects.
having moved maven build scheme same app, i'm finding impossible accomplish above war point i'm starting think i've got wrong approach. want war explode top level root directory such as;
root |- meta-inf |- web-inf |- other folders
is possible tweak war builder plugin accomplish this?
a .war file has defined construction internally, , you're trying produce doesn't fit that.
some options consider:
use war files meant used, i.e. have 1 has top-levelweb-inf
directory. use assembly plugin instead , produce construction manually possibly: .ear
files, combine multiple .war
, additional resources. java maven tomcat war maven-war-plugin
No comments:
Post a Comment