mvn clean package errors (OD-757)
JustSKY opened 4 years ago

Hello, I followed issue onedev/server#587 but I am not able to build the image mvn clean package gives errors when its testing

Here's the Workflow link

Here's where the error starts step:4:28707

I have never worked with Java before so idk how to fix this

  • Zhou You commented 4 years ago

    compiling with Java 1.8

  • JustSKY commented 4 years ago

    Version: 11.0.11+9

    #step:3:19

  • Zhou You commented 4 years ago

    You need to change the configuration to 1.8 and java 11 is not supported now

  • JustSKY commented 4 years ago

    Thanks changing to java version 8 worked

    https://github.com/Just5KY/onedev/runs/6750131471

    name: Java CI
    
    on:
      workflow_dispatch:
    
    jobs:
      build:
        runs-on: ubuntu-latest
    
        steps:
          - uses: actions/checkout@v3
          - name: Set up JDK 1.8
            uses: actions/setup-java@v3
            with:
              java-version: '8'
              distribution: 'adopt'
          - name: Build with Maven
            run: mvn clean package
    
  • Robin Shen changed state to 'Closed' 4 years ago
    Previous Value Current Value
    Open
    Closed
  • Robin Shen commented 4 years ago

    Yes, although OneDev can run on Java11-17. Compiling it still needs Java8.

issue 1/1
Type
Bug
Priority
Normal
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (5)
Reference
OD-757
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover