Skip to content

[Question] maven install error on windows #2220

Description

@sheli00

Bug Type (问题类型)

other exception / error (其他异常报错)

Before submit

  • 我已经确认现有的 Issues 与 FAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)

Environment (环境信息)

  • Apache Maven 3.9.2 (c9616018c7a021c1c39be70fb2843d6f5f9b8a1c)
  • Maven home: D:\study\maven
  • Java version: 1.8.0_361, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_361\jre
  • Default locale: zh_CN, platform encoding: GBK
  • OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Expected & Actual behavior (期望与实际表现)

when i tried to use command mvn clean install -Dmaven.test.skip=true, errors below occured.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (download-swagger-ui) on project hugegraph-dist: An Ant BuildException has occured: exec returned: 1
[ERROR] around Ant part ...<exec failonerror="true" dir="D:\study\idea\incubator-hugegraph\hugegraph-dist" executable="bash">... @ 12:101 in D:\study\idea\incubator-hugegraph\hugegraph-dist\target\antrun\build-main.xml
[ERROR] -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :hugegraph-dist

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

Activity

  1. imbajin commented on May 31, 2023

    @imbajin
    Member

    could check the exist issue first

    And welcome to enhance the user experience in Windows

  2. added
    help wantedExtra attention is needed
    shellIssues about shell script
    and removed
    bugSomething isn't working
    on May 31, 2023
  3. changed the title [-][Bug] maven install error on windows[/-] [+][Question] maven install error on windows[/+] on May 31, 2023
  4. liuxiaocs7 commented on Jun 4, 2023

    @liuxiaocs7
    Member

    I use mvn clean package -DskipTests build successfully on win 10 with PowerShell.

    env:

    PS D:\Development\Code\incubator-hugegraph> java -version
    java version "1.8.0_291"
    Java(TM) SE Runtime Environment (build 1.8.0_291-b10)
    Java HotSpot(TM) 64-Bit Server VM (build 25.291-b10, mixed mode)
    PS D:\Development\Code\incubator-hugegraph> mvn -version
    Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
    Maven home: D:\Development\Tools\Maven\apache-maven-3.8.1\bin\..
    Java version: 1.8.0_291, vendor: Oracle Corporation, runtime: D:\Development\Tools\Java\jdk1.8.0_291\jre
    Default locale: zh_CN, platform encoding: GBK
    OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
    [INFO] Skipping because packaging 'jar' is not pom.
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary for hugegraph 1.0.0:
    [INFO]
    [INFO] hugegraph .......................................... SUCCESS [  1.953 s]
    [INFO] hugegraph-core ..................................... SUCCESS [ 27.612 s]
    [INFO] hugegraph-api ...................................... SUCCESS [  6.530 s]
    [INFO] hugegraph-cassandra ................................ SUCCESS [  1.895 s]
    [INFO] hugegraph-scylladb ................................. SUCCESS [  1.576 s]
    [INFO] hugegraph-rocksdb .................................. SUCCESS [  1.236 s]
    [INFO] hugegraph-mysql .................................... SUCCESS [  0.989 s]
    [INFO] hugegraph-palo ..................................... SUCCESS [  0.942 s]
    [INFO] hugegraph-hbase .................................... SUCCESS [  1.128 s]
    [INFO] hugegraph-postgresql ............................... SUCCESS [  0.827 s]
    [INFO] hugegraph-dist ..................................... SUCCESS [ 20.077 s]
    [INFO] hugegraph-example .................................. SUCCESS [  1.907 s]
    [INFO] hugegraph-test ..................................... SUCCESS [  7.318 s]
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  01:14 min
    [INFO] Finished at: 2023-06-05T02:06:12+08:00
    [INFO] ------------------------------------------------------------------------
    
  5. locked and limited conversation to collaborators on Aug 5, 2023
  6. converted this issue into a discussion #2269 on Aug 5, 2023
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

    help wantedExtra attention is neededimprovementGeneral improvementshellIssues about shell scripttodo

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions