Maven deploy Return code is: 400

Maven deploy Return code is: 400

学习了:https://blog.csdn.net/running_snail_/article/details/19821777

Hosted格式的才可以部署;

group形式的把其它几个库都进行了组合;mirro配置一个group仓库就可以全部访问了;

如果需要进行deploy,需要是hosted格式的仓库;

在settings.xml中需要配置:

<activeProfiles><activeProfile>xxx

<profiles><profile><repositories><repository>releases/snapshots/......

其中的id, url必须写正确

中pom.xml文件中需要配置:

<distributionManagement><repository>/<snapshotRepository>

snapshot版本的写法是SNAPSHOT,

如果写成SNAPSHOTS,会发布到release库中;

如果没有<distributionManagement>,会报错;

如果需要部署snapshot版本,必须配置<snapshotRepository>

 

猜你喜欢

转载自www.cnblogs.com/stono/p/9456539.html
今日推荐