2017-02-13 176 views
0

任何人都試圖在ubuntu中配置opendaylight maven環境?遵循url https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Startup_Project_Archetype中的步驟....我無法完成這些步驟,在嘗試構建項目時停止了「Peer Not Authenticated」錯誤。我嘗試使用installCert java和keytool等來安裝證書......它根本無法工作......是否有任何其他方式來構建此項目或任何環境來運行yang程序?請幫忙。提前致謝。無法在maven中構建opendaylight項目

+0

添加一些關於您的問題的更多信息。不要只使用鏈接他們可能會脫機,你的問題將是沒有意義的。嘗試在調試模式下運行並在此處添加輸出。 –

+0

錯誤無法傳遞工件org.opendaylight.odlparent:karaf-parent:pom:1.7.2-Boron-SR2 from/to opendaylight-mirror(https://nexus.opendaylight.org/content/repositories/public/): peer沒有在org.apache.maven.project.ProjectModelResolver.resolveModel進行身份驗證(ProjectModelResolver.java:159) – Vijayendhiran

+0

你是否支持某種代理? –

回答

0

希望你已經在maven settings.xml中添加了倉庫。一旦添加,請確保在運行它的settings.xml時運行它。

<?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"> 

    <profiles> 

     <profile> 
      <id>downloadSources</id> 
      <properties> 
       <downloadSources>true</downloadSources> 
       <downloadJavadocs>true</downloadJavadocs> 
      </properties> 
     </profile> 
     <profile> 
      <id>opendaylight-release</id> 
      <repositories> 
       <repository> 
        <id>opendaylight-mirror</id> 
        <name>opendaylight-mirror</name> 
        <url>http://nexus.opendaylight.org/content/repositories/public/</url> 
        <releases> 
         <enabled>true</enabled> 
         <updatePolicy>never</updatePolicy> 
        </releases> 
        <snapshots> 
         <enabled>false</enabled> 
        </snapshots> 
       </repository> 
      </repositories> 
      <pluginRepositories> 
       <pluginRepository> 
        <id>opendaylight-mirror</id> 
        <name>opendaylight-mirror</name> 
        <url>http://nexus.opendaylight.org/content/repositories/public/</url> 
        <releases> 
         <enabled>true</enabled> 
         <updatePolicy>never</updatePolicy> 
        </releases> 
        <snapshots> 
         <enabled>false</enabled> 
        </snapshots> 
       </pluginRepository> 
      </pluginRepositories> 
     </profile> 

     <profile> 
      <id>opendaylight-snapshots</id> 
      <repositories> 
       <repository> 
        <id>opendaylight-snapshot</id> 
        <name>opendaylight-snapshot</name> 
        <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url> 
        <releases> 
         <enabled>false</enabled> 
        </releases> 
        <snapshots> 
         <enabled>true</enabled> 
        </snapshots> 
       </repository> 
      </repositories> 
      <pluginRepositories> 
       <pluginRepository> 
        <id>opendaylight-snapshot</id> 
        <name>opendaylight-snapshot</name> 
        <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url> 
        <releases> 
         <enabled>false</enabled> 
        </releases> 
        <snapshots> 
         <enabled>true</enabled> 
        </snapshots> 
       </pluginRepository> 
      </pluginRepositories> 
     </profile> 
     <profile> 
      <id>maven-central-repo</id> 
      <repositories> 
       <repository> 
        <id>cetral-repo</id> 
        <name>maven-central-repo</name> 
        <url>http://repo1.maven.org/maven2/</url> 
        <releases> 
         <enabled>true</enabled> 
        </releases> 
        <snapshots> 
         <enabled>true</enabled> 
        </snapshots> 
       </repository> 
      </repositories> 
      <pluginRepositories> 
       <pluginRepository> 
        <id>cetral-repo</id> 
        <name>maven-central-repo</name> 
        <url>http://repo1.maven.org/maven2/</url> 
        <releases> 
         <enabled>true</enabled> 
        </releases> 
        <snapshots> 
         <enabled>true</enabled> 
        </snapshots> 
       </pluginRepository> 
      </pluginRepositories> 
     </profile> 
    </profiles> 

    <activeProfiles> 
     <!-- <activeProfile>maven-central-repo</activeProfile> --> 
     <activeProfile>opendaylight-release</activeProfile> 
     <activeProfile>opendaylight-snapshots</activeProfile> 
     <activeProfile>downloadSources</activeProfile> 
    </activeProfiles> 
</settings>