Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16121

Cannot build in dev docker environment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Resolved
    • 3.3.0
    • None
    • build
    • None
    • Darwin lqjacklee-MacBook-Pro.local 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64

    Description

      Operation as below : 

       

      1, run the docker daemon

      2, run ./start-build-env.sh

      3, mvn clean package -DskipTests 

       

      Response from the command line : 

       

      [ERROR] Plugin org.apache.maven.plugins:maven-surefire-plugin:2.17 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-surefire-plugin:jar:2.17: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.17 from/to central (https://repo.maven.apache.org/maven2): /home/liu/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.17/maven-surefire-plugin-2.17.pom.part.lock (No such file or directory) -> [Help 1]

       

      solution : 

      a, sudo chmod -R 775 ${USER_HOME}/.m2/

      b, sudo chown -R ${USER_NAME} ${USER_HOME}/.m2

       

      After try the way , it still in trouble. 

       

      c, sudo mvn clean package -DskipTests. but in this way, will download the file (pom, jar ) duplicated ? 

      Attachments

        Activity

          People

            Jack-Lee lqjacklee
            Jack-Lee lqjacklee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: