| 1 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 3 |
<modelVersion>4.0.0</modelVersion> |
| 4 |
|
| 5 |
<groupId>javax.enterprise</groupId> |
| 6 |
<artifactId>cdi-spec-doc-parent</artifactId> |
| 7 |
<packaging>pom</packaging> |
| 8 |
<version>1.2-SNAPSHOT</version> |
| 9 |
|
| 10 |
<name>Parent for CDI Specification documentation</name> |
| 11 |
<description>Parent of Specification for CDI (Contexts and Dependency Injection for Java EE)</description> |
| 12 |
|
| 13 |
|
| 14 |
<properties> |
| 15 |
<asciidoctor.version>0.1.4</asciidoctor.version> |
| 16 |
</properties> |
| 17 |
|
| 18 |
<profiles> |
| 19 |
<profile> |
| 20 |
<id>jboss-public-repository</id> |
| 21 |
<activation> |
| 22 |
<property> |
| 23 |
<name>jboss-public-repository</name> |
| 24 |
<value>!false</value> |
| 25 |
</property> |
| 26 |
</activation> |
| 27 |
<repositories> |
| 28 |
<repository> |
| 29 |
<id>jboss-public-repository-group</id> |
| 30 |
<name>JBoss Public Maven Repository Group</name> |
| 31 |
<url>http://repository.jboss.org/nexus/content/groups/public</url> |
| 32 |
<releases> |
| 33 |
<enabled>true</enabled> |
| 34 |
<updatePolicy>never</updatePolicy> |
| 35 |
</releases> |
| 36 |
<snapshots> |
| 37 |
<enabled>false</enabled> |
| 38 |
<updatePolicy>never</updatePolicy> |
| 39 |
</snapshots> |
| 40 |
</repository> |
| 41 |
</repositories> |
| 42 |
<pluginRepositories> |
| 43 |
<pluginRepository> |
| 44 |
<id>jboss-public-repository-group</id> |
| 45 |
<name>JBoss Public Maven Repository Group</name> |
| 46 |
<url>http://repository.jboss.org/nexus/content/groups/public</url> |
| 47 |
<releases> |
| 48 |
<enabled>true</enabled> |
| 49 |
<updatePolicy>never</updatePolicy> |
| 50 |
</releases> |
| 51 |
<snapshots> |
| 52 |
<enabled>false</enabled> |
| 53 |
<updatePolicy>never</updatePolicy> |
| 54 |
</snapshots> |
| 55 |
</pluginRepository> |
| 56 |
</pluginRepositories> |
| 57 |
</profile> |
| 58 |
</profiles> |
| 59 |
|
| 60 |
<build> |
| 61 |
<resources> |
| 62 |
<resource> |
| 63 |
<directory>../src/main/doc</directory> |
| 64 |
<targetPath>${basedir}/target/filtered</targetPath> |
| 65 |
<filtering>true</filtering> |
| 66 |
</resource> |
| 67 |
</resources> |
| 68 |
<plugins> |
| 69 |
<plugin> |
| 70 |
<groupId>org.apache.maven.plugins</groupId> |
| 71 |
<artifactId>maven-resources-plugin</artifactId> |
| 72 |
<version>2.6</version> |
| 73 |
<executions> |
| 74 |
<execution> |
| 75 |
<id>filter</id> |
| 76 |
<phase>generate-resources</phase> |
| 77 |
<goals> |
| 78 |
<goal>resources</goal> |
| 79 |
</goals> |
| 80 |
</execution> |
| 81 |
</executions> |
| 82 |
<configuration> |
| 83 |
<encoding>UTF-8</encoding> |
| 84 |
</configuration> |
| 85 |
</plugin> |
| 86 |
<plugin> |
| 87 |
<groupId>org.asciidoctor</groupId> |
| 88 |
<artifactId>asciidoctor-maven-plugin</artifactId> |
| 89 |
<version>${asciidoctor.version}</version> |
| 90 |
<executions> |
| 91 |
<execution> |
| 92 |
<id>output-docbook</id> |
| 93 |
<phase>process-resources</phase> |
| 94 |
<goals> |
| 95 |
<goal>process-asciidoc</goal> |
| 96 |
</goals> |
| 97 |
<configuration> |
| 98 |
<backend>docbook45</backend> |
| 99 |
<doctype>book</doctype> |
| 100 |
|
| 101 |
<templateEngine>slim</templateEngine> |
| 102 |
<headerFooter>true</headerFooter> |
| 103 |
<compact>false</compact> |
| 104 |
<outputDirectory>target/docbook/en-US</outputDirectory> |
| 105 |
<attributes> |
| 106 |
<numbered>true</numbered> |
| 107 |
<docinfo>true</docinfo> |
| 108 |
<experimental>true</experimental> |
| 109 |
<toc>true</toc> |
| 110 |
</attributes> |
| 111 |
</configuration> |
| 112 |
</execution> |
| 113 |
<execution> |
| 114 |
<id>output-html</id> |
| 115 |
<phase>generate-resources</phase> |
| 116 |
<goals> |
| 117 |
<goal>process-asciidoc</goal> |
| 118 |
</goals> |
| 119 |
<configuration> |
| 120 |
<sourceHighlighter>highlightjs</sourceHighlighter> |
| 121 |
<backend>html5</backend> |
| 122 |
<outputDirectory>target/publish/html</outputDirectory> |
| 123 |
<sourceDocumentName>cdi-spec.asciidoc</sourceDocumentName> |
| 124 |
<attributes> |
| 125 |
<toc2>left</toc2> |
| 126 |
<pygments>true</pygments> |
| 127 |
<toclevels>3</toclevels> |
| 128 |
</attributes> |
| 129 |
</configuration> |
| 130 |
</execution> |
| 131 |
</executions> |
| 132 |
<configuration> |
| 133 |
<sourceDirectory>target/filtered</sourceDirectory> |
| 134 |
</configuration> |
| 135 |
</plugin> |
| 136 |
|
| 137 |
<plugin> |
| 138 |
<groupId>org.jboss.maven.plugins</groupId> |
| 139 |
<artifactId>maven-jdocbook-plugin</artifactId> |
| 140 |
<version>2.3.8</version> |
| 141 |
<extensions>true</extensions> |
| 142 |
<dependencies> |
| 143 |
<dependency> |
| 144 |
<groupId>org.jboss.pressgang</groupId> |
| 145 |
<artifactId>pressgang-xslt</artifactId> |
| 146 |
<version>2.0.0</version> |
| 147 |
</dependency> |
| 148 |
<dependency> |
| 149 |
<groupId>org.jboss.pressgang</groupId> |
| 150 |
<artifactId>pressgang-jdocbook-style</artifactId> |
| 151 |
<type>jdocbook-style</type> |
| 152 |
<version>3.0.0</version> |
| 153 |
</dependency> |
| 154 |
</dependencies> |
| 155 |
<executions> |
| 156 |
<execution> |
| 157 |
<id>generate-pdf</id> |
| 158 |
<phase>process-resources</phase> |
| 159 |
<goals> |
| 160 |
<goal>generate</goal> |
| 161 |
</goals> |
| 162 |
</execution> |
| 163 |
</executions> |
| 164 |
<configuration> |
| 165 |
<sourceDirectory>target/docbook</sourceDirectory> |
| 166 |
<baseOutputDirectory>target/publish</baseOutputDirectory> |
| 167 |
<sourceDocumentName>cdi-spec.xml</sourceDocumentName> |
| 168 |
<ignoreTranslations>true</ignoreTranslations> |
| 169 |
<!--<imageResource> |
| 170 |
<directory>${project.basedir}/target/docbook/en-US</directory> |
| 171 |
<includes> |
| 172 |
<include>images/*.png</include> |
| 173 |
</includes> |
| 174 |
</imageResource>--> |
| 175 |
<formats> |
| 176 |
<format> |
| 177 |
<formatName>pdf</formatName> |
| 178 |
<stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource> |
| 179 |
<finalName>cdi-${project.version}.pdf</finalName> |
| 180 |
</format> |
| 181 |
</formats> |
| 182 |
<options> |
| 183 |
<xincludeSupported>true</xincludeSupported> |
| 184 |
<xmlTransformerType>saxon</xmlTransformerType> |
| 185 |
<docbookVersion>1.72.0</docbookVersion> |
| 186 |
<localeSeparator>-</localeSeparator> |
| 187 |
<injectionDateFormat>dd/MM/yyy</injectionDateFormat> |
| 188 |
<transformerParameters> |
| 189 |
<property> |
| 190 |
<name>javax.xml.parsers.DocumentBuilderFactory</name> |
| 191 |
<value>org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</value> |
| 192 |
</property> |
| 193 |
<property> |
| 194 |
<name>javax.xml.parsers.SAXParserFactory</name> |
| 195 |
<value>org.apache.xerces.jaxp.SAXParserFactoryImpl</value> |
| 196 |
</property> |
| 197 |
</transformerParameters> |
| 198 |
</options> |
| 199 |
</configuration> |
| 200 |
</plugin> |
| 201 |
</plugins> |
| 202 |
</build> |
| 203 |
|
| 204 |
|
| 205 |
</project> |