编译期间的Maven错误

时间:2018-06-29 09:51:08

标签: maven

当我尝试运行mvn -e compile时,出现此错误。有人可以帮助我如何解决此错误

[ERROR] Failed to execute goal on project mpod-parent: Could not resolve depende
ncies for project omega.bigdata:mpod-parent:pom:1.4.5: Failed to collect depende
ncies at com.twitter:scalding-json_2.10:jar:0.10.1: Failed to read artifact desc
riptor for com.twitter:scalding-json_2.10:jar:0.10.1: Could not transfer artifac
t com.twitter:scalding-json_2.10:pom:0.10.1 from/to ext-release-local (https://a
rtifactory.dev.bigdata.omega.com/artifactory/ext-release-local): sun.security.va
lidator.ValidatorException: PKIX path building failed: sun.security.provider.cer
tpath.SunCertPathBuilderException: unable to find valid certification path to re
 quested target -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
n project mpod-parent: Could not resolve dependencies for project bskyb.bigdata:
mpod-parent:pom:1.4.5: Failed to collect dependencies at com.twitter:scalding-js
on_2.10:jar:0.10.1
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDe
pendencies(LifecycleDependencyResolver.java:221)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resol
veProjectDependencies(LifecycleDependencyResolver.java:127)
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAr
eResolved(MojoExecutor.java:245)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:199)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)

Pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>

<artifactId>omega-parent</artifactId>
<version>1.4.5</version>
<packaging>pom</packaging>

<!--  Parent pom file to fetch common properties -->
 <!-- <parent>
    <groupId>omega.bigdata</groupId>
    <artifactId>parent</artifactId>
    <version>0.0.6</version>
</parent>
-->
   <groupId>omega.bigdata</groupId>

 <name>omega data processing</name>
<description>Read and process the omega data for further usage</description>

 <properties>
    <scalatest-maven-plugin.version>1.0-M2</scalatest-maven-plugin.version>
    <scalatest.version>2.0</scalatest.version>
    <scalding-unit.version>0.6</scalding-unit.version>
    <scalding-core.version>0.10.0</scalding-core.version>
    <scalding-commons.version>0.10.0</scalding-commons.version>
    <!-- Ver. 0.10.1 is 0.10.0 + JsonLine fix for unit-testing.
          See: https://github.com/twitter/scalding/pull/971
         Not yet officially released but proposed on the mailing list. -->
    <scalding-json.version>0.10.1</scalding-json.version>
    <spyglass.version>2.10_0.10_4.3</spyglass.version>
    <akka-actor.version>2.2.3</akka-actor.version>
    <spray-client.version>1.2.0</spray-client.version>


 <!-- ADDING properties from parent pom -->

    <maven.compiler.source>1.6</maven.compiler.source>
    <maven.compiler.target>1.6</maven.compiler.target>
    <maven-compiler-plugin.version>3.0</maven-compiler-plugin.version>
    <maven-scala-plugin.version>2.15.2</maven-scala-plugin.version>
    <maven-war-plugin.version>2.3</maven-war-plugin.version>
    <encoding>UTF-8</encoding>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

    <!-- Cloudera's Distribution Including Apache Hadoop -->
    <!-- <cdh.version>cdh4.5.0</cdh.version> -->
    <cdh.version>cdh5.5.1</cdh.version>

    <!-- <datafu.version>0.0.4-${cdh.version}</datafu.version> -->
    <!-- <flume.version>1.3.0-${cdh.version}</flume.version> -->
<!--        <hadoop.version>2.0.0-${cdh.version}</hadoop.version> -->
    <hadoop.version>2.6.0-${cdh.version}</hadoop.version>

    <!-- <hadoop.core.version>2.0.0-mr1-${cdh.version}</hadoop.core.version> -->
     <hbase.version>1.0.0-${cdh.version}</hbase.version>
    <!-- <hbase.version>0.94.6-${cdh.version}</hbase.version> -->

     <hive.version>1.1.0-${cdh.version}</hive.version>
     <!-- <hive.version>0.10.0-${cdh.version}</hive.version> -->

    <!-- <mahout.version>0.7-${cdh.version}</mahout.version> -->
    <!-- <mapreduce.version>2.0.0-mr1-${cdh.version}</mapreduce.version> -->
    <!-- <oozie.version>3.3.0-${cdh.version}</oozie.version> -->
    <!-- <oozie- hadoop.version>2.0.0-${cdh.version}.oozie-3.3.0-${cdh.version}</oozie-hadoop.version> -->
     <!-- <oozie-sharelib.version>3.3.0-${cdh.version}</oozie-sharelib.version> -->
     <!-- <pig.version>0.10.0-${cdh.version}</pig.version> -->
     <!-- <sqoop.version>1.4.2-${cdh.version}</sqoop.version> -->
     <!-- <whirr.version>0.8.0-${cdh.version}</whirr.version> -->
     <!-- <zookeeper.version>3.4.5-${cdh.version}</zookeeper.version> -->

     <scala.scalding.version>2.10</scala.scalding.version>
     <scala.version>2.10.2</scala.version>
    <trove4j.version>3.0.3</trove4j.version>
    <maple.version>0.2.8</maple.version>
    <specs2.version>1.12.4.1</specs2.version>
    <typesafe.config.version>1.0.0</typesafe.config.version>

    <json4s-jackson.version>3.2.10</json4s-jackson.version>

    <!-- Other libraries properties -->
    <junit.version>4.10</junit.version>
    <slf4j.version>1.7.2</slf4j.version>
    <trove4j.version>3.0.3</trove4j.version>
    <javax.servlet.version>2.5</javax.servlet.version>
    <uncommons-maths.version>1.2.2a</uncommons-maths.version>

    <!-- plugins -->
    <maven-scala-plugin.version>2.15.2</maven-scala-plugin.version>
    <tomcat-maven-plugin.version>2.1</tomcat-maven-plugin.version>
    <maven.surefire.plugin.version>2.12.3</maven.surefire.plugin.version>
    <scalatest-maven-plugin.version>1.0-M2</scalatest-maven-plugin.version>

    <!-- end of parent properties -->
   </properties>

 <repositories>
    <repository>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
        <id>CBS Nexus</id>
        <name>Releases</name>
         <url>http://cbsnexus.omega.com:8081/nexus/content/groups/public/</url>
    </repository>
    <repository>
        <id>cloudera</id>
        <url>https://repository.cloudera.com/artifactory/cloudera-repos</url>
     </repository>
     <repository>
        <id>conjars.org</id>
        <url>http://conjars.org/repo</url>
    </repository>
    <repository>
        <id>clojars.org</id>
        <url>http://clojars.org/repo</url>
    </repository>
    <repository>
        <id>sonatype-oss</id>
        <url>http://oss.sonatype.org/content/repositories/snapshots</url>
        <snapshots><enabled>true</enabled></snapshots>
    </repository>
    <repository>
        <id>ext-release-local</id>
        <name>ext-release-local</name>
        <url>https://artifactory.dev.bigdata.omega.com/artifactory/ext-release-local</url>
    </repository>

</repositories>


 <dependencies>
    <!-- adding mockito -->
    <!-- https://mvnrepository.com/artifact/org.mockito/mockito-all -->
    <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-all</artifactId>
        <version>1.9.5</version>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>jdk.tools</groupId>
        <artifactId>jdk.tools</artifactId>
        <version>1.6.0</version>
        <scope>system</scope>
        <systemPath>${java.home}/../lib/tools.jar</systemPath>
    </dependency>
    <!-- Scala -->
    <dependency>
        <groupId>org.scala-lang</groupId>
        <artifactId>scala-library</artifactId>
        <version>${scala.version}</version>
    </dependency>
    <!-- Scalding -->
    <dependency>
        <groupId>jvyaml</groupId>
        <artifactId>jvyaml</artifactId>
        <version>1.0.0</version>
    </dependency>
    <dependency>
        <groupId>com.twitter</groupId>
        <artifactId>scalding-core_${scala.scalding.version}</artifactId>
        <version>${scalding-core.version}</version>
        <exclusions>
            <exclusion>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-core</artifactId>
            </exclusion>
            <exclusion>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-mapper</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>com.twitter</groupId>
        <artifactId>scalding-commons_${scala.scalding.version}</artifactId>
        <version>${scalding-commons.version}</version>
    </dependency>
    <dependency>
        <groupId>com.twitter</groupId>
        <artifactId>scalding-json_${scala.scalding.version}</artifactId>
        <version>${scalding-json.version}</version>
    </dependency>

    <dependency>
        <groupId>org.apache.hadoop</groupId>
        <artifactId>hadoop-common</artifactId>
        <version>${hadoop.version}</version>
        <exclusions>
            <exclusion>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-all</artifactId>
            </exclusion>
            <exclusion>
                <groupId>com.sun.jersey</groupId>
                <artifactId>jersey-server</artifactId>
            </exclusion>
            <exclusion>
                <groupId>commons-beanutils</groupId>
                <artifactId>commons-beanutils-core</artifactId>
            </exclusion>
            <exclusion>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <!-- We need to explicitly include commons-beanutils 1.7.0
     because it is needed by hadoop-common.
     The reason why we exclude the one coming from the transitive
     dependency is because hadoop-common from CDH 4.5 includes
     common-configuration 1.6 which has a conflict between
     common-beanutils 1.7 and 1.8 -->
    <dependency>
        <groupId>commons-beanutils</groupId>
        <artifactId>commons-beanutils</artifactId>
        <version>1.7.0</version>
    </dependency>
    <!-- Logging -->
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>${slf4j.version}</version>
    </dependency>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        <version>${slf4j.version}</version>
    </dependency>
    <!-- Testing -->
    <dependency>
        <groupId>org.scalatest</groupId>
        <artifactId>scalatest_${scala.scalding.version}</artifactId>
        <version>${scalatest.version}</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.scalatest</groupId>
        <artifactId>scalatest-maven-plugin</artifactId>
        <version>${scalatest-maven-plugin.version}</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>parallelai</groupId>
        <artifactId>parallelai.spyglass</artifactId>
        <version>${spyglass.version}</version>
        <exclusions>
            <exclusion>
                <groupId>com.sun.jersey</groupId>
                <artifactId>jersey-server</artifactId>
            </exclusion>
            <exclusion>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>servlet-api-2.5</artifactId>
            </exclusion>
            <exclusion>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

 <!-- copied from Satyas' gponzales etl pom
    <dependency>
        <groupId>org.json4s</groupId>
        <artifactId>json4s-jackson_${scala.version}</artifactId>
        <version>${json4s-jackson.version}</version>
        <exclusions>
            <exclusion>
                <artifactId>com.fasterxml.jackson.core</artifactId>
                <groupId>jackson-databind</groupId>
            </exclusion>
        </exclusions>
    </dependency>

    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>2.4.2</version>
        <exclusions>
            <exclusion>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-annotations</artifactId>
            </exclusion>
        </exclusions>
    </dependency> -->

  </dependencies>

 <build>
    <sourceDirectory>src/main/scala</sourceDirectory>
    <testSourceDirectory>src/test/scala</testSourceDirectory>
    <plugins>
        <plugin>
            <groupId>org.scala-tools</groupId>
            <artifactId>maven-scala-plugin</artifactId>
            <version>2.15.2</version>
            <executions>

                <execution>
                    <id>compile</id>
                    <goals>
                        <goal>compile</goal>
                    </goals>
                    <phase>compile</phase>
                </execution>
                <execution>
                    <id>test-compile</id>
                    <goals>
                        <goal>testCompile</goal>
                    </goals>
                    <phase>test-compile</phase>
                </execution>
                <execution>
                    <phase>process-resources</phase>
                    <goals>
                        <goal>compile</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <jvmArgs>
                    <jvmArg>-Xmx1024m</jvmArg>

                </jvmArgs>
            </configuration>
        </plugin>

        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.1</version>
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
            </configuration>
        </plugin>

        <plugin>
            <artifactId>maven-clean-plugin</artifactId>
            <version>2.5</version>
            <configuration>
                <filesets>
                    <fileset>
                        <directory>alternateLocation</directory>
                        <includes>
                            <include>**/*</include>
                        </includes>
                        <followSymlinks>false</followSymlinks>
                    </fileset>
                </filesets>
            </configuration>
        </plugin>


        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-shade-plugin</artifactId>
            <version>2.3</version>
            <configuration>
                <artifactSet>
                    <excludes>
                        <exclude>org.apache.hbase:*</exclude>
                        <exclude>javax.servlet.jsp:*</exclude>
                        <exclude>tomcat:*</exclude>
                    </excludes>
                </artifactSet>

                <filters>
                    <filter>
                        <artifact>*:*</artifact>
                        <excludes>
                            <exclude>META-INF/*.SF</exclude>
                            <exclude>META-INF/*.DSA</exclude>
                            <exclude>META-INF/*.RSA</exclude>
                        <!--    <exclude>*/reference.conf</exclude> -->
                        </excludes>


                    </filter>
                </filters>
            </configuration>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>shade</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

        <!-- assembly plugin has been overwriting config files -->
        <!--
        <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <configuration>
                <descriptorRefs>
                    <descriptorRef>jar-with-dependencies</descriptorRef>
                </descriptorRefs>
            </configuration>
            <executions>
                <execution>
                    <id>assemble-1</id>
                    <phase>install</phase>
                    <goals>
                        <goal>assembly</goal>
                    </goals>
                    <inherited>false</inherited>
                </execution>
            </executions>
        </plugin> -->
     </plugins>

     <pluginManagement>
        <plugins>
            <!--This plugin configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>
                                        org.scala-tools
                                    </groupId>
                                    <artifactId>
                                        maven-scala-plugin
                                    </artifactId>
                                    <versionRange>mvn
                                        [2.15.2,)
                                    </versionRange>
                                    <goals>
                                        <goal>compile</goal>
                                        <goal>testCompile</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <ignore/>
                                </action>
                            </pluginExecution>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>
                                        org.apache.maven.plugins
                                    </groupId>
                                    <artifactId>
                                        maven-dependency-plugin
                                    </artifactId>
                                    <versionRange>
                                        [2.1,)
                                    </versionRange>
                                    <goals>
                                        <goal>
                                            copy-dependencies
                                        </goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <ignore/>
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>
        </plugins>
     </pluginManagement>
   </build>


    <modules>
      <module>omega-conprot</module>
      <module>omega</module>
    </modules>

</project>

0 个答案:

没有答案