File / Directory | Description |
---|---|
index.html
|
this file |
plugin/
|
FlexDoc/XML Maven Plugin implementation and installation files: |
plugin/src/.../FlexDocXMLMojo.java
|
|
plugin/pom.xml
|
|
plugin/pom_with_DiagramKit.xml
|
|
plugin/install.bat
|
|
plugin/install_with_DiagramKit.bat
|
|
plugin/test.bat
|
|
site1/
|
A demo project that shows how to use FlexDoc/XML Maven plugin to generate an XML Schema documentation for the reports section of a Maven-generated site: |
site1/pom.xml
|
|
site1/site.bat
|
|
site1/site.sh
|
|
site1/site.command
|
|
site2/
|
Another Maven demo project that shows how to configure the plugin to generate the documentation for two different XML schemas as separate Maven-site reports. |
site3/
|
This demo also generates two reports for the Maven-site:
one is the "Sales Report" by samples/sales/sales.xml
and another one is the XML Schema documentation by
samples/sales/sales.xsd .
|
Note: These files and directories can be found in 'integrations/maven/'
subdirectory of
FlexDoc/XML installation.
{flexdoc-xml}/integrations/maven/
subdirectory,
which include:
FlexDocXMLMojo.java
)
If you do not have Maven yet, download it from the Apache Maven web-site:
http://maven.apache.org/.
The download archive will contain exactly the Maven home directory, which you may
unpack at any location (e.g. C:\apache-maven-3.8.2
).
Further, please follow these steps:
{flexdoc-xml}/integrations/maven/plugin/pom.xml
<properties>
<!-- The absolute pathname of FlexDoc/XML home directory -->
<flexdoc.xml.home>C:/flexdoc-xml-1.13</flexdoc.xml.home>
...
</properties>
{flexdoc-xml}\integrations\plugin\install.bat
to specify 'JAVA_HOME'
and
'M2_HOME'
variables according to the locations of Java and Maven installed on your system. For example:
set JAVA_HOME=C:\Program Files\Java\jdk-17
set M2_HOME=C:\apache-maven-3.8.2
Switch the current directory to {flexdoc-xml}\integrations\maven\plugin
and run install.bat
.
Equally, edit and run install.sh
.
Note that you should edit its "Permission" property to allow it to be executed by Linux.
macOS
The same edit install.command
.
Since macOS has extremely tight «security control», to be able running install.command
, you need to do the following:
install.command
with TextEdit (confirm in the warning box that it is OK to open it).
Then, simply resave that file via File | Save menu.
With that procedure, you will sign install.command
as its owner/creator, which is a precondition to be able running it!
install.command
with the executable privilege:
Run the Terminal and type in it
'chmod u+x'
followed by a space and the full pathname of the script file
(instead of typing it, just drag install.command
from the Finder into the Terminal window). Then, press Enter.
install.command
from the Finder just by clicking twice on it.
If everything is correct, the FlexDoc/XML Maven Plugin will be compiled and installed.
Note that to pass the installation successfully, you must be connected to Internet during it. You should wait until Maven downloads and installs lots of other plugins it needs.
plugin\test.bat
(on Windows)plugin/test.sh
(on Linux)plugin/test.command
(on macOS)pom.xml
install.(bat|sh|command)
pom_with_DiagramKit.xml
install_with_DiagramKit.(bat|sh|command)
pom_with_DiagramKit.xml
is different from pom.xml
in that
{flexdoc-xml}/lib/flexdoc-xml-diagramkit.jar
"maven-plugin-with-diagramkit"
(instead of just "maven-plugin"
, as in the case of pom.xml
).
A demo Maven project that uses DiagramKit (generates XML schema documentation with diagrams) can be found here:
{flexdoc-xml}/DiagramKit/maven/
{flexdoc-xml}/DiagramKit/README.html
The XML schema to be documented is the "XML Schema for W3C XML Schemas".
Its files will be loaded directly from
{flexdoc-xml}/lib/resources
directory of your FlexDoc/XML installation.
(So, you don't need Internet to run this demo.)
In fact, this very schema is used by the "XSDDoc" templates -- the ones which implement the XML Schema documentation generator itself. So, here we have a kind of "bootstrapping". The original "XML Schema for XML Schemas" files can be found by URL: http://www.w3.org/2001/XMLSchema.xsd.
Running the demo is very simple:
{flexdoc-xml}/integrations/maven/site1
directory.
site.bat
(on Windows)sile.sh
(on Linux) – make it executable by changing its "Permission" propertiessile.command
(on macOS) – make it executable as described for install.command
'target'
subdirectory.
target/site/index.html
file.
Then, go to "Project Reports" and click "XSDDoc".
You will see a demo XML Schema documentation generated by FlexDoc/XML XSDDoc.
The schemas to be documented are the following:
{flexdoc-xml}/integrations/maven/site2
directory.
site.bat
(on Windows)sile.sh
(on Linux) – make it executable by changing its "Permission" propertiessile.command
(on macOS) – make it executable as described for install.command
'target'
subdirectory.
target/site/index.html
file.
Then, go to "Project Reports" and click "XMLSchema_xsddoc" or "wsdl11_xsddoc".
You will see two different XML Schema documentations generated with FlexDoc/XML XSDDoc.
{flexdoc-xml}/samples/sales/sales.xsd
, the XML schema that describes the data source for the
second report.
{flexdoc-xml}/samples/sales/sales.tpl
template
(which uses the sales.xsd
schema) from {flexdoc-xml}/samples/sales/sales.xml
(which is the source of the report's data).
The "Sales Report" itself has nothing to do with XML schemas!
{flexdoc-xml}/integrations/maven/site3
directory.
site.bat
(on Windows)sile.sh
(on Linux) – make it executable by changing its "Permission" propertiessile.command
(on macOS) – make it executable as described for install.command
'target'
subdirectory.
target/site/index.html
file.
Then, go to "Project Reports" and click "Sales XSDDoc" or "Sales Report".