maven聚合

阅读更多
一 任务
将hongxing-bge、hongxing-nage、hongxing-shanji三个项目聚合
 
二 创建项目hongxing-aggreation
修改pom.xml为:
< 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 > 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

你可能感兴趣的:(maven,聚合)