2014-07-10 6 views
1

Linux 가상 시스템에 Nexus 2.8을 설치했습니다. 그것을 시작하고 매우 행복하게 저장소로 브라우저를 할 수 있습니다. 저장소보기에서 리포지토리를 보면 모든 서비스가 차단되며 그 중 하나도 차단되지 않습니다.Nexus 공개 리포지토리 빈 캔트 만들기 maven 프로젝트

나는 .. 개별 REPO 인덱스하지만 제가 업데이트하거나 그것을 스캔, 업데이트는 등 읽을 0 미국 주 경우 다음 내가 얻을 인덱스를 다시 작성하는 경우이다 염려 한 일을 찾아 볼 수 있습니다

jvm 1 | 2014-07-10 12:08:02,115+0100 INFO [pxpool-1-thread-3] admin org.sonatype.nexus.index.Def 
aultIndexerManager - Remote indexes updated successfully for repository "Central" [id=central] 
jvm 1 | 2014-07-10 12:08:02,123+0100 INFO [pxpool-1-thread-3] admin org.sonatype.nexus.index.Nex 
usScanningListener - Scanning of repositoryID="central" started. 
jvm 1 | 2014-07-10 12:08:59,617+0100 INFO [pxpool-1-thread-3] admin org.sonatype.nexus.index.Nex 
usScanningListener - Scanning of repositoryID="central" finished: scanned=0, added=0, updated=0, rem 
oved=0, scanningDuration=0:00:57.493 
jvm 1 | 2014-07-10 12:09:00,025+0100 INFO [pxpool-1-thread-3] admin org.sonatype.nexus.index.Def 
aultIndexerManager - Publishing index for repository cen 

내 공개

리포지토리가 모든 리포지토리가 사용 가능한 리포지토리 상자에 있도록 구성됩니다. 나는 그저 다른 설정을해야 할 필요가 없다고 생각하지만, 기본 설정을 먼저하고 싶지는 않습니다. 각 repo에 대한 다운로드 원격 인덱스를 true로 설정했습니다.

Eclipse를 통해 메이븐 프로젝트를 만들려고 할 때 만들 수 없습니다. 나는 리모콘을 찾아 내 이클립스 IDE에서 그들을 다운로드 왜 캔트이 단지 그렇게 존재하는 것을 볼 수 있습니다

10/07/2014 12:27:40 BST: [WARN] The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 is missing, no dependency information available 
10/07/2014 12:27:41 BST: [WARN] The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 is missing, no dependency information available 
10/07/2014 12:27:41 BST: [INFO] Using org.eclipse.m2e.jdt.JarLifecycleMapping lifecycle mapping for MavenProject: dcdw:dccd:0.0.1-SNAPSHOT @ C:\projects\lloyds\dccd\pom.xml. 
10/07/2014 12:27:41 BST: [WARN] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 is missing, no dependency information available 
10/07/2014 12:27:41 BST: [WARN] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 is missing, no dependency information available 
10/07/2014 12:27:42 BST: [WARN] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 is missing, no dependency information available 
10/07/2014 12:27:42 BST: [WARN] The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 is missing, no dependency information available 
10/07/2014 12:27:42 BST: [WARN] The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 is missing, no dependency information available 
10/07/2014 12:27:42 BST: [INFO] Using org.eclipse.m2e.jdt.JarLifecycleMapping lifecycle mapping for MavenProject: dcdw:dccd:0.0.1-SNAPSHOT @ C:\projects\lloyds\dccd\pom.xml. 
10/07/2014 12:27:42 BST: [WARN] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 is missing, no dependency information available 

콘솔에 다음과 같은 오류가? 내가하는 방화벽으로 프록시 구성을 설정하고 오류가 발생하지 않습니다으로이 액세스 할 수 있는지 확인하고 있지만 건강 검사를 실행할 수있다

<?xml version="1.0"?> 
<settings xmlns="http://maven.apache.org/POM/4.0.0" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
      http://maven.apache.org/xsd/settings-1.0.0.xsd"> 


    <localRepository>c:/maven/repository</localRepository> 

    <mirrors> 
     <mirror> 
      <id>nexus</id> 
      <mirrorOf>*</mirrorOf> 
      <url>http://unix.host.ip:8081/nexus/content/groups/public</url> 
     </mirror> 
    </mirrors> 

    <profiles> 
     <profile> 
      <id>nexus</id> 
      <!--Enable snapshots for the built in central repo to direct --> 
      <!--all requests to nexus via the mirror --> 
      <repositories> 
       <repository> 
        <id>central</id> 
        <url>http://central</url> 
        <releases> 
         <enabled>true</enabled> 
         <updatePolicy>daily</updatePolicy> 
        </releases> 
        <snapshots> 
         <enabled>true</enabled> 
         <updatePolicy>always</updatePolicy> 
        </snapshots> 
       </repository> 
      </repositories> 
      <pluginRepositories> 
       <pluginRepository> 
        <id>central</id> 
        <url>http://central</url> 
        <releases> 
         <enabled>true</enabled> 
         <updatePolicy>daily</updatePolicy> 
        </releases> 
        <snapshots> 
         <enabled>true</enabled> 
         <updatePolicy>always</updatePolicy> 
        </snapshots> 
       </pluginRepository> 
      </pluginRepositories> 
     </profile> 
    </profiles> 
    <activeProfiles> 
     <activeProfile>nexus</activeProfile> 
    </activeProfiles> 


</settings> 

내가 사용하고

내 설정 XML이다 0을 리턴하지만 오류를 던지지는 않습니다.

아무도 이유가 무엇인지 알지 못합니다.

또한

내가

http://unix.ip.host:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.pom?describe

내가 당신의 공공 저장소 그룹이

Describe of /groups/public/org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar- 

plugin-2.3.2.pom 

This page describes the processing of a request made by external client, using information from the request, retrieved item (or exception if not item was retrieved) and some intermittent processing states. 

Processing time 

1.581 ms 

Request Context 

Key Value 
request.address 10.175.42.118 
request.remoteOnly false 
request.user admin 
request.url http://hostname:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.pom?describe 
request.localOnly false 
request.agent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 
request.asExpired false 
org.sonatype.nexus.content.internal.ContentServlet.stopwatch 1.581 ms 
request.external true 
Response Outcome 

NOT FOUND (Item not found, core threw exception) 

Processed repositories (IDs) 

public 
Applied Routings 

Key Value 
public [] 
Exception 

Type 

org.sonatype.nexus.proxy.repository.GroupItemNotFoundException 

Message 

Path /org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.pom not found in group repository "Public Repositories" [id=public]. 

Exception reasoning 

public : Path /org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.pom not found in group repository "Public Repositories" [id=public]. 

답변

2

라는 제목의 왼쪽 열에있는 모든 저장소를 가지고 다음과 같은 출력을 얻을 URL에 넣고 경우 "발주 그룹 리포지토리 "를 선택하고 사용 가능한 리포지토리 목록에 없습니다. 당신이 저장소 구성에서 찾아보기 원격 탭을 사용하여 프록시 구성을 통해 (중앙 시작) 원격 저장소에 액세스 할 수 있는지 확인해야합니다 또한 http://books.sonatype.com/nexus-book/reference/config-sect-repo-group.htmlhttp://books.sonatype.com/nexus-book/reference/confignx-sect-managing-groups.html

에 그에 대한 자세한 내용을 참조하십시오.

모든 사항과 고정 된 사항을 확인했으면 로컬 Maven 저장소 (~/.m2/repository)를 삭제하고 명령 줄 빌드를 시도합니다. 일단 작동하면 ... M2e와 함께 Eclipse를 사용하십시오 ..