向Sonatype Nexus oss3.x上添加第三方jar

这里假定需要将

        
            faceid
            faceid
            1.0.0.RELEASE
        

对应的组件添加到maven私服http://127.0.0.1:8081/上的标识为thirdparty仓库中去。

配置settings.xml文件,在servers节点下添加一个server节点,具体如下:

    
        
            nexus
            admin
            123456
        
    

切换到FaceId.jar所在目录,执行如下命令:

mvn deploy:deploy-file -DgroupId=faceid -DartifactId=faceid -Dversion=1.0.0.RELEASE -Dpackaging=jar -Dfile=FaceId.jar -Durl=http://127.0.0.1:8081/repository/thirdparty/ -DrepositoryId=nexus

其中,repositoryId需要与settings.xml文件中servers/server/id节点匹配。

你可能感兴趣的:(向Sonatype Nexus oss3.x上添加第三方jar)