Commit bc0eef9a by Dave Syer

Exclude jackson XML from eureka client by default

Any client that wants to can include it back again, but generally it only causes problems (XML returned from apps instead of JSON by Spring MVC for instance). In general it only causes problems for services whose clients use "Accept: application/xml,*/*", for instance (like a browser). See gh-306
parent 093354e2
...@@ -283,6 +283,10 @@ ...@@ -283,6 +283,10 @@
<groupId>com.google.code.findbugs</groupId> <groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId> <artifactId>jsr305</artifactId>
</exclusion> </exclusion>
<exclusion>
<artifactId>jackson-dataformat-xml</artifactId>
<groupId>com.fasterxml.jackson.dataformat</groupId>
</exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<!-- Eureka core dep that is now optional --> <!-- Eureka core dep that is now optional -->
......
...@@ -84,6 +84,10 @@ ...@@ -84,6 +84,10 @@
</dependency> </dependency>
<!-- Eureka deps that are now optional in eureka --> <!-- Eureka deps that are now optional in eureka -->
<dependency> <dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
</dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId> <groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId> <artifactId>xstream</artifactId>
</dependency> </dependency>
......
...@@ -40,9 +40,5 @@ ...@@ -40,9 +40,5 @@
<groupId>com.netflix.ribbon</groupId> <groupId>com.netflix.ribbon</groupId>
<artifactId>ribbon-eureka</artifactId> <artifactId>ribbon-eureka</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment