maven自建仓库jar包上传:

   jar包上传可以采用在自建仓库上系统上传以及通过配置maven setting.xml以及pom.xml上传。

   maven通过配置上传需要用户名密码以及maven仓库位置配置。

   遇到的一些问题记录如下

   其中Return code : 405为路径配置错误,maven路径包含两部分一部分是下边url

  <distributionManagement>
  <repository>
  <id>snapshots</id>
  <name>libs-snapshots</name>
  <url>http://artifactory.test-develop.com/libs-snapshots</url>
  </repository>
  </distributionManagement> 

  以及使用的时候下边groupId、artifactId、version

  <dependency>
  <groupId>com.test</groupId>
  <artifactId>findgoods-common</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  </dependency>

  最终在maven自建仓库的位置应该可以找到

  http://artifactory.test-develop.com/libs-snapshots/com/test/findgoods-common/1.0.0-SNAPSHOT/

  发生405问题如上述解决就可以

  其他问题可以参考

  http://maishj.iteye.com/blog/2153092

 

相关文章:

  • 2021-11-08
  • 2021-09-26
  • 2021-05-25
  • 2021-06-18
  • 2021-07-01
  • 2021-12-04
  • 2022-02-24
  • 2022-12-23
猜你喜欢
  • 2021-10-19
  • 2021-04-27
  • 2022-01-14
  • 2021-03-31
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
相关资源
相似解决方案