Page 1 of 1

In Maven, could you remove the gnujaxp dependency of JCommon

PostPosted: Tue Dec 16, 2008 4:17 pm
by tsunpo
In Maven, could you remove the gnujaxp dependency of JFreeChart (JCommon)? I cannot build jfreechart in Eclipse by simply using Maven plugin :(

PostPosted: Fri Dec 19, 2008 10:44 am
by david.gilbert
gnujaxp.jar is only required if you need XML support on JDK 1.3.1 (from 1.4 onwards, the required support is built-in). Is there a way to specify a conditional dependency in Maven? Note: I don't use Maven, so I don't know how it works.

PostPosted: Fri Dec 19, 2008 2:50 pm
by Taqua
I've replaced the dependency on GNu-Jaxp with a dependency on "xml-apis", as we dont require any GnuJaxp classes. All we need are the classes in "javax.xml.*"

Code: Select all

However, you wont see that change unless some poor soul actually publishes a new artifact. And given the insane publish process, I would rather die a horrible death than to volunteer for that.

PostPosted: Fri Dec 19, 2008 5:15 pm
by david.gilbert
Thanks Thomas. I guess I can make the same change for JFreeChart.

By the way, I plan to make a new release of JCommon early next week along with the new version of JFreeChart. I had hoped to do that today, but time is against me as ever...

maven project build problem

PostPosted: Wed Feb 04, 2009 4:21 pm
by code46
I referenced in my pom.xml jfreechart as dependency:


The build failed. Seems it still requires gnujaxp:gnujaxp:jar:1.0.0, and unfortunately it is not in the maven repo. When the dependency will be removed from apache repo, or is there any maven 2 repo that I can reference in my pom.xml that contains gnujaxp?


gnujaxp repo

PostPosted: Wed Feb 04, 2009 4:35 pm
by code46
I found this repo useful:

Code: Select all
       <name>Atlassian Repository for Maven</name>


PostPosted: Wed Feb 04, 2009 10:16 pm
by Taqua
and please note that we at do *not* publish maven artifacts to any public repository. (Reason for that is the insane upload process. I'm not going to waste a single quant of my sanity in that process. I'd rather translate the various IRS forms to mandarin than to enter that road.)

We provide maven-poms so that those who use maven inside their organization or development process can do so more easily.