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等配置信息



