Skip to content

Unable to build in eclipse #1590

@ChristopherHahnTR

Description

@ChristopherHahnTR

Hello,
I'm attempting to fork eureka and build it, and have been struggling. I use Eclipse, and this is my first multi-project project, which may be part of the issue.
Below is what I've run into and what I've done to remedy. Has anyone downloaded and built this recently in eclipse, if so, advice would be welcome.

Issues:

Doesn't work on modern java

Downgraded java to 1.8.

plugins don't work gretty and netflixoss

For gretty, followed the fix here:
#1588

For netflixoss, added repository:
maven {
url "https://artifactory.appodeal.com/appodeal-public"
}

Build.gradle command at this point succeeds, but a test fails:

com.netflix.eureka.registry.TimeConsumingInstanceRegistryTest > testLeaseExpirationAndUpdateRenewalThreshold FAILED
com.netflix.eureka.test.async.executor.AsyncExecutorException at TimeConsumingInstanceRegistryTest.java:164
Caused by: java.lang.IllegalStateException at TimeConsumingInstanceRegistryTest.java:147

But eclipse still won't build properly.

My latest attempt after running refresh gradle, Eclipse reports a cyclic dependency.
One or more cycles were detected in the build path of project 'eureka-core'. The paths towards the cycle and cycle are:
->{eureka-client, eureka-core}
->{eureka-client, eureka-core, eureka-test-utils}
->{eureka-core, eureka-test-utils}

Which kind of makes sense, as I do see a cycle in the build.gradle files:
Eureka core has:
testCompile project(':eureka-test-utils')
compile project(':eureka-client')

Eureka client has:
testCompile project(':eureka-test-utils')

And eureka test-utils has:
compile project(':eureka-core')

But obviously this isn't causing gradle command line to fail, and it must work for yous.

Is there any other eclipse setup tricks I should try?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions