Hi Marc,
I can give you maybe some more infos on htmlunit dependencies. The jsr173
thing was a nasty (transitive) "legacy" dependency (maybe an htmtunit-1.8(.=
0).1
could be nice to depend on, removing also saxpath?), but there are others I
fairly think that can be upgraded (some are just libraries updates):
* commons-lang: commons-lang from 2.0 to 2.1
* xerces: xercesImpl from 2.6.2 to 2.7.1 This is a little trickier because=
,
fro what I saw in practise, xerces 2.7.0 implements the new DOM3 APIs of
JDK5.0, and if you have your own code that extends DOM APis and want to
compile it under JDK5.0 (which added some methods to the DOM APIs indeed),
you do require xerces 2.7.0, otherwise you get problems with methods not
being implemented.
This last point is just something that can be put into account in case
htmlunit aims to implements DOM APIs some day, but it is could be a problem
for people who depend on htmlunit while using Maven2 and JDK5.0 on a projec=
t
which extends DOM things (i.e. MyCustomeDOMNode), and so, because of
htmlunit, get a dependency on xerces-2.6.x which is not in pair with the DO=
M
APIs. (of course the solution is to explicitly declare to depend on the
newer version)
Mmm sorry if my explanation wasn't that clear, but the JDK5.0 XML thing
added some complexities in that kind of circumstance from my experience..
regards,
Alessio Pace.
On 3/10/06, Ryan Lubke <Ryan.Lubke@...> wrote:
>
> Thanks Marc and Alessio.
>
> When do you expect this to be pushed to ibilio?
>
> Thanks,
>
> -rl
>
> Marc Guillemot wrote:
> > I've upgraded dependency to dom4j 1.6.1 in CVS.
> >
> > Thanks for the info Alessio.
> >
> > Marc.
> >
> > Alessio Pace wrote:
> >
> >> Yes, I know what you mean.
> >>
> >> The problem is the dependency on dom4j-1.5, which in turns declares to
> >> depend on the artifact:
> >> javax.xml:jsr173:jar:1.0
> >>
> >> as you can read from here:
> >> http://www.ibiblio.org/maven2/dom4j/dom4j/1.5/dom4j-1.5.pom
> >>
> >>
> >> The problem can be solved in two ways:
> >> 1) The htmlunit team changes its pom stating that htmlunit depends on
> >> dom4j-1.6.1 which does *not* depend on the jsr173 thing and is indeed
> >> tha latest stable version of dom4j (at least on ibiblio)
> >>
> >> 2) You "override" yourself the dom4j dependency in your project pom
> >> declaring to depend explicitly on dom4j-1.6.1, in this way:
> >>
> >> <dependency>
> >> <groupId>dom4j</groupId>
> >> <artifactId>dom4j</artifactId>
> >> <version>1.6.1</version>
> >> </dependency>
> >>
> >> Which is what I did in a project, which is maven2 and uses htmlunit.
> >>
> >> Was it of any help?
> >>
> >> Alessio Pace.
> >>
> >>
> >> On 3/7/06, *Ryan Lubke* <Ryan.Lubke@... <mailto:Ryan.Lubke@...
> >>
> >> wrote:
> >>
> >> Hello Folks,
> >>
> >> I'm trying to use Antlib for Maven 2.0 [1] to obtain HtmlUnit 1.8
> >> for a project I'm working on. However, during the dependency
> >> resolution process I receive the following:
> >>
> >> [artifact:dependencies] Unable to resolve artifact: required
> >> artifacts missing:
> >> [artifact:dependencies] javax.xml:jsr173:jar:1.0
> >>
> >> If I browse the pom for this dependency, I see a URL to JWSDP. Is
> >> this right? It seems overkill to download JWSDP just to use
> HtmlUnit
> >> (I certainly don't need to when I use the standalone distribute of
> >> HtmlUnit).
> >>
> >> Ideas?
> >>
> >> Thanks,
> >> -rl
> >>
> >> [1] http://maven.apache.org/ant-tasks.html
> >>
> >>
> >> -------------------------------------------------------
> >> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> >> language
> >> that extends applications into web and mobile media. Attend the
> live
> >> webcast
> >> and join the prime developer group breaking into this new coding
> >> territory!
> >>
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=
=3D121642
> >> <
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=
=3D121642>
> >> _______________________________________________
> >> Htmlunit-user mailing list
> >> Htmlunit-user@...
> >> <mailto:Htmlunit-user@...>
> >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user
> >>
> >>
> >>
> >>
> >> --
> >> Alessio Pace.
> >>
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > that extends applications into web and mobile media. Attend the live
> webcast
> > and join the prime developer group breaking into this new coding
> territory!
> > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=
=3D121642
> > _______________________________________________
> > Htmlunit-user mailing list
> > Htmlunit-user@...
> > https://lists.sourceforge.net/lists/listinfo/htmlunit-user
> >
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=
=3D121642
> _______________________________________________
> Htmlunit-user mailing list
> Htmlunit-user@...
> https://lists.sourceforge.net/lists/listinfo/htmlunit-user
>
|