plugins - Maven Ear with two war files -
i trying develop application upon packaging generate "ear" file contain 2 war files. folders war files called "hello" , "bye" , placed on same level of parent pom contains info ear.
the pom's hello , bye packages fine when ran them individually. when tried packaging pom says cannot find poms both hello , bye.
here content parent pom.
<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>mr</groupid> <artifactid>mrear</artifactid> <packaging>ear</packaging> <version>0.0.1-snapshot</version> <dependencies> <dependency> <groupid>mr.hello</groupid> <artifactid>hello</artifactid> <version>0.0.1-snapshot</version> <type>war</type> </dependency> <dependency> <groupid>mr.bye</groupid> <artifactid>bye</artifactid> <version>0.0.1-snapshot</version> <type>war</type> </dependency> </dependencies> <build> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-ear-plugin</artifactid> <version>2.3.2</version> <configuration> <modules> <webmodule> <groupid>mr.hello</groupid> <artifactid>hello</artifactid> <version>0.0.1-snapshot</version> </webmodule> <webmodule> <groupid>mr.bye</groupid> <artifactid>bye</artifactid> <version>0.0.1-snapshot</version> </webmodule> </modules> </configuration> </plugin> </plugins> </build> </project>
Comments
Post a Comment