Hello everyone,
I'm posting the following question to understand if this is an expected behavior, a misconfiguration on my side or something else.
Starting from
https://github.com/Netflix/eureka/tree/master/eureka-examples I've created two Maven project:
1) eureka-client (which contains just the class
ExampleEurekaClient.java)2) eureka-service (which contains just the classes
ExampleEurekaService.java and ExampleServiceBase.java)
The pom of both projects is (except for the artifactId):
When I try to build the projects using "mvn clean package" I get the following error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project client: Compilation failure: Compilation failure:
[ERROR] /.../ExampleEurekaClient.java:[13,26] package com.netflix.config does not exist
[ERROR] /.../ExampleEurekaClient.java:[19,30] cannot find symbol
[ERROR] symbol: class DynamicPropertyFactory[ERROR] location: class eureka.client.ExampleEurekaClient
[ERROR] /.../ExampleEurekaClient.java:[19,88] package com.netflix.config does not exist
If I simply change the pom forcing the archaius-core transitive dependency to have scope compile:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.netflix.archaius</groupId>
<artifactId>archaius-core</artifactId>
<version>0.7.3</version>
<scope>compile</scope>
</dependency>
</dependencies>
</dependencyManagement>
everything works fine.
I understand that the eureka project uses Gradle as dependency management tool but is the previous scenario something expected?
Thanks,
Fabrizio