栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

将war包发布到maven私服测试2(验证结果失败)

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

将war包发布到maven私服测试2(验证结果失败)

swliu@X555LJ MINGW64 /d/software/workspace/user/testojdbc2/repository
$ ./mavenimport.sh -u admin -p admin -r http://127.0.0.1:8081/repository/repo_swliu/

 *   Trying 127.0.0.1:8081...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to 127.0.0.1 (127.0.0.1) port 8081 (#0)
* Server auth using Basic with user 'admin'
> PUT /repository/repo_swliu//com/oracle/ojdbc2/10.2.0.4.0/10.2.0.4.0.jar HTTP/1.1
> Host: 127.0.0.1:8081
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.78.0
> Accept: **
> Content-Length: 1988051
> Expect: 100-continue
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 400 Invalid path for a Maven 2 repository
< Server: Nexus/3.38.1-01 (OSS)
< X-Content-Type-Options: nosniff
< Content-Security-Policy: sandbox allow-forms allow-modals allow-popups allow-presentation allow-scripts allow-top-navigation
< X-XSS-Protection: 1; mode=block
< Connection: close
<
{ [0 bytes data]
  0 1941k    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
* Closing connection 0

 *   Trying 127.0.0.1:8081...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to 127.0.0.1 (127.0.0.1) port 8081 (#0)
* Server auth using Basic with user 'admin'
> PUT /repository/repo_swliu//com/oracle/ojdbc2/11.2.0.3.0/11.2.0.3.0.jar HTTP/1.1
> Host: 127.0.0.1:8081
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.78.0
> Accept: */*
> Content-Length: 2714189
> Expect: 100-continue
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 400 Invalid path for a Maven 2 repository
< Server: Nexus/3.38.1-01 (OSS)
< X-Content-Type-Options: nosniff
< Content-Security-Policy: sandbox allow-forms allow-modals allow-popups allow-presentation allow-scripts allow-top-navigation
< X-XSS-Protection: 1; mode=block
< Connection: close
<
{ [0 bytes data]
  0 2650k    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
* Closing connection 0

由此可见,不能凭感觉就单独的将一个jar包发布到私服,发布jar包到私服,还需要 xxx.pom/xxx.pom.sha1/xxx.xml等配置信息

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/1006608.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号