2017-01-03 2 views
0

제가 아파치 Archiva를 설정하고에 파일의 몇 가지를 추가했습니다 :Maven에서 Apache Archiva를 사용하는 방법?

enter image description here

enter image description here

모든 것이 좋아 보인다, 나는 생각한다.

나는 프로파일 포함하도록 내 Settings.XML의 파일을 업데이트 한 :

enter image description here

I :

enter image description here

을 그때 내 pom.xml 파일에 위에서 언급 한 종속성을 추가 그것을 재건하고 나서 빵을 만들기 위해 그것을 구하십시오!

enter image description here

는, 모두의 사랑을 위해 누군가가 내가 제대로 안할거야 무엇을 말해 줄 수이 세상에서 좋은하세요?

오류 메시지가 실제로 읽

enter image description here

변경된 스냅 샷 "true"로하고 스크린 샷을 추가합니다. 아파치 Archiva와 메이븐 사이의 연결을 만들기

enter image description here

+0

나열된 오류 및 종속 관계는 서로 관련되지 않습니다. 또한 yout settings.xml에서, 저장소에있는 이슈에 대해 SNAPSHOT을 유지하려고한다면''''는'true'이어야합니다. – nullpointer

+0

@nullpointer가 현재 오류 메시지와 함께 스크린 샷을 추가했습니다. 어떤 도움 이라든지 대단히 감사합니다. –

+0

사실 스냅 샷을 사용해보십시오. 또한'mvn clean install'을 실행하고 오류 스크린 샷 대신 질문에 관련 실패 로그를 게시 할 수 있습니까? – nullpointer

답변

2

어려운 강타했다.

결국 스택에 다른 게시물을 가로 질러서 발견했습니다.이 사실을 알아 내는데 엄청난 도움이되었습니다. 내 인생에서 나는 적절한 신용을 찾기 위해 다시는 찾지 못하는 것 같습니다. 내가 결국 그것을 다시 찾으면 나는 그 달콤한 달콤한 카르마를 얻을 수 있도록 게시 할 것이다. 나는 이것이 가장 효율적인 레이아웃을하지 않을 수 있지만 결국 일을 이해

<?xml version="1.0" encoding="UTF-8"?> 

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> 

<proxies> 
    <proxy> 
     <id>optional</id> 
     <active>true</active> 
     <protocol>http</protocol> 
     <host>myproxyserver.name.org</host> 
     <port>8080</port> 
     <nonProxyHosts>localhost|myserver</nonProxyHosts> 
    </proxy> 
</proxies> 

<servers> 
    <server> 
     <id>my.snapshots</id> 
    </server> 
</servers> 

<mirrors> 
    <mirror> 
     <id>Central</id> 
     <url>http://repo.maven.apache.org/maven2</url> 
     <mirrorOf>my.snapshots</mirrorOf> 
    </mirror> 
    <mirror> 
     <id>archiva.default</id> 
     <mirrorOf>Central</mirrorOf> 
     <url>http://myserver:8080/repository/internal/</url> 
    </mirror> 
    <mirror> 
     <id>my.snapshots</id> 
     <mirrorOf>Central</mirrorOf> 
     <url>http://myserver:8080/repository/snapshots</url> 
    </mirror> 
</mirrors> 

<profiles> 
    <profile> 
     <id>internal</id> 
     <activation> 
      <activeByDefault>true</activeByDefault> 
     </activation> 
     <repositories> 
      <repository> 
       <id>archiva.internal</id> 
       <name>Archiva Managed Internal Repository</name> 
       <url>http://myserver:8080/repository/internal/</url> 
       <releases><enabled>true</enabled><updatePolicy>always</updatePolicy></releases> 
       <snapshots><enabled>false</enabled></snapshots> 
      </repository> 
      <repository> 
       <id>archiva.snapshots</id> 
       <name>Archiva Managed Internal Repository</name> 
       <url>http://myserver:8080/repository/snapshots/</url> 
       <releases><enabled>false</enabled></releases> 
       <snapshots><enabled>true</enabled><updatePolicy>always</updatePolicy></snapshots> 
      </repository> 
     </repositories> 
    </profile> 
</profiles> 

<activeProfiles> 
    <activeProfile>internal</activeProfile> 
</activeProfiles> 

:

여기 내 Settings.XML의 파일입니다. 더 간결하게하기위한 권장 사항이있는 사람은 누구나 전화를 걸 수 있습니다.

+0

게시물은 무엇입니까? –

+0

@MauricePerry, 귀하의 질문을 이해하지 못해 죄송합니다. 뭘 물어 보는 거냐? –

+0

당신이 우연히 발견 한 게시물 –

관련 문제