Maven把自己的包部署到远程仓库

1,配置项目的POM文件

    <dependencyManagement>
        </dependencies>
            </dependency>

                    ......

            </dependency>
        </dependencies>
    </dependencyManagement>
        <repository>
            <id>nexus-snapshots</id>
            <url>http://192.168.1.232:8080/content/repositories/releases</url>
        </repository>
        <snapshotRepository>
            <id>nexus-releases</id>
            <url>http://192.168.1.232:8080/content/repositories/snapshots</url>
        </snapshotRepository>
    </distributionManagement>

2,运行maven命令

mvn clean deploy

 

posted @ 2016-08-30 23:42  海阔天空990  阅读(8251)  评论(0编辑  收藏  举报