2016-08-09 82 views
0

庫我有以下.m2/settings.xmlMaven的:在settings.xml中

<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 
         https://maven.apache.org/xsd/settings-1.0.0.xsd"> 
    <profiles> 
    <profile> 
     <repositories> 

     <repository> 
      <id>jboss-ga-repository</id> 
      <url>http://maven.repository.redhat.com/techpreview/all</url> 
      <releases> 
      <enabled>true</enabled> 
      </releases> 
      <snapshots> 
      <enabled>false</enabled> 
      </snapshots> 
     </repository> 

     </repositories> 
     <pluginRepositories> 

     <pluginRepository> 
      <id>jboss-ga-plugin-repository</id> 
      <url>http://maven.repository.redhat.com/techpreview/all</url> 
      <releases> 
      <enabled>true</enabled> 
      </releases> 
      <snapshots> 
      <enabled>false</enabled> 
      </snapshots> 
     </pluginRepository> 

     </pluginRepositories> 
    </profile> 
    </profiles> 
</settings> 

當我嘗試運行mvn install對我的項目,它說:

[INFO] Unable to find resource 'org.jboss.bom.eap:jboss-javaee-6.0-with-tools:pom:6.4.0.GA' in repository central (https://repo1.maven.org/maven2) 
[INFO] ------------------------------------------------------------------------ 
[ERROR] FATAL ERROR 
[INFO] ------------------------------------------------------------------------ 
[INFO] Error building POM (may not be this project's POM). 


Project ID: org.jboss.bom.eap:jboss-javaee-6.0-with-tools 

Reason: POM 'org.jboss.bom.eap:jboss-javaee-6.0-with-tools' not found in repository: Unable to download the artifact from any repository 

    org.jboss.bom.eap:jboss-javaee-6.0-with-tools:pom:6.4.0.GA 

from the specified remote repositories: 
    central (https://repo1.maven.org/maven2) 

for project org.jboss.bom.eap:jboss-javaee-6.0-with-tools 

但只有central (https://repo1.maven.org/maven2)它試圖。爲什麼忽略settings.xml中指定的儲存庫?

+0

已配置成一個配置文件,並沒有激活該配置文件,並沒有給它一個id ... – khmarbaise

+0

我會電子書籍安裝一個倉庫管理和處理,在庫管理器,而不是settings.xml中.. 。 – khmarbaise

回答

相關問題