maven 로 컬 가방 사복 으로 전송

선행 요구: 올 바른 settings. xml 설정
maven 로 컬 jar 를 사복 으로 전송 하 는 명령 예제:
mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc -Dversion=11.2.0 -Dpackaging=jar -Dfile=ojdbc6.jar -Durl=http://${host-url}/repository/third/ -DrepositoryId=${id}

중요 매개 변수 해석:
- dfile: 로 컬 환경의 파일 주 소 를 말 합 니 다. (예 를 들 어 제 컴퓨터 의 현재 경 로 는. / ojdbc 6. jar 라 는 파일 이 있 습 니 다)
- Durl: nexus - reposcory 가 업로드 할 창고 경로 (nexus 가 처리 한 url 이 아 닌 실제 URL) 를 사복 에 표시 합 니 다.http://fake.nexus.cn/#browse/browse/components:third 처리 하 다http://fake.nexus.cn/repository/third/
- drepositoryId: 이것 은 maven / settings. xml 의 탭 에서 정 의 된 id 이름 입 니 다.
Hint: 고급 권한 사용자 만 이 jar 를 사복 으로 전송 할 수 있 습 니 다.
다음으로 전송:https://www.cnblogs.com/hailongchen/p/9765550.html

좋은 웹페이지 즐겨찾기