maven聚合

一 任务
将hongxing-bge、hongxing-nage、hongxing-shanji三个项目聚合
 
二 创建项目hongxing-aggreation
修改pom.xml为:
   < modelVersion > 4.0.0 </ modelVersion >
 
   < groupId > com.hongxing </ groupId >
   < artifactId > hongxing - aggreation </ artifactId >
   < version > 0.0.1-SNAPSHOT </ version >
   < packaging > pom </ packaging >
 
   < name > hongxing - aggreation </ name >
   < url > http://maven.apache.org </ url >
 
   < properties >
     < project.build.sourceEncoding > UTF-8 </ project.build.sourceEncoding >
   </ properties >
    < modules >
        < module > ../ hongxing - bge </ module >
        < module > ../ hongxing - nage </ module >
        < module > ../ hongxing - shanji </ module >
    </ modules >
 
   < dependencies >
     < dependency >
       < groupId > junit </ groupId >
       < artifactId > junit </ artifactId >
       < version > 3.8.1 </ version >
       < scope > test </ scope >
     </ dependency >
   </ dependencies >
</ proje

猜你喜欢

转载自cakin24.iteye.com/blog/2393472