This is an automated email from the ASF dual-hosted git repository. rec pushed a commit to branch refactoring/55-Remove-the-DocBook-toolchain in repository https://gitbox.apache.org/repos/asf/uima-parent-pom.git
commit ec41dfe53a5c6256b61353fb13003d4333d1ac6d Author: Richard Eckart de Castilho <[email protected]> AuthorDate: Thu Aug 10 18:47:15 2023 +0200 Issue #55: Remove the DocBook toolchain - Removing docbook profile and properties --- pom.xml | 237 ---------------------------------------------------------------- 1 file changed, 237 deletions(-) diff --git a/pom.xml b/pom.xml index 8bd170c..99b6577 100644 --- a/pom.xml +++ b/pom.xml @@ -101,18 +101,6 @@ <maven.build.timestamp.format>yyMMdd_HHmm</maven.build.timestamp.format> <buildDateTime>${maven.build.timestamp}</buildDateTime> - <!-- these properties are for docbook processing. --> - <!-- olink databases --> - <dolArtifactId>uima-docbook-olink</dolArtifactId> - <dolClassifier>olink</dolClassifier> - <dolRepo>${settings.localRepository}/org/apache/uima/${dolArtifactId}/1-SNAPSHOT</dolRepo> - <dolZip>${dolArtifactId}-1-SNAPSHOT-${dolClassifier}.zip</dolZip> - <dolUnzipped>${dolRepo}/docbook-olink</dolUnzipped> - <dolBuiltFile>${project.build.directory}/</dolBuiltFile> - <dolBuiltArtifactFile>${project.build.directory}/${dolZip}</dolBuiltArtifactFile> - - <pdfPaperType>USletter</pdfPaperType> - <!-- poms wanting this need to set the postNoticeText to this value --> <ibmNoticeText> Portions of Apache UIMA were originally developed by @@ -1052,229 +1040,6 @@ </build> </profile> - <!-- ********************************** --> - <!-- * Docbook Processing * --> - <!-- ********************************** --> - <!-- Skip docbook processing unless the leaf child project has a docbook directory --> - <profile> - <id>process-docbook</id> - <activation> - <file> - <exists>src/docbook</exists> - </file> - </activation> - - <build> - <plugins> - <!-- - Use the dependency:unpack goal to get the shared resource that has the docbook-shared - directory. - - Unpack into spot relative to project - because these are referred to in docbook sources - using relative references - - Also unpack next to docbook-olink in repository location for olink info, because the - site.xml files use relative location to get at the uima entities - --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <execution> - <!-- - Use the dependency:unpack goal to get the shared resource that has the - docbook-shared directory - - Unpack into spot relative to project - because these are referred to in docbook - sources using relative references - --> - <id>copyDocbookInfo</id> - <phase>prepare-package</phase> - <goals> - <goal>unpack</goal> - </goals> - <configuration> - <overWriteIfNewer>true</overWriteIfNewer> - <artifactItems> - <artifactItem> - <groupId>org.apache.uima</groupId> - <artifactId>uima-build-resources</artifactId> - <version>${uimaBuildResourcesVersion}</version> - <includes>docbook-shared/**</includes> - <outputDirectory>${project.build.directory}</outputDirectory> - </artifactItem> - </artifactItems> - </configuration> - </execution> - - <execution> - <!-- - Also unpack next to docbook-olink in repository location for olink info, because - the site.xml files use relative location to get at the UIMA entities - --> - <id>copyDocbookInfoNextToOlink</id> - <phase>prepare-package</phase> - <goals> - <goal>unpack</goal> - </goals> - <configuration> - <overWriteIfNewer>true</overWriteIfNewer> - <markersDirectory>${dolRepo}/dependency-maven-plugin-markers</markersDirectory> - <artifactItems> - <artifactItem> - <groupId>org.apache.uima</groupId> - <artifactId>uima-build-resources</artifactId> - <version>${uimaBuildResourcesVersion}</version> - <includes>docbook-shared/**</includes> - <outputDirectory>${dolRepo}</outputDirectory> - </artifactItem> - </artifactItems> - </configuration> - </execution> - - <!-- use the dependency:unpack goal to get the olink databases --> - <execution> - <id>getOlink</id> - <phase>prepare-package</phase> - <goals> - <goal>unpack</goal> - </goals> - <configuration> - <overWriteIfNewer>true</overWriteIfNewer> - <markersDirectory>${dolRepo}/dependency-maven-plugin-markers</markersDirectory> - <artifactItems> - <artifactItem> - <groupId>org.apache.uima</groupId> - <artifactId>${dolArtifactId}</artifactId> - <version>1-SNAPSHOT</version> - <type>zip</type> - <classifier>${dolClassifier}</classifier> - <outputDirectory>${dolUnzipped}</outputDirectory> - </artifactItem> - </artifactItems> - </configuration> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>com.agilejava.docbkx</groupId> - <artifactId>docbkx-maven-plugin</artifactId> - <configuration> <!-- general configuration for both HTML and PDF --> - <sourceDirectory>${basedir}/src/docbook</sourceDirectory> - <includes>${bookNameRoot}.xml</includes> - <highlightSource>1</highlightSource> - <xincludeSupported>true</xincludeSupported> - <!-- olink common to PDF and HTML --> - <collectXrefTargets>yes</collectXrefTargets> - </configuration> - <executions> - <execution> - <id>html</id> - <goals> - <goal>generate-html</goal> - </goals> - <phase>package</phase> - <configuration> - <targetDirectory>${project.build.directory}/site/d</targetDirectory> - <htmlCustomization>${project.build.directory}/docbook-shared/top/html-single.xsl</htmlCustomization> - <!-- olink --> - <targetDatabaseDocument>file:///${dolUnzipped}/htmlsingle/site.xml</targetDatabaseDocument> - <targetsFilename>${dolUnzipped}/htmlsingle/${bookNameRoot}.db</targetsFilename> - </configuration> - </execution> - <execution> - <id>pdf</id> - <goals> - <goal>generate-pdf</goal> - </goals> - <phase>package</phase> - <configuration> - <!-- - PDF: generate first in docbkx, then move. Because PDF generates an extra temp - file xxx.fo which we want to keep a bit in target in case of debug need - --> - <foCustomization>${project.build.directory}/docbook-shared/top/pdf.xsl</foCustomization> - <!-- olink --> - <targetDatabaseDocument>file:///${dolUnzipped}/pdf/site.xml</targetDatabaseDocument> - <targetsFilename>${dolUnzipped}/pdf/${bookNameRoot}.db</targetsFilename> - <fop1Extensions>true</fop1Extensions> - <fontSelectionStrategy>character-by-character</fontSelectionStrategy> - <paperType>${pdfPaperType}</paperType> - </configuration> - </execution> - </executions> - - <dependencies> - <dependency> - <groupId>org.docbook</groupId> - <artifactId>docbook-xml</artifactId> - <version>4.4</version> - <scope>runtime</scope> - </dependency> - </dependencies> - </plugin> - - <plugin> - <artifactId>maven-resources-plugin</artifactId> - <executions> - <!-- copy the images to the html/images dir --> - <execution> - <id>docbook-copy-images</id> - <goals> - <goal>copy-resources</goal> - </goals> - <phase>package</phase> - <configuration> - <outputDirectory>${project.build.directory}/site/d/images</outputDirectory> - <resources> - <resource> - <directory>src/docbook/images</directory> - </resource> - </resources> - </configuration> - </execution> - <!-- copy the CSS stylesheet to the HTML dir --> - <execution> - <id>docbook-copy-css</id> - <goals> - <goal>copy-resources</goal> - </goals> - <phase>package</phase> - <configuration> - <outputDirectory>${project.build.directory}/site/d/css</outputDirectory> - <resources> - <resource> - <directory>${project.build.directory}/docbook-shared/css</directory> - </resource> - </resources> - </configuration> - </execution> - <!-- move the pdf from the docbkx to the site/d/ --> - <execution> - <id>docbook-move-pdf</id> - <goals> - <goal>copy-resources</goal> - </goals> <!-- no "move" goal, use copy --> - <phase>package</phase> - <configuration> - <outputDirectory>${project.build.directory}/site/d</outputDirectory> - <resources> - <resource> - <directory>${project.build.directory}/docbkx/pdf</directory> - <excludes> - <exclude>**.fo</exclude> - </excludes> - </resource> - </resources> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - <!-- ************************************ --> <!-- * Build Custom Binary Distribution * --> <!-- ************************************ --> @@ -1839,8 +1604,6 @@ </execution> </executions> <configuration> - <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding> - <targetJdk>${maven.compiler.target}</targetJdk> <linkXRef>false</linkXRef> </configuration> </plugin>
