java - Maven multi modules tomcat deployment , module missing -
i have 2 module in parent pom. project depends on b project. followed here
in project , added b project dependency. ok in build path, see b project under maven dependencies.
<dependency> <groupid>mygroup</groupid> <artifactid>b</artifactid> </dependency>
but when deploy project tomcat(mvn tomcat7:deploy ,or redeploy) , project deployed b project(packaging jar) wasn't deployed. (also tried system scope , target jar file systempath)
i didn't understand issue, did miss something? (using tomcat8 , no eclipse specific answer please.)
can try mvn install , manually copy generated war tomcat7 folder. maybe wrong tomcat7 maven plugin.
additional information: in .m2 repository there wasn't project b's jar , installed , changed tomcat7 plugin solution alternetive maven war plugin , configured outputfolder tomcat8's webapps folder, works charm.
Comments
Post a Comment