|
8 | 8 | <packaging>pom</packaging> |
9 | 9 |
|
10 | 10 | <name>EE Security API Specification</name> |
11 | | - <description>Parent module for EE Security API Specification</description> |
| 11 | + <description>Specification for Java EE Security API</description> |
12 | 12 |
|
13 | 13 | <url>https://java.net/projects/javaee-security-spec</url> |
14 | 14 | <licenses> |
|
37 | 37 | </mailingList> |
38 | 38 | </mailingLists> |
39 | 39 |
|
40 | | - <modules> |
41 | | - <module>spec</module> |
42 | | - <!-- don't build api from this repository --> |
43 | | - <!-- <module>api</module> --> |
44 | | - </modules> |
| 40 | + <properties> |
| 41 | + <asciidoctor.version>1.5.2</asciidoctor.version> |
| 42 | + </properties> |
45 | 43 |
|
46 | 44 | <build> |
47 | | - <defaultGoal>clean package javadoc:javadoc</defaultGoal> |
| 45 | + <defaultGoal>clean package</defaultGoal> |
| 46 | + <resources> |
| 47 | + <resource> |
| 48 | + <directory>src/main/doc</directory> |
| 49 | + <targetPath>${basedir}/target/filtered</targetPath> |
| 50 | + <filtering>true</filtering> |
| 51 | + </resource> |
| 52 | + </resources> |
| 53 | + <plugins> |
| 54 | + <plugin> |
| 55 | + <groupId>org.apache.maven.plugins</groupId> |
| 56 | + <artifactId>maven-resources-plugin</artifactId> |
| 57 | + <version>2.6</version> |
| 58 | + <executions> |
| 59 | + <execution> |
| 60 | + <id>filter</id> |
| 61 | + <phase>generate-resources</phase> |
| 62 | + <goals> |
| 63 | + <goal>resources</goal> |
| 64 | + </goals> |
| 65 | + </execution> |
| 66 | + </executions> |
| 67 | + <configuration> |
| 68 | + <encoding>UTF-8</encoding> |
| 69 | + </configuration> |
| 70 | + </plugin> |
| 71 | + <plugin> |
| 72 | + <groupId>org.asciidoctor</groupId> |
| 73 | + <artifactId>asciidoctor-maven-plugin</artifactId> |
| 74 | + <version>${asciidoctor.version}</version> |
| 75 | + <executions> |
| 76 | + <execution> |
| 77 | + <id>output-html</id> |
| 78 | + <phase>generate-resources</phase> |
| 79 | + <goals> |
| 80 | + <goal>process-asciidoc</goal> |
| 81 | + </goals> |
| 82 | + <configuration> |
| 83 | + <sourceHighlighter>highlightjs</sourceHighlighter> |
| 84 | + <backend>html5</backend> |
| 85 | + <outputDirectory>target/publish/html</outputDirectory> |
| 86 | + <sourceDocumentName>jsr375-spec.asciidoc</sourceDocumentName> |
| 87 | + <attributes> |
| 88 | + <toc2>left</toc2> |
| 89 | + <pygments>true</pygments> |
| 90 | + <toclevels>3</toclevels> |
| 91 | + </attributes> |
| 92 | + </configuration> |
| 93 | + </execution> |
| 94 | + <execution> |
| 95 | + <id>output-docbook</id> |
| 96 | + <phase>process-resources</phase> |
| 97 | + <goals> |
| 98 | + <goal>process-asciidoc</goal> |
| 99 | + </goals> |
| 100 | + <configuration> |
| 101 | + <backend>docbook45</backend> |
| 102 | + <doctype>book</doctype> |
| 103 | + |
| 104 | + <templateEngine>slim</templateEngine> |
| 105 | + <headerFooter>true</headerFooter> |
| 106 | + <compact>false</compact> |
| 107 | + <outputDirectory>target/docbook/en-US</outputDirectory> |
| 108 | + <attributes> |
| 109 | + <numbered>true</numbered> |
| 110 | + <docinfo>true</docinfo> |
| 111 | + <experimental>true</experimental> |
| 112 | + <toc>true</toc> |
| 113 | + </attributes> |
| 114 | + </configuration> |
| 115 | + </execution> |
| 116 | + </executions> |
| 117 | + <configuration> |
| 118 | + <sourceDirectory>target/filtered</sourceDirectory> |
| 119 | + </configuration> |
| 120 | + </plugin> |
| 121 | + |
| 122 | + <plugin> |
| 123 | + <groupId>org.jboss.maven.plugins</groupId> |
| 124 | + <artifactId>maven-jdocbook-plugin</artifactId> |
| 125 | + <version>2.3.8</version> |
| 126 | + <extensions>true</extensions> |
| 127 | + <dependencies> |
| 128 | + <dependency> |
| 129 | + <groupId>org.jboss.pressgang</groupId> |
| 130 | + <artifactId>pressgang-xslt</artifactId> |
| 131 | + <version>2.0.0</version> |
| 132 | + </dependency> |
| 133 | + <dependency> |
| 134 | + <groupId>org.jboss.pressgang</groupId> |
| 135 | + <artifactId>pressgang-jdocbook-style</artifactId> |
| 136 | + <type>jdocbook-style</type> |
| 137 | + <version>3.0.0</version> |
| 138 | + </dependency> |
| 139 | + </dependencies> |
| 140 | + <executions> |
| 141 | + <execution> |
| 142 | + <id>generate-pdf</id> |
| 143 | + <phase>process-resources</phase> |
| 144 | + <goals> |
| 145 | + <goal>generate</goal> |
| 146 | + </goals> |
| 147 | + </execution> |
| 148 | + </executions> |
| 149 | + <configuration> |
| 150 | + <sourceDirectory>target/docbook</sourceDirectory> |
| 151 | + <baseOutputDirectory>target/publish</baseOutputDirectory> |
| 152 | + <sourceDocumentName>jsr375-spec.xml</sourceDocumentName> |
| 153 | + <ignoreTranslations>true</ignoreTranslations> |
| 154 | + <!--<imageResource> |
| 155 | + <directory>${project.basedir}/target/docbook/en-US</directory> |
| 156 | + <includes> |
| 157 | + <include>images/*.png</include> |
| 158 | + </includes> |
| 159 | + </imageResource>--> |
| 160 | + <formats> |
| 161 | + <format> |
| 162 | + <formatName>pdf</formatName> |
| 163 | + <stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource> |
| 164 | + <finalName>jsr375-spec.pdf</finalName> |
| 165 | + </format> |
| 166 | + </formats> |
| 167 | + <options> |
| 168 | + <xincludeSupported>true</xincludeSupported> |
| 169 | + <xmlTransformerType>saxon</xmlTransformerType> |
| 170 | + <docbookVersion>1.72.0</docbookVersion> |
| 171 | + <localeSeparator>-</localeSeparator> |
| 172 | + <injectionDateFormat>dd/MM/yyy</injectionDateFormat> |
| 173 | + <transformerParameters> |
| 174 | + <property> |
| 175 | + <name>javax.xml.parsers.DocumentBuilderFactory</name> |
| 176 | + <value>org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</value> |
| 177 | + </property> |
| 178 | + <property> |
| 179 | + <name>javax.xml.parsers.SAXParserFactory</name> |
| 180 | + <value>org.apache.xerces.jaxp.SAXParserFactoryImpl</value> |
| 181 | + </property> |
| 182 | + </transformerParameters> |
| 183 | + </options> |
| 184 | + </configuration> |
| 185 | + </plugin> |
| 186 | + </plugins> |
48 | 187 | </build> |
49 | 188 |
|
50 | 189 | </project> |
| 190 | + |
0 commit comments