From 414f7dcc7bc6af8dd634f2c0b9ab039ba436b2d1 Mon Sep 17 00:00:00 2001 From: Yukai Kong Date: Wed, 13 Aug 2014 11:02:14 +0800 Subject: [PATCH] Update README.md according to #81, add tips for package dependency issue. --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ba947e9d3..00781e4fa 100644 --- a/README.md +++ b/README.md @@ -149,5 +149,19 @@ Example file below. Note that you can name every mapping the way you want - it's # A Sample Check out this [sample project](https://github.com/kongchen/swagger-maven-example) to see how this happens. -[![githalytics.com alpha](https://cruel-carlota.pagodabox.com/8e57158a366298512499affc8b585976 "githalytics.com")](http://githalytics.com/kongchen/swagger-maven-plugin) - +# Dependency conflict +If you have package depedency conflict issues, such as jackson, joda-time, or [jsr311-api](https://github.com/kongchen/swagger-maven-plugin/issues/81). Run `mvn dependency:tree` to check which package introduces the one conflicts with yours and exclude it using `` in pom.xml. +> e.g. exclude `javax.ws.rs:jsr311-api:jar:1.1.1:compile` from `swagger-jaxrs_2.10`: +```xml + + com.wordnik + swagger-jaxrs_2.10 + 1.3.2 + + + javax.ws.rs + jsr311-api + + + +```