Hadoop Common
  1. Hadoop Common
  2. HADOOP-9383

mvn clean compile fails without install goal

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      'mvn -Pnative-win clean compile' fails with the following error:

      [ERROR] Could not find goal 'protoc' in plugin org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT among available goals -> [Help 1]

      The build succeeds if the install goal is specified.

        Activity

        Hide
        Craig Svenson added a comment -

        All releases fail in the compile running the clean first.
        mvn clean && mvn -X compile -Pnative
        if we run the compile a second time without the clean it builds successfully.

        The error is
        [ERROR] Could not find goal 'protoc' in plugin org.apache.hadoop:hadoop-maven-plugins:2.4.1 among available goals -> [Help 1]
        org.apache.maven.plugin.MojoNotFoundException: Could not find goal 'protoc' in plugin org.apache.hadoop:hadoop-maven-plugins:2.4.1 among available goals

        Show
        Craig Svenson added a comment - All releases fail in the compile running the clean first. mvn clean && mvn -X compile -Pnative if we run the compile a second time without the clean it builds successfully. The error is [ERROR] Could not find goal 'protoc' in plugin org.apache.hadoop:hadoop-maven-plugins:2.4.1 among available goals -> [Help 1] org.apache.maven.plugin.MojoNotFoundException: Could not find goal 'protoc' in plugin org.apache.hadoop:hadoop-maven-plugins:2.4.1 among available goals
        Hide
        Lantao Jin added a comment -

        I find a way to pass compile:

        cd hadoop-common-project
        mvn clean compile
        cd ..
        mvn compile

        It all pass!

        Show
        Lantao Jin added a comment - I find a way to pass compile: cd hadoop-common-project mvn clean compile cd .. mvn compile It all pass!
        Hide
        Lantao Jin added a comment -

        I find it in Ubuntu also, my protocbuf version is 2.5.0

        Show
        Lantao Jin added a comment - I find it in Ubuntu also, my protocbuf version is 2.5.0
        Hide
        Jagat Singh added a comment -

        I also got this error but after debug i found i was not having correct version of profbuf 2.5 installed

        I did that and it works

        For record

        Here are steps

        Download from

        http://protobuf.googlecode.com/files/protobuf-2.5.0.tar.bz2
        Extract it

        Install it

        ./configure
        make
        make check
        sudo make install

        sudo ldconfig

        Now try to build again

        It should work happily

        Show
        Jagat Singh added a comment - I also got this error but after debug i found i was not having correct version of profbuf 2.5 installed I did that and it works For record Here are steps Download from http://protobuf.googlecode.com/files/protobuf-2.5.0.tar.bz2 Extract it Install it ./configure make make check sudo make install sudo ldconfig Now try to build again It should work happily
        Hide
        Xiaobo Peng added a comment -

        I can repro on Centos also.

        Show
        Xiaobo Peng added a comment - I can repro on Centos also.
        Hide
        Arpit Agarwal added a comment -

        Thanks Chris, just noticed that too.

        Show
        Arpit Agarwal added a comment - Thanks Chris, just noticed that too.
        Hide
        Chris Nauroth added a comment -

        This is actually not specific to Windows. I can repro on Mac too. Updating summary.

        Show
        Chris Nauroth added a comment - This is actually not specific to Windows. I can repro on Mac too. Updating summary.

          People

          • Assignee:
            Unassigned
            Reporter:
            Arpit Agarwal
          • Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

            • Created:
              Updated:

              Development