Terry.Li-彬

虚其心,可解天下之问;专其心,可治天下之学;静其心,可悟天下之理;恒其心,可成天下之业。

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  143 随笔 :: 344 文章 :: 130 评论 :: 0 Trackbacks
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">

 
<modelVersion>4.0.0</modelVersion>
 
<groupId>PM_Member_EAR</groupId>
 
<artifactId>PM_Member_EAR</artifactId>
 
<packaging>ear</packaging>
 
<version>0.1-SNAPSHOT</version>
 
<description></description>

 
<dependencies>
  
<dependency>
   
<groupId>com.newegg.lab</groupId>
   
<artifactId>MemberWeb</artifactId>
   
<version>0.1-SNAPSHOT</version>
   
<type>war</type>
  
</dependency>
  
<dependency>
   
<groupId>com.newegg.lab</groupId>
   
<artifactId>frontWeb</artifactId>
   
<version>0.1-SNAPSHOT</version>
   
<type>war</type>
  
</dependency>
 
</dependencies>

 
<build>
  
<finalName>newegg</finalName>
  
<plugins>
   
<plugin>
    
<groupId>org.apache.maven.plugins</groupId>
    
<artifactId>maven-ear-plugin</artifactId>
    
<configuration>
     
<modules>
      
<webModule>
       
<groupId>com.newegg.lab</groupId>
       
<artifactId>MemberWeb</artifactId>
       
<contextRoot>
        /MemberWeb
       
</contextRoot>
       
      
</webModule>
      
      
<webModule>
       
<groupId>com.newegg.lab</groupId>
       
<artifactId>frontWeb</artifactId>
       
<contextRoot>
        /frontWeb
       
</contextRoot>
       
      
</webModule>
     
</modules>
    
</configuration>
   
</plugin>
  
</plugins>
 
</build>
</project>
posted on 2008-02-02 15:21 礼物 阅读(3206) 评论(1)  编辑  收藏 所属分类: maven2

评论

# re: 使用maven2 打ear包 2009-10-27 10:51 Asran
请问MemberWeb的工程目录,跟EAR目录是怎么样的结构关系呀?请把你的EAR目录列出来下好吗?
我现在遇到了:
Caused by: org.apache.maven.plugin.MojoFailureException: Artifact[war:com.××:helloworldwar] is not a dependency of the project.  回复  更多评论