Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to package or compile or X locally? #2758

Open
dancer1325 opened this issue Feb 8, 2025 · 1 comment
Open

How to package or compile or X locally? #2758

dancer1325 opened this issue Feb 8, 2025 · 1 comment

Comments

@dancer1325
Copy link
Contributor

I miss an entry in the README.md to compile it locally, in order to test locally features or even just play with the examples

Failure attempts

  • Attempt1: .mvn clean compile
    • try to use the corresponding maven wrapper without succeed
  • Attempt2: specifying locally in the ".m2/toolchains.xml", the jdk entry to my JDK v11 + mvn clean compile
    ...
    <type>jdk</type> 
      <provides>
        <version>1.11</version>
        <vendor>zulu</vendor>
      </provides>
      <configuration>
        <jdkHome>/Library/Java/JavaVirtualMachines/zulu-11.jdk</jdkHome>
      </configuration>
    ...
    
  • Attempt3: specifying in the root pom.xml + mvn clean compile
    <main.java.version>1.11</main.java.version>
    

Current stack locally

  • Maven

    Apache Maven 3.9.9 
    Java version: 11.0.24, vendor: Azul Systems, Inc.
    OS name: "mac os x", version: "15.2", arch: "aarch64", family: "mac"
    
  • Java

    openjdk 11.0.24 2024-07-16 LTS
    OpenJDK Runtime Environment Zulu11.74+15-CA (build 11.0.24+8-LTS)
    
@hosuaby
Copy link
Contributor

hosuaby commented Feb 12, 2025

Hello @dancer1325

To build this project locally, you need to setup multiple versions of JDK (8, 11, 17, 21) and configure the toolchain. The first step can be achieved using sdkman. You should chose Java 21 as default version (check documentation of SDKman for that).

You can find toolchains.xml for this project here: https://github.com/OpenFeign/feign/blob/master/.github/files/toolchains.xml

Even if it is not very clear, you can learn all the steps of building this project by looking into its build pipeline: https://github.com/OpenFeign/feign/blob/master/.github/workflows/build.yml

If you still have questions, feel free to ask.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants