![Sad :(](./images/smilies/icon_sad.gif)
In Maven, could you remove the gnujaxp dependency of JCommon
In Maven, could you remove the gnujaxp dependency of JCommon
In Maven, could you remove the gnujaxp dependency of JFreeChart (JCommon)? I cannot build jfreechart in Eclipse by simply using Maven plugin ![Sad :(](./images/smilies/icon_sad.gif)
![Sad :(](./images/smilies/icon_sad.gif)
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
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
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
![Idea :idea:](./images/smilies/icon_idea.gif)
![Idea :idea:](./images/smilies/icon_idea.gif)
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.*"
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.
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>
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
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...
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
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
![Idea :idea:](./images/smilies/icon_idea.gif)
![Idea :idea:](./images/smilies/icon_idea.gif)
maven project build problem
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
<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
I found this repo useful:
regards,
--code46
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>
--code46
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.
We provide maven-poms so that those who use maven inside their organization or development process can do so more easily.