Skip to content

fail to mvn compile on win7 #15

Closed
Closed

Description

@william-yangbo

When run 'mvn clean compile', I got:
[ERROR] Failed to execute goal com.github.maven-nar:nar-maven-plugin:3.1.0:nar-validate (default-nar-validate) on project pulsar-checksum: Cannot deduce version number from: -> [Help 1]

does the build depend on local installation of visual c++ compiler?

could you please provide a how to build guide?

thx!

Activity

  1. merlimat commented on Sep 13, 2016

    @merlimat
    Contributor

    We never tried to build on Windows (just Linux and MacOS).

    The build depends on building a small JNI extension to compute CRC32C checksum with SSE4.2 instruction. For that we need a C++ compiler, but I'm not sure how to have maven pickup the VisualC++ path.

    Probably the quicker fix is to disable building the JNI lib on Windows. @rdhabalia can you give it a try?

  2. rdhabalia commented on Sep 14, 2016

    @rdhabalia
    Contributor

    @archcentric : is it possible to give more error-logs with which build has failed.

  3. william-yangbo commented on Sep 14, 2016

    @william-yangbo
    Author

    The 'pulsar-checksum' project compile successfully on win7 after I:
    1, installed ms visual c++ locally
    2, update the nar-maven-plugin from 3.1.0 to 3.5.0

    however I still fail to build the whole project on win7,
    I need to comment out '' for the managed-ledger reference in some projects, otherwise compilation fail saying no tests jar on official maven repo.

    i have to give up after I got following error:

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project pulsar-broker: Compilation failure: Compilation failure:

  4. rdhabalia commented on Sep 14, 2016

    @rdhabalia
    Contributor

    @archcentric
    in your previous comment you mentioned you are trying mvn clean compile instead can you try mvn clean install

  5. william-yangbo commented on Sep 14, 2016

    @william-yangbo
    Author

    @rdhabalia
    As a matter of fact, I tried 'mvn clean install' in my previous comment.

  6. nietzschetmh commented on Jan 19, 2017

    @nietzschetmh

    @archcentric Hi, i have a naive question, how did you
    update the nar-maven-plugin from 3.1.0 to 3.5.0

    Appreciate your help.

  7. added
    type/enhancement
    on Aug 30, 2018
  8. ivankelly commented on Dec 5, 2018

    @ivankelly
    Contributor

    Closing due to lack of activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions