The maven pom.xml file published for jfreechart on the central maven repositrory doesn't look correct. The junit dependency should be marked with the test scope or be made optional.
This was wrong in 1.0.0-RC1 but was fixed in 1.0.1 (http://repo2.maven.org/maven2/jfree/jfreechart/1.0.1/jfreechart-1.0.1.pom) and it's now wrong again in 1.0.11: http://repo2.maven.org/maven2/jfree/jfreechart/1.0.11/jfreechart-1.0.11.pom
You also need to make gnujaxp optional I believe.
maven dependency mechanism: http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
I can help you but I'd need to know if the junit and gnujaxp deps are for tests only or if they're supposed to be there at runtime. If they're needed at runtime then are they required for the main features of jfreechart or not. If not they should be marked optional, ie it's the user who will add the dependency if he needs a special feature.
The problem is that majority of us have to manually exclude junit since otherwise it'll find its way transitively in our distributions for our projects using jfreechart.
Thanks for a great tool!
Log in to post a comment.