In Maven, could you remove the gnujaxp dependency of JCommon

A discussion forum for the JCommon class library.

In Maven, could you remove the gnujaxp dependency of JCommon

Postby tsunpo » Tue Dec 16, 2008 4:17 pm

In Maven, could you remove the gnujaxp dependency of JFreeChart (JCommon)? I cannot build jfreechart in Eclipse by simply using Maven plugin :(
tsunpo
 
Posts: 4
Joined: Thu Feb 01, 2007 9:56 am

Postby david.gilbert » Fri Dec 19, 2008 10:44 am

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.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
david.gilbert
JFreeChart Project Leader
 
Posts: 11626
Joined: Fri Mar 14, 2003 10:29 am

Postby Taqua » Fri Dec 19, 2008 2:50 pm

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.
Taqua
JFreeReport Project Leader
 
Posts: 698
Joined: Fri Mar 14, 2003 3:34 pm

Postby david.gilbert » Fri Dec 19, 2008 5:15 pm

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...
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
david.gilbert
JFreeChart Project Leader
 
Posts: 11626
Joined: Fri Mar 14, 2003 10:29 am

maven project build problem

Postby code46 » Wed Feb 04, 2009 4:21 pm

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
code46
 
Posts: 2
Joined: Wed Feb 04, 2009 4:16 pm

gnujaxp repo

Postby code46 » Wed Feb 04, 2009 4:35 pm

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
code46
 
Posts: 2
Joined: Wed Feb 04, 2009 4:16 pm

Postby Taqua » Wed Feb 04, 2009 10:16 pm

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.
Taqua
JFreeReport Project Leader
 
Posts: 698
Joined: Fri Mar 14, 2003 3:34 pm


Return to JCommon

Who is online

Users browsing this forum: No registered users and 1 guest