2016-11-28 1 views
0

받는다는 구성으로 프로젝트를 실행할 수 없습니다 :내가 fillowing <code>pom.xml</code>이있는 스칼라 프로젝트를 다운로드

<project 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/maven-v4_0_0.xsd"> 
    <groupId>mapr</groupId> 
    <artifactId>auctionsapp</artifactId> 
    <modelVersion>4.0.0</modelVersion> 
    <name>auctionsapp</name> 
    <packaging>jar</packaging> 
    <version>1.0</version> 
    <properties> 
     <maven.compiler.source>1.7</maven.compiler.source> 
     <maven.compiler.target>1.7</maven.compiler.target> 
     <encoding>UTF-8</encoding> 
     <scala.tools.version>2.10</scala.tools.version> 
     <scala.version>2.10.4</scala.version> 
     <spark.version>1.5.2</spark.version> 
    </properties> 
    <repositories> 
     <repository> 
      <id>scala-tools.org</id> 
      <name>Scala-tools Maven2 Repository</name> 
      <url>http://scala-tools.org/repo-releases</url> 
     </repository> 
     <repository> 
      <id>mapr-releases</id> 
      <url>http://repository.mapr.com/maven/</url> 
      <snapshots> 
       <enabled>false</enabled> 
      </snapshots> 
      <releases> 
       <enabled>true</enabled> 
      </releases> 
     </repository> 
    </repositories> 
    <dependencies> 
     <dependency> 
      <groupId>org.scala-lang</groupId> 
      <artifactId>scala-library</artifactId> 
      <version>${scala.version}</version> 
     </dependency> 
     <dependency> 
      <groupId>org.apache.spark</groupId> 
      <artifactId>spark-core_${scala.tools.version}</artifactId> 
      <version>${spark.version}</version> 
      <scope>provided</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.apache.spark</groupId> 
      <artifactId>spark-sql_${scala.tools.version}</artifactId> 
      <version>${spark.version}</version> 
     </dependency> 
     <dependency> 
      <groupId>org.apache.spark</groupId> 
      <artifactId>spark-mllib_${scala.tools.version}</artifactId> 
      <version>${spark.version}</version> 
     </dependency> 
    </dependencies> 
    <build> 
     <sourceDirectory>src/main/scala</sourceDirectory> 
     <plugins> 
      <plugin> 
       <groupId>org.scala-tools</groupId>      
       <artifactId>maven-scala-plugin</artifactId> 
       <version>2.15.2</version>       
       <executions>          
        <execution>         
         <goals>          
          <goal>compile</goal> 
         </goals> 
        </execution> 
       </executions> 
      </plugin> 
     </plugins> 
    </build> 
</project> 

문제는 내가 mvn install를 실행할 때 내가 얻을 수 있다는 것입니다 : 약

[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 4.992 s 
[INFO] Finished at: 2016-11-28T09:43:45+00:00 
[INFO] Final Memory: 14M/188M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal on project auctionsapp: Could not resolve dependencies for project mapr:auctionsapp:jar:1.0: Failed to collect dependencies at org.apache.spark:spark-core_2.10:jar:1.5.2 -> org.apache.hadoop:hadoop-client:jar:2.7.0-mapr-1509 -> org.apache.hadoop:hadoop-common:jar:2.7.0-mapr-1509 -> com.mapr.hadoop:maprfs:jar:5.0.9-mapr: Failed to read artifact descriptor for com.mapr.hadoop:maprfs:jar:5.0.9-mapr: Could not transfer artifact com.mapr:mapr-root:pom:2.0-SNAPSHOT from/to scala-tools.org (http://scala-tools.org/repo-releases): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 

어떤 생각을 무엇 이걸 일으킬 수 있니?

+0

keytool을 사용하여 네트워크 루트 인증서를 jac cacerts에 입력해야합니다. 매우 자세한 단계는 [this] (http://stackoverflow.com/a/40757655/1802348)를 참조하십시오. – positivecrux

답변

0

유물 com.mapr 전송할 수 없습니다 : mapr 루트 : POM : scala-tools.org에 /에서 2.0 스냅 샷 (http://scala-tools.org/repo-releases) : sun.security.validator.ValidatorException : PKIX 경로를 건물 실패 : sun.security.provider.certpath.SunCertPathBuilderException : -

는 SSL 인증서에 문제가 발생한 것 같습니다> [도움말 1] 에없는 요청 대상에 유효한 인증 경로를 찾을 수 있습니다. 아마도이 게시물이 유용 할 것입니다 : Problems using Maven and SSL behind proxy

관련 문제