netbeans - 在哪里可以找到 "poi-ooxml-schemas-3.15.jar"Javadoc 和源 jar?

标签 netbeans apache-poi javadoc

我正在 Netbeans 中使用 Apache POI(版本:3.15)Word。它的函数不显示任何Javadoc。通过单击 Netbeans 中的“附加 Javadoc”,显示

"No Javadoc for "poi-ooxml-schemas-3.15.jar" available

已搜索,但未找到 Javadoc jar 或源 jar。有人可以告诉我在哪里可以找到它们吗?

最佳答案

来自Apache POI FAQ :

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 的源代码并使用构建工具重新创建自动生成的源文件。如果您想要这些文档,您需要去阅读已发布的 Microsoft 文件格式文档,因为 ooxml-schemas jar 是根据已发布的规范自动生成的!

关于netbeans - 在哪里可以找到 "poi-ooxml-schemas-3.15.jar"Javadoc 和源 jar?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43274248/

相关文章:

Javadoc 警告 : no @param for type when using Lombok @Builder

autocomplete - 在 Intellij 中显示带有自动完成参数信息的 Javadoc

java - 如何将缺少的 Android javadoc 添加到 Eclipse?

git - netbeans cordova-构建我的项目时出错

java - 制作一个 JFrame 按钮创建一个警告对话框。 Java-Netbeans

java - 解码 Excel 生成的剪贴板的 XML 电子表格内容

java - 它如何设置 "Fit all columns on one page"设置的文件

java - 应用程序在 netbeans 中工作,但分发 jar 不工作

java - 如何在 Netbeans 的 list 类路径中包含 lib 文件夹

java - XWPF 表格单元格中的新段落