I would like to help make sure xmlbeans is represented properly in
the maven 2 repository system, partly to ease the Geronimo migration
to a maven 2 based build. Unlike a maven 1 repository, the maven 2
repo has considerable metadata about a project, including at least a
specification of the dependencies between jars. Due to some
historical accidents the metadata for xmlbeans 2.0.0 and 2.1.0 is
currently wrong. I'd like to help fix it and make sure the metadata
for xmlbeans 2.2 is correct from the start. This metadata is
contained in a pom.xml file for each released jar.
I think it would make sense to keep this metadata in the xmlbeans svn
repo inside a "maven2" folder which in turn has trunk, branches and
tags inside it: since xmlbeans isn't using a maven 2 based build the
metadata is not likely to be completely available right when a
release is available.
Before I propose particular metadata files I'd like to straighten out
some details of the dependencies between jars.
1. The main xmlbeans jar needs the stax api in a jar. IIUC this can
be provided by a jsr-173 jar distributed alongside xmlbeans. This
jar is not in any public maven 2 repository, but there is a stax-api
jar from the codehaus stax project that is available, and geronimo
has been using it for some time with no problems. The stax-api jar
seems to have at least one bug fix compared to the original api
sources. You may be able to review the changes from http://
svn.stax.codehaus.org/browse/stax/trunk/dev/src/javax/xml/stream
AFAICT all changes shown there are in the released stax-api 1.0.1
release.
For the xmlbeans pom.xml, either the xmlbeans jsr-173 jar will need
to be uploaded to the maven2 repository, together with a pom.xml for
it, or we can use the stax-api copy. Since there appear to be bug
fixes and we have been using it, I have a slight preference for the
stax-api copy, but I can try to arrange upload of the xmlbeans api
jar if it is generally preferred. Also, source for the stax-api jar
is readily available whereas I haven't found the source for the
xmlbeans jsr-173 jar.
So, which stax api jar should I use?
2. I have never used xmlpublic.jar and can't quite figure out what it
is intended for. IIUC it contains a subset of the contents of
xbean.jar. When would this be used?
3. It looks like xbean_xpath.jar can be used together with xbean.jar
in the same classloader to get xpath support. While not directly
relevant to maven, I'd like to know if this will work if xbean_xpath
is in a child classloader of the xbean jar classloader. In any case
I believe the pom.xml for xbean_xpath.jar can simply list xbean.jar
as a dependency.
4. Apparently xquery support requires saxon. Does it also require
xbean_xpath.jar? If not, does saxon provide complete xpath support
without xbean_xpath?
I'm thinking that it would be adequate to supply poms for the following:
-xbean.jar by itself, not supporting xpath or xquery
-xbean_xpath.jar + xbean.jar
-xbean.jar + saxon (this does not imply redistributing saxon, just
indicating that saxon is required to get xquery functionality)
-xbean_xpath.jar + xbean.jar + saxon.jar (unless saxon also provides
xpath functionality, see (4))
-xml_public.jar (assuming I can understand what it is for :-)
and possibly
-jsr172-1.0.jar
If the xmlbeans team can clarify these dependency issues I will work
on constructing the appropriate poms and directory structure and
submit a patch. The pom also can contain a lot of other information
such as project location, team members, svn details, etc etc which I
will try to at least rough out subject to correction.
many thanks,
david jencks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]