我找不到 poi-ooxml-schemas 的源代码库 [英] I can not find for the source code repository for poi-ooxml-schemas

查看:146
本文介绍了我找不到 poi-ooxml-schemas 的源代码库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,这有点奇怪.我已经从 apache-poi 3.9 版源代码http://archive.apache.org/dist/poi/release/src/但是我找不到 poi-xml-schemas 的源代码.我一直在谷歌搜索,但无济于事.这些项目的代码库在哪里?它是独立于 poi 源代码的项目还是来自其他用作库的项目,但代码存储库在哪里?

Alright, this is a little bit wierd. I've checkout apache-poi version 3.9 source code from http://archive.apache.org/dist/poi/release/src/ But I can not find the source code for poi-xml-schemas. I have been googling but to no avail. Where is the code repository for these project? Is it a separate project from the poi source code or it is from some other project used as a library, but where is the code repository?

推荐答案

这在 Apache POI 常见问题解答 (#14),我引用:

14.我似乎找不到 OOXML CT.. 类的来源,它们来自哪里?

Apache POI 中的 OOXML 支持建立在文件格式 XML Schemas 之上,使用 XMLBeans.目前,编译是使用 XMLBeans 2.3 完成的,以实现与安装的最大兼容性.(您可以在 XMLBeans 2.3 运行时或任何更高版本的 XMLBeans 上使用生成的类.如果您当前使用的是 XMLBeans 2.2 或更早版本,很遗憾您将不得不升级,但这不再常见).

The OOXML support in Apache POI is built on top of the file format XML Schemas, as compiled into Java using XMLBeans. Currently, the compilation is done with XMLBeans 2.3, for maximum compatibility with installations. (You can use the resulting classes on the XMLBeans 2.3 runtime, or any later version of XMLBeans. If you are currently using XMLBeans 2.2 or earlier, you will unfortunately have to upgrade, but this isn't common any more).

所有 org.openxmlformats.schemas.spreadsheetml.x2006 CT... 类都是由 XMLBeans 自动生成的.生成的 Java 进入 ooxml-schemas-src jar,编译后的版本进入 ooxml-schemas jar.

All of the org.openxmlformats.schemas.spreadsheetml.x2006 CT... classes are auto-generated by XMLBeans. The resulting generated Java goes in the ooxml-schemas-src jar, and the compiled version into the ooxml-schemas jar.

完整的 ooxml-schemas jar 与 Apache POI 一起分发,以及仅包含公共部分的精简 poi-ooxml-schemas jar.源 jar 通常不随 POI 一起分发.但是,它可以从 Maven Central 获得 - 向您最喜欢的 Maven 镜像询问 ooxml-schemas-src jar.或者,如果您下载 POI 源代码分发(或从 SVN 签出)并构建,Ant 将自动下载规范 XML Schema,并为您编译以生成源代码和二进制 ooxml-schemas jar.

The full ooxml-schemas jar is distributed with Apache POI, along with the cut-down poi-ooxml-schemas jar containing just the common parts. The source jar isn't normally distributed with POI. It is, however, available from Maven Central - ask your favourite Maven mirror for the ooxml-schemas-src jar. Alternately, if you download the POI source distribution (or checkout from SVN) and build, Ant will automatically download the specification XML Schema, and compile it for you to generate the source and binary ooxml-schemas jars.

这篇关于我找不到 poi-ooxml-schemas 的源代码库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆