repositories.properties 파일에서
installUtility 명령이 로컬 디렉토리 기반 저장소,
Liberty Asset Repository Service의 인스턴스 및 Liberty Repository에 액세스하는 방법을 구성할 수 있습니다.
이 태스크 정보
installUtility 명령은 다음 저장소에 액세스할 수 있습니다.
- 인터넷을 통해 액세스 가능한 공용 IBM® 호스팅 저장소인 Liberty Repository. 자세한 정보는
Liberty Repository의 내용을 참조하십시오.
- 엔터프라이즈의 방화벽 뒤에서 원격으로 액세스 가능한 사내 구축 환경 저장소를 작성하는 데 사용할 수 있는
개방형 소스 서비스인 Liberty Asset Repository Service. 자세한 정보는 GitHub의 WASdev/tool.lars 프로젝트를 참조하십시오.
- installUtility download 조치를 사용하거나 적용되는 모든 기능과 추가 기능이 포함된 wlp-featureRepo-<version>.zip 파일을 다운로드하여 작성되는
로컬 디렉토리 기반 저장소. 추가 정보는 installUtility 명령을 사용하여 자산 다운로드의 내용을 참조하십시오.
installUtility 명령과 featureManager 명령은 둘 다 동일한 구성 특성 파일 repositories.properties를 사용합니다.
프록시 설정은 공유되지만, 저장소 설정은 installUtility 명령에서만 사용합니다. 자산을 관리하고
저장소 기반 설치, 찾기 또는 설치 제거 조작을 완료하려면 featureManager 명령 대신
installUtility 명령을 사용하십시오.
팁: --from 옵션에서 저장소를 지정하여 단일 로컬 디렉토리 기반 저장소에서
자산을 다운로드하거나 설치할 수 있습니다.
repositories.properties 파일에서 추가 구성은 필요하지 않습니다.
추가 정보는
installUtility 명령의 내용을 참조하십시오.
제한된 인터넷 액세스로 또는
방화벽을 통해 IBM WebSphere® Liberty Repository에 액세스하려면
다음과 같은 호스트 및 포트에 대한 액세스 권한이 있는지 확인하십시오.
- public.dhe.ibm.com - 포트 443의 경우
- asset-websphere.ibm.com - 포트 443의 경우
참고: installUtility 명령은 HTTP/HTTPS 프로토콜을 사용하는
프록시 서버만 지원합니다.
프로시저
- 옵션: 저장소 또는 프록시 설정을 먼저 구성하면 installUtility viewSettings
명령을 실행하여 repositories.properties 파일의 구성 템플리트를
출력할 수 있습니다.
${wlp.install.dir}/etc/repositories.properties의 새 특성 파일에
템플리트를 복사하십시오. 특성 파일은 모든 플랫폼에서 ASCII 형식이어야 합니다.
- ${wlp.install.dir}/etc/repositories.properties 파일에서 설정을
정의하십시오.
installUtility viewSettings 명령에서 템플리트를 복사한 경우
사용자 환경을 참조하도록 예제 저장소 및 프록시 설정을 변경하여 템플리트를
수정하십시오. 번호 부호(#)로 시작하는 행은 처리되지 않습니다.
- 변경사항을 repositories.properties 파일에 저장하십시오.
- installUtility viewSettings 명령을 실행하여 저장소 및 프록시 설정을
검토하십시오. installUtility viewSettings 명령을 실행할 때
저장소 및 프록시 구성이 자동으로 유효성 검증됩니다. 자세한 유효성 검증
메시지를 보려면 --viewValidationMessages 옵션과 함께 명령을 실행하십시오.
>installUtility viewSettings
installUtility Settings
----------------------------------------------------------------------
Properties File: c:\wlp\etc\repositories.properties
Default Assets Repository: IBM WebSphere Liberty Repository
Use Default Repository: True
Properties File Validation
----------------------------------------------------------------------
Validation Results: The properties file successfully passed the
validation.
Configured Repositories
----------------------------------------------------------------------
Name: dev-rep
Location: http://dev.repo.ibm.com:9080/ma/v1
User Name: myname
Password: <Unspecified>
Proxy Settings
----------------------------------------------------------------------
Proxy Server: my.proxy.server.ibm.com
Port: 9080
User Name: myname
Password: ********
- installUtility testConnection 명령을 실행하여 저장소 연결을
테스트하십시오. 사용자 이름과 비밀번호를
설정하지 않으면 이를 제공하라는 프롬프트가 표시됩니다.
>installUtility testConnection
Testing the connection to all configured repositories...
This process might take several minutes to complete.
Configured Repositories
----------------------------------------------------------------------
Name: dev-rep
Location: http://dev.repo.ibm.com:9080/ma/v1
Status: Successfully connected to the configured repository.Name: IBM WebSphere Liberty Repository (Default Assets Repository)
Status: Successfully connected to the configured repository.
repoName을 지정하지 않고 installUtility testConnection 명령을 실행하여
repositories.properties 파일에 구성된 모든 저장소를 한꺼번에 테스트할 수 있습니다. Liberty Repository의 저장소 이름은 default입니다.
Liberty Repository에 대한 연결을 테스트하려면 다음 명령을 실행하십시오. installUtility testConnection default
다음에 수행할 작업
installUtility 명령을 사용하여 자산을 검색하고
이를 설치하거나 구성된 저장소에서 다운로드할 수 있습니다.