Project

General

Profile

How to deploy internal artifact » History » Revision 2

Revision 1 (chin-yeh, 04/22/2011 12:30 PM) → Revision 2/4 (chin-yeh, 04/22/2011 12:32 PM)

h1. How to deploy internal artifact 

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

 # To deploy artifact to internal repositories, append the following to your project's POM (see also "Maven Deploy Plugin":http://maven.apache.org/plugins/maven-deploy-plugin/usage.html) : 
 <pre> 
    <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> 
 </pre> 
 ** 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. 
 # <code>cd</code> to your project folder, and execute the maven goal, *deploy*: 
 <pre> 
 mvn deploy 
 </pre> 
 # if successfully, checkout the deployed artifact in "Nexus":http://192.168.2.13:8081/nexus/index.html#welcome 
 # done.