Binary or source?
Most users will want to download a binary release of XMLBeans. If you're interested in contributing or like to live on the bleeding edge, you may want to compile the source for yourself.
XMLBeans requires JDK 1.6. Last version to work with JDK 1.4 is 2.6.0 which has not been updated in a while.
Once you've downloaded the distribution or checked out the source, you should:
29 June 2018 - XMLBeans 3.0.0 available
The Apache POI team is pleased to announce the release of XMLBeans 3.0.0. Featured are a handful of new areas of functionality and numerous bug fixes.
A summary of changes is available in the Release Notes. A full list of changes is available in the change log or the corresponding Jira ticket. People interested should also follow the dev list to track progress.
The XMLBeans source release as well as the pre-built binary deployment packages are listed below. Pre-built versions are available in the central Maven repository under Group ID "org.apache.xmlbeans" and Version "3.0.0".
SHA1 checksum: b47e43fc46405eb2da8a0506f391dfb69572cad6
SHA256 checksum: 5f690eec0609fc9387a25c0dc55bec441d2b34d7015c47da95da9207f8f4d0ec
SHA512 checksum: 6427948a853138833f0b53acda7448e41d41ab170f552cfb1be9e14e1dd902ca5c3fca5455e7534c5cf120a44fc588dc20557aeb38fa4f89ce82c6e145f8fa7e
SHA1 checksum: 28216bf2a2db58a2a5bc61bb726afce0d2cd2514
SHA256 checksum: 0421841d35a319617b6aea236712394a9768eecd335680de7938da3b5e10b26e
SHA512 checksum: ca13111eecf1b069422b0180b18f0d73cc458c4e7090fb4c713f12e8a889d347efc43d0d988925b6fab44cdb0b8256168b453ddf88b81ac9eb88a5faad1e47ab
SHA1 checksum: 6fa7e2363661c228bea35f2902e3636a6fd43998
SHA256 checksum: cfdc476be43372ca2e9539465963fd85aeacf9dd53d0336c39c6de00029c1622
SHA512 checksum: 4eed2c22caab54599162b8f529e2921d809418843fb4b75be06da8c3e1ed0b79803bd49722be812621446fb3c76efed51f715fe64a8d55ecdc21a3c750701753
SHA1 checksum: 3dfde4e6dcbce6711eca6c9197720bf65a2e269d
SHA256 checksum: 8a65249bd939c1b7a27f59ba5983d7f85dd6afe07c8b4ab5ba299c90be0991e3
SHA512 checksum: 3ff0eca60f73494834e2d5c6ae905c982c58a19351c44d172552760bab50eda01da9c2e8d18506210aaaa7feee53c9f022ed966c242a57fc50c217b99c2a8971
It is essential that you verify the integrity of the downloaded files using the PGP and MD5 signatures. Please read Verifying Apache HTTP Server Releases for more information on why you should verify our releases. This page provides detailed instructions which you can use for POI artifacts.
The PGP signatures can be verified using PGP or GPG. First download the KEYS file as well as the .asc signature files for the relevant release packages. Make sure you get these files from the main distribution directory, rather than from a mirror. Then verify the signatures.
As an example:
% pgpk -a KEYS % pgpv xmlbeans-X.Y.Z.jar.asc
% pgp -ka KEYS % pgp xmlbeans-X.Y.Z.jar.asc
% gpg --import KEYS % gpg --verify xmlbeans-X.Y.Z.jar.asc xmlbeans-X.Y.Z.jar
Sample verification of xmlbeans-bin-3.0.0-20180629.tgz
% gpg --import KEYS gpg: key 38DAC8E212DAE9BE: "Glen Stampoultzis <glens at apache.org>" not changed gpg: key F5C260164CEED75F: 32 duplicate signatures removed gpg: key F5C260164CEED75F: 108 signatures not checked due to missing keys gpg: key F5C260164CEED75F: 1 signature reordered gpg: key F5C260164CEED75F: "Nick Burch <nick at gagravarr.org>" not changed gpg: key 8AAF88D6D84E41AE: 1 duplicate signature removed ... % gpg --verify xmlbeans-bin-3.0.0-20180629.tgz.asc gpg: assuming signed data in 'xmlbeans-bin-3.0.0-20180629.tgz' gpg: Signature made Di 03 Jul 2018 00:52:28 CEST gpg: using RSA key 24188560524400B142BE3386A93E1C4B26062CE3 gpg: Good signature from "Andreas Beeker <kiwiwings at apache.org>" [ultimate] gpg: aka "Andreas Beeker (kiwiwings) <andreas.beeker at gmx.de>" [ultimate] % gpg --fingerprint 24188560524400B142BE3386A93E1C4B26062CE3 pub rsa2048 2014-08-17 [SC] [expires: 2020-07-06] 2418 8560 5244 00B1 42BE 3386 A93E 1C4B 2606 2CE3 uid [ultimate] Andreas Beeker <kiwiwings at apache.org> uid [ultimate] Andreas Beeker (kiwiwings) <andreas.beeker at gmx.de> sub rsa2048 2014-08-17 [E] [expires: 2020-07-06]
Using XPath/XQuery requires an additional download of saxonb9-0-0-4j.zip and placing on the classpath of the files saxon9.jar and saxon9-dom.jar that it contains. The zip is available here. We cannot distribute this zip in a binary distribution due to licensing issues.
There are a few ways to get the XMLBeans source code. You can download the source for a particular release, browse the source using ViewSVN/CVS, or check the source out from SVN.
Source via ViewSVN/CVS
You can browse the XMLBeans source via ViewSVN/CVS
Source via SVN checkout
In SVN, you will find the actively developed version of XMLBeans under "trunk". Under "tags" there are a number of tags corresponding to the released versions of XMLBeans, as an alternative to downloading the source distribution (there are additional things like tests, which are not included in the distribution as well).
If you have SVN installed on your machine you can issue the following commands to get XMLBeans source:
# get the version of XMLBeans under development svn co https://svn.apache.org/repos/asf/xmlbeans/trunk/ xmlbeans # or, just get the samples for XMLBeans svn co https://svn.apache.org/repos/asf/xmlbeans/trunk/samples/ xmlbeans-samples
Source via Git
Please see the Git at Apache page for details. As of this writing the Git acess is read-only.
Git Clone URL: git://git.apache.org/xmlbeans.git
Http Clone URL: http://git.apache.org/xmlbeans.git
XMLBeans requires that you have Ant installed (1.6.5 works fine).
After the steps above you should see an "xmlbeans" directory (or you can choose a different name in the previous step, of course):
cd xmlbeans\ xbeanenv ant
This will create a build directory containing the executables. The xbean.jar is in the xmlbeans\ar directory. Try ant -projecthelp to see other build options.
Building on Unix or Cygwin is essentially the same as for Windows:
cd xmlbeans/ ./xbeanenv.sh ant