Project

General

Profile

Actions

How to deploy internal artifact » History » Revision 2

« Previous | Revision 2/4 (diff) | Next »
chin-yeh, 04/22/2011 12:32 PM


How to deploy internal artifact

Before the deployment, you may need to check out the existing artifact in the Nexus, Search/Browsse Artifact.

  1. To deploy artifact to internal repositories, append the following to your project's POM (see also Maven Deploy Plugin) :
       <repository>
        <uniqueVersion>false</uniqueVersion>
        <id>releases</id>
        <url>http://192.168.2.13:8081/nexus/content/repositories/releases</url>
       </repository>
       <snapshotRepository>
        <uniqueVersion>true</uniqueVersion>
        <id>snapshots</id>
        <url>http://192.168.2.13:8081/nexus/content/repositories/snapshots</url>
       </snapshotRepository>
    
    • for connector project, all projects inherit the above settings from a parent POM, ecosway-parent. Therefore, you just need to update the parent POM and all its inherited projects will get the latest changes.
  2. cd to your project folder, and execute the maven goal, deploy:
    mvn deploy
    
  3. if successfully, checkout the deployed artifact in Nexus
  4. done.

Updated by chin-yeh over 13 years ago · 2 revisions