Thursday 29 November 2012

Updating artifact in remote maven repository

Problem: I have to updated "liferay-portal-6.0.6.zip" artifact in remote maven repository.

Solution:

  1. Provide remote repository access setting in settings.xml for example
    1. Edit file C:\Users\dragonadmin\.m2\settings.xml
    2. Provide server info

    3. 
                        
                            remote-repository
                            admin
                            *****
                          
      
      
  2. Execute below command on terminal to update the artifcat.

    1.  
      mvn deploy:deploy-file -DgroupId=com.liferay -DartifactId=liferay-portal -Dversion=6.0.6 -Dpackaging=zip -Dfile=C:/work/liferay-portal-6.0.6.zip  -Durl=http://dragon.home.com:8081/artifactory/maven-proxy -DrepositoryId=remote-repository
      

No comments:

Post a Comment