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
    <dependency>
      <groupId>xml-apis</groupId>
      <artifactId>xml-apis</artifactId>
      <version>1.3.02</version>
      <jar>xml-apis-1.3.02.jar</jar>
      <url>http://xml.apache.org/commons/#external</url>
    </dependency>


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:

<dependency>
<groupId>jfree</groupId>
<artifactId>jfreechart</artifactId>
<version>1.0.11</version>
<scope>compile</scope>
</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?

Thanks,
--code46

gnujaxp repo

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

Code: Select all
       <repository>
       <releases>
          <enabled>true</enabled>
       </releases>
       <snapshots>
          <enabled>false</enabled>
          <updatePolicy>never</updatePolicy>
       </snapshots>
       <id>m2proxy.atlassian.com</id>
       <name>Atlassian Repository for Maven</name>
       <url>
          https:// m2proxy.atlassian.com/repository/public/
       </url>
       <layout>default</layout>
       </repository>


regards,
--code46

PostPosted: Wed Feb 04, 2009 10:16 pm
by Taqua
and please note that we at jfree.org 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.