You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Oliver Heger <ol...@oliver-heger.de> on 2010/01/02 21:22:20 UTC
[configuration] Dependencies after switch to 1.4
In order to change the minimum required JDK to 1.4 I modified pom.xml. I
was hoping to get rid of all the XML-related dependencies, but obviously
this is not so easy.
When dropping the Xerces-dependency I get a bunch of test failures:
- Many of them are caused by tests for DatabaseConfiguration. Here
dbunit cannot resolve the DTD in the dataset file. This can be solved by
simply removing the reference to the DTD.
- The major problem is caused by tests that require advanced validation
features, e.g. schema validation. This is not supported by the parser
shipped with Java 1.4.
Because of the latter point I think we are forced to keep the
Xerces-dependency (with test scope). Unfortunately, this also demands
the dependency to XML-APIs - otherwise I get NoClassDefFound errors.
Or is there an alternative?
At least the dependency to Xalan can be dropped. I wonder whether this
has some impact on GUMP which has still trouble with building
[configuration].
Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [configuration] Dependencies after switch to 1.4
Posted by Oliver Heger <ol...@oliver-heger.de>.
Ralph Goers schrieb:
> I believe this could be addressed by changing the pom to only include Xerces and XML-APIs when compiling with JDK 5+ with a desired target of JDK 5+ and then having the unit tests that use validation only run when Java 5+ is enabled. However, this seems like a lot of work for little benefit since Xerces and XML-APIs already have test scope so they won't be brought in to a user's project unless they wants them.
>
> Ralph
Agreed, it is probably not worth the effort. So it is a matter of
documentation on our dependencies page. There has to be a statement that
Xerces is required on JDK 1.4 for schema validation.
Oliver
>
>
> On Jan 2, 2010, at 12:22 PM, Oliver Heger wrote:
>
>> In order to change the minimum required JDK to 1.4 I modified pom.xml. I was hoping to get rid of all the XML-related dependencies, but obviously this is not so easy.
>>
>> When dropping the Xerces-dependency I get a bunch of test failures:
>> - Many of them are caused by tests for DatabaseConfiguration. Here dbunit cannot resolve the DTD in the dataset file. This can be solved by simply removing the reference to the DTD.
>> - The major problem is caused by tests that require advanced validation features, e.g. schema validation. This is not supported by the parser shipped with Java 1.4.
>>
>> Because of the latter point I think we are forced to keep the Xerces-dependency (with test scope). Unfortunately, this also demands the dependency to XML-APIs - otherwise I get NoClassDefFound errors.
>>
>> Or is there an alternative?
>>
>> At least the dependency to Xalan can be dropped. I wonder whether this has some impact on GUMP which has still trouble with building [configuration].
>>
>> Oliver
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [configuration] Dependencies after switch to 1.4
Posted by Ralph Goers <ra...@dslextreme.com>.
I believe this could be addressed by changing the pom to only include Xerces and XML-APIs when compiling with JDK 5+ with a desired target of JDK 5+ and then having the unit tests that use validation only run when Java 5+ is enabled. However, this seems like a lot of work for little benefit since Xerces and XML-APIs already have test scope so they won't be brought in to a user's project unless they wants them.
Ralph
On Jan 2, 2010, at 12:22 PM, Oliver Heger wrote:
> In order to change the minimum required JDK to 1.4 I modified pom.xml. I was hoping to get rid of all the XML-related dependencies, but obviously this is not so easy.
>
> When dropping the Xerces-dependency I get a bunch of test failures:
> - Many of them are caused by tests for DatabaseConfiguration. Here dbunit cannot resolve the DTD in the dataset file. This can be solved by simply removing the reference to the DTD.
> - The major problem is caused by tests that require advanced validation features, e.g. schema validation. This is not supported by the parser shipped with Java 1.4.
>
> Because of the latter point I think we are forced to keep the Xerces-dependency (with test scope). Unfortunately, this also demands the dependency to XML-APIs - otherwise I get NoClassDefFound errors.
>
> Or is there an alternative?
>
> At least the dependency to Xalan can be dropped. I wonder whether this has some impact on GUMP which has still trouble with building [configuration].
>
> Oliver
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [configuration] Dependencies after switch to 1.4
Posted by Oliver Heger <ol...@oliver-heger.de>.
Henri Yandell schrieb:
> What would a dependency of 1.5 mean with regards to the Xerces dependency?
>
> You depend on Lang/Collections, and both are 1.5 dependent for their
> next version.
With 1.5 the Xerces dependency is no more needed.
There is some work going on for a Configuration 2.0 version which uses
Java 1.5. We have a branch for this project. So the idea is that 2.0
depends on Java 1.5 while the 1.x series remains on 1.4. Once 2.0 is
released, there should only be bug-fix releases for 1.x. However, I fear
there is still much work to do before 2.0 can be published.
Oliver
>
> Hen
>
> On Sat, Jan 2, 2010 at 12:22 PM, Oliver Heger
> <ol...@oliver-heger.de> wrote:
>> In order to change the minimum required JDK to 1.4 I modified pom.xml. I was
>> hoping to get rid of all the XML-related dependencies, but obviously this is
>> not so easy.
>>
>> When dropping the Xerces-dependency I get a bunch of test failures:
>> - Many of them are caused by tests for DatabaseConfiguration. Here dbunit
>> cannot resolve the DTD in the dataset file. This can be solved by simply
>> removing the reference to the DTD.
>> - The major problem is caused by tests that require advanced validation
>> features, e.g. schema validation. This is not supported by the parser
>> shipped with Java 1.4.
>>
>> Because of the latter point I think we are forced to keep the
>> Xerces-dependency (with test scope). Unfortunately, this also demands the
>> dependency to XML-APIs - otherwise I get NoClassDefFound errors.
>>
>> Or is there an alternative?
>>
>> At least the dependency to Xalan can be dropped. I wonder whether this has
>> some impact on GUMP which has still trouble with building [configuration].
>>
>> Oliver
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [configuration] Dependencies after switch to 1.4
Posted by Henri Yandell <fl...@gmail.com>.
What would a dependency of 1.5 mean with regards to the Xerces dependency?
You depend on Lang/Collections, and both are 1.5 dependent for their
next version.
Hen
On Sat, Jan 2, 2010 at 12:22 PM, Oliver Heger
<ol...@oliver-heger.de> wrote:
> In order to change the minimum required JDK to 1.4 I modified pom.xml. I was
> hoping to get rid of all the XML-related dependencies, but obviously this is
> not so easy.
>
> When dropping the Xerces-dependency I get a bunch of test failures:
> - Many of them are caused by tests for DatabaseConfiguration. Here dbunit
> cannot resolve the DTD in the dataset file. This can be solved by simply
> removing the reference to the DTD.
> - The major problem is caused by tests that require advanced validation
> features, e.g. schema validation. This is not supported by the parser
> shipped with Java 1.4.
>
> Because of the latter point I think we are forced to keep the
> Xerces-dependency (with test scope). Unfortunately, this also demands the
> dependency to XML-APIs - otherwise I get NoClassDefFound errors.
>
> Or is there an alternative?
>
> At least the dependency to Xalan can be dropped. I wonder whether this has
> some impact on GUMP which has still trouble with building [configuration].
>
> Oliver
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org