gpt4 book ai didi

apache - 我找不到 poi-ooxml-schemas 的源代码库

转载 作者:行者123 更新时间:2023-12-03 21:27:42 34 4
gpt4 key购买 nike

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

最佳答案

这包括在 Apache POI FAQ (#14) 中,我从中引用:

14. I can't seem to find the source for the OOXML CT.. classes, where do they come from?

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).

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.

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.

关于apache - 我找不到 poi-ooxml-schemas 的源代码库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16358701/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com