maven deploy Return code is: 400, ReasonPhrase: Bad Request.

最近在自己本地deploy jar 到本地 nexus的时候,报错 Return code is: 400, ReasonPhrase: Bad Request.

解决思路:

 1.查看maven profile 。查看下图的配置和maven配置文件settings.xml中的server、repositories 配置是否一致。

这里主要是看相应的id,对应的用户名、密码、url之类的配置是否正确。

 2.如下图:设置对应仓库的 Deployment Policy

猜你喜欢

转载自www.cnblogs.com/hui-run/p/9142694.html