Maven multi project -
i have several maven module (3 jar , 2 war, modules interconnected). purpose combine modules 1 ear file. example: in ear maven project run in lifecycle "package" goal, when maven project, include in global project execute "package" goal , when creating global ear, include jar (war) other maven project. how this?
i create global project <packaging>pom</packaging>
, execute "package" goal dependency project
<modules> <module>...</module> </modules>
but how create ear?
you should utilize <packaging>ear</packaging>
instead of pom
. forcefulness maven utilize maven-ear-plugin on bundle phase (so don't need provide executions of plugin).
you find simple illustration here: maven ear plugin example
maven maven-3 ear
No comments:
Post a Comment