apache archiva不会从中央仓库加载插件

时间:2016-12-17 15:16:31

标签: java maven archiva

我想将Apache Archiva用作公司仓库和中央maven仓库(https://repo.maven.apache.org/maven2)的镜像。 但是当我打电话给archiva的服务器时,archiva无法从中央仓库下载jar。 有人知道如何解决它? 编译我的项目的结果是:

[INFO] Scanning for projects...
Downloading: http://localhost:8080/org/apache/maven/wagon/wagon-ssh/1.0-beta-7/wagon-ssh-1.0-beta-7.pom
[WARNING] The POM for org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7 is missing, no dependency information available
Downloading: http://localhost:8080/org/apache/maven/wagon/wagon-ssh/1.0-beta-7/wagon-ssh-1.0-beta-7.jar
Downloading: http://localhost:8080/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   The project MyProject:2.05:1.0 (d:\Work\test_maven\pom.xml) has 1 error
[ERROR]     Unresolveable build extension: Plugin org.apache.maven.wagon:wagon-ssh:1.0-beta-7 or one of its dependencies 
could not be resolved: The following artifacts could not be resolved: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7,
org.codehaus.plexus:plexus-utils:jar:1.1: Could not find artifact org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7 
in internal (http://localhost:8080/) -> [Help2]

我对存储库和proxyConnectors使用默认的archiva设置(从内部到中央存储库都有连接器。我没有使用Internet代理)。 中央回购“远程检查”是正确的。 我的maven settings.xml:

<mirror>
      <id>internal</id>      
      <name>Archiva Internal Repository</name>
      <url>http://localhost:8080/</url>
      <mirrorOf>*</mirrorOf>
</mirror>

我的pom.xml:

<project>
  <modelVersion>4.0.0</modelVersion>
  <name>Maven Default Project</name>
  <groupId>MyProject</groupId>
  <artifactId>2.05</artifactId>
  <version>1.0</version>    
  <dependencies>
    <dependency>
        <groupId>org.apache.poi</groupId>
        <artifactId>poi</artifactId>
        <version>3.15</version>
    </dependency>
    <dependency>
        <groupId>own</groupId>
        <artifactId>imapown</artifactId>
        <version>1.0</version>
    </dependency>
  </dependencies>  
  <build>
    <extensions>
        <extension>
            <groupId>org.apache.maven.wagon</groupId>
            <artifactId>wagon-ssh</artifactId>
            <version>1.0-beta-7</version>
        </extension>        
    </extensions>       
    <directory>target</directory>
    <outputDirectory>target/classes</outputDirectory>    
    <sourceDirectory>src</sourceDirectory>  
  </build>    
</project>

版本jdk:1.6.0_45,maven:3.2.5,archiva:2.2.1

0 个答案:

没有答案