On 11/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Dear All:
>       I create a EAR pom.xml file as follow:
>  <project>
>    <modelVersion>4.0.0</modelVersion>
>    <groupId>ears</groupId>
>    <artifactId>ear</artifactId>
>    <packaging>jar</packaging>
>    <version>1.0</version>
>    <name>ear assembly</name>
>
>    <dependencies>
>       <dependency>
>          <groupId>pojos</groupId>
>          <artifactId>pojo</artifactId>
>          <version>1.0</version>
>       </dependency>
>      <dependency>
>        <groupId>ejbs</groupId>
>        <artifactId>ejb</artifactId>
>        <version>1.0</version>
>      </dependency>
>   </dependencies>

You have no dependy toward your war project. I guess it is probably
why it doesn't work.

>
>    <build>
>       <plugins>
>          <plugin>
>            <groupId>org.apache.maven.plugins</groupId>
>            <artifactId>maven-ear-plugin</artifactId>
>            <executions>
>               <execution>
>                   <id>ear</id>
>                   <phase>package</phase>
>                    <goals>
>                     <goal>ear</goal>
>                   </goals>
>
>                <configuration>
>                    <modules>
>                     <javaModule>
>                      <groupId>pojos</groupId>
>                      <artifactId>pojo</artifactId>
>                      <uri>pojo-1.0.jar</uri>
>                    </javaModule>
>                    <javaModule>
>                      <groupId>ejbs</groupId>
>                      <artifactId>ejb</artifactId>
>                      <uri>ejb-1.0.jar</uri>
>                    </javaModule>
>                    <webModule>
>                      <groupId>wars</groupId>
>                      <artifactId>war</artifactId>
>                      <contextRoot>/custom-context-root</contextRoot>
>                    </webModule>
>                   </modules>
>                </configuration>
>              </execution>
>           </executions>
>          </plugin>
>
>
>       </plugins>
>    </build>
> </project>
>
> when compile, it run successfully, but when packaging, it report err as
> following:\
> ............
>                      [INFO] Building jar: C:
> \test\sample\ear\target\ear-1.0.jar
> [INFO] [ear:ear {execution: ear}]
> [INFO]
> -------------------------------------------------------------------------
> ---
> [ERROR] BUILD FAILURE
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] Artifact[wars:war:war] is not a dependency of the project.
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> -------------------------------------------------------------------------
> .............
>
>
>  the war project can compile, package and install successfully,  who can
> tell me what 's the problem about the EAR project pom file?
>
> thanks!
>
> Regards
> Jerry Tao
>
> _______________________________________________________________________
> Hactl..........Moving forward with you.
>
> Best Air Cargo Terminal - Asia 2005
> Air Cargo Terminal of the Year 2002, 2003 & 2004
>
> Web: http://www.hactl.com
>
> DISCLAIMER :-
> The information contained in this message, including any attachment, is
> confidential and may also be privileged. The information is intended only
> for the person or entity to which it is addressed. Any review,
> re-transmission, copying, storage, distribution or other use or disclosure
> of this information by persons or entities other than the intended
> recipient is prohibited. If you are not the intended recipient, please
> contact the sender immediately by return email and delete this message from
> your system. Thank you.
>
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to