More in-depth usage of maven, i include using deploy distruution

https://my.oschina.net/ghm7753/blog/373350

quote


< project >   
   ...   
   < distributionManagement >   
     < repository >   
       < id >nexus-releases</ id >   
       < name >Nexus Release Repository</ name >   
       < url >http://127.0.0.1:8080/nexus/content/repositories/releases/</ url >   
     </ repository >   
     < snapshotRepository >   
       < id >nexus-snapshots</ id >   
       < name >Nexus Snapshot Repository</ name >   
       < url >http://127.0.0.1:8080/nexus/content/repositories/snapshots/</ url >   
     </ snapshotRepository >   
   </ distributionManagement >   
   ...   
</ project >

< settings >   
   ...   
   < servers >   
     < server >   
       < id >nexus-releases</ id >   
       < username >admin</ username >   
       < password >admin123</ password >   
     </ server >   
     < server >   
       < id >nexus-snapshots</ id >   
       < username >admin</ username >   
       < password >admin123</ password >   
     </ server >     
   </ servers >   
   ...   
</ settings >

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326236042&siteId=291194637