371 lines
15 KiB
XML
371 lines
15 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
<parent>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-project</artifactId>
|
|
<version>10.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>jetty-documentation</artifactId>
|
|
<name>Jetty :: Documentation</name>
|
|
<packaging>jar</packaging>
|
|
|
|
<properties>
|
|
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
|
|
<html.common.directory>${project.build.directory}/html/common</html.common.directory>
|
|
<html.image.directory>${project.build.directory}/html/common/images</html.image.directory>
|
|
<javadoc.version>${project.version}</javadoc.version>
|
|
<asciidoctor.maven.plugin.version>1.5.7.1</asciidoctor.maven.plugin.version>
|
|
<asciidoctorj.pdf.version>1.5.0-alpha.16</asciidoctorj.pdf.version>
|
|
<asciidoctorj.epub.version>1.5.0-alpha.8.1</asciidoctorj.epub.version>
|
|
<asciidoctorj.version>1.5.8.1</asciidoctorj.version>
|
|
<jruby.version>1.7.27</jruby.version>
|
|
<web.resources.version>1.2</web.resources.version>
|
|
<web.resources.directory>${project.build.directory}/web-resources</web.resources.directory>
|
|
<!-- old properties -->
|
|
<html.directory>${project.build.directory}/current</html.directory>
|
|
<javadoc.version>${project.version}</javadoc.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.toolchain</groupId>
|
|
<artifactId>jetty-servlet-api</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-alpn-server</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-client</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-jmx</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-rewrite</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-server</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-servlet</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-servlets</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-webapp</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.fcgi</groupId>
|
|
<artifactId>fcgi-client</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.http2</groupId>
|
|
<artifactId>http2-server</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.http2</groupId>
|
|
<artifactId>http2-http-client-transport</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-slf4j-impl</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>unpack-jetty-web-resouces</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>unpack</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>org.eclipse.jetty.toolchain</groupId>
|
|
<artifactId>jetty-web-resources</artifactId>
|
|
<version>${web.resources.version}</version>
|
|
<type>jar</type>
|
|
<overWrite>true</overWrite>
|
|
<outputDirectory>${web.resources.directory}</outputDirectory>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
<excludes>META-INF/**</excludes>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-base-html-assets</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<resources>
|
|
<resource>
|
|
<directory>${web.resources.directory}/html</directory>
|
|
<includes>
|
|
<include>**</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
<outputDirectory>${html.common.directory}</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctor-maven-plugin</artifactId>
|
|
<version>${asciidoctor.maven.plugin.version}</version>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctorj-diagram</artifactId>
|
|
<version>2.0.1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<configuration>
|
|
<attributes>
|
|
<JDURL>http://www.eclipse.org/jetty/javadoc/${javadoc.version}</JDURL>
|
|
<JXURL>http://download.eclipse.org/jetty/stable-9/xref</JXURL>
|
|
<SRCDIR>${basedir}/..</SRCDIR>
|
|
<GITBROWSEURL>https://github.com/eclipse/jetty.project/tree/master</GITBROWSEURL>
|
|
<GITDOCURL>https://github.com/eclipse/jetty.project/tree/jetty-10.0.x-doc-refactor/jetty-documentation/src/main/asciidoc</GITDOCURL>
|
|
<OPGUIDE>../operation-guide/index.html</OPGUIDE>
|
|
<PROGGUIDE>../programming-guide/index.html</PROGGUIDE>
|
|
<GSTARTGUIDE>../gettingstarted-guide/index.html</GSTARTGUIDE>
|
|
<CONTRIBGUIDE>../contribution-guide/index.html</CONTRIBGUIDE>
|
|
<MVNCENTRAL>http://central.maven.org/maven2</MVNCENTRAL>
|
|
<VERSION>${project.version}</VERSION>
|
|
<TIMESTAMP>${maven.build.timestamp}</TIMESTAMP>
|
|
</attributes>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>gettingstarted-guide</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>process-asciidoc</goal>
|
|
</goals>
|
|
<configuration>
|
|
<backend>html5</backend>
|
|
<templateDir>${web.resources.directory}/asciidoc/slim-template</templateDir>
|
|
<sourceDirectory>${basedir}/src/main/asciidoc/gettingstarted-guide</sourceDirectory>
|
|
<sourceDocumentName>index.adoc</sourceDocumentName>
|
|
<outputDirectory>${project.build.directory}/html/gettingstarted-guide</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>operation-guide</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>process-asciidoc</goal>
|
|
</goals>
|
|
<configuration>
|
|
<backend>html5</backend>
|
|
<templateDir>${web.resources.directory}/asciidoc/slim-template</templateDir>
|
|
<sourceDirectory>${basedir}/src/main/asciidoc/operation-guide</sourceDirectory>
|
|
<sourceDocumentName>index.adoc</sourceDocumentName>
|
|
<outputDirectory>${project.build.directory}/html/operation-guide</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>contribution-guide</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>process-asciidoc</goal>
|
|
</goals>
|
|
<configuration>
|
|
<backend>html5</backend>
|
|
<templateDir>${web.resources.directory}/asciidoc/slim-template</templateDir>
|
|
<sourceDirectory>${basedir}/src/main/asciidoc/contribution-guide</sourceDirectory>
|
|
<sourceDocumentName>index.adoc</sourceDocumentName>
|
|
<outputDirectory>${project.build.directory}/html/contribution-guide</outputDirectory>
|
|
<sourceHighlighter>coderay</sourceHighlighter>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>programming-guide</id>
|
|
<phase>prepare-package</phase>
|
|
<goals>
|
|
<goal>process-asciidoc</goal>
|
|
</goals>
|
|
<configuration>
|
|
<backend>html5</backend>
|
|
<templateDir>${web.resources.directory}/asciidoc/slim-template</templateDir>
|
|
<sourceDirectory>${basedir}/src/main/asciidoc/programming-guide</sourceDirectory>
|
|
<sourceDocumentName>index.adoc</sourceDocumentName>
|
|
<outputDirectory>${project.build.directory}/html/programming-guide</outputDirectory>
|
|
<sourceHighlighter>coderay</sourceHighlighter>
|
|
<requires>
|
|
<require>asciidoctor-diagram</require>
|
|
</requires>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>3.1.1</version>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>src/main/assembly/html.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>make-assembly</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>alt-formats</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctor-maven-plugin</artifactId>
|
|
<version>${asciidoctor.maven.plugin.version}</version>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctorj-pdf</artifactId>
|
|
<version>${asciidoctorj.pdf.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctorj-epub3</artifactId>
|
|
<version>${asciidoctorj.epub.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jruby</groupId>
|
|
<artifactId>jruby-complete</artifactId>
|
|
<version>${jruby.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctorj</artifactId>
|
|
<version>${asciidoctorj.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<configuration>
|
|
<imagesdir />
|
|
<backend>docbook</backend>
|
|
<attributes>
|
|
<revnumber>${project.version}</revnumber>
|
|
<JDURL>http://www.eclipse.org/jetty/javadoc/${javadoc.version}</JDURL>
|
|
<JXURL>http://download.eclipse.org/jetty/stable-9/xref</JXURL>
|
|
<SRCDIR>${basedir}/..</SRCDIR>
|
|
<GITBROWSEURL>https://github.com/eclipse/jetty.project/tree/master</GITBROWSEURL>
|
|
<MVNCENTRAL>http://central.maven.org/maven2</MVNCENTRAL>
|
|
<VERSION>${project.version}</VERSION>
|
|
</attributes>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>contribution-guide-pdf</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>process-asciidoc</goal>
|
|
</goals>
|
|
<configuration>
|
|
<backend>pdf</backend>
|
|
<sourceHighlighter>coderay</sourceHighlighter>
|
|
<attributes>
|
|
<icons>font</icons>
|
|
<pagenums />
|
|
<toc />
|
|
<idprefix />
|
|
<idseparator>-</idseparator>
|
|
</attributes>
|
|
<sourceDirectory>${basedir}/src/main/asciidoc/contribution-guide</sourceDirectory>
|
|
<sourceDocumentName>index.adoc</sourceDocumentName>
|
|
<outputFile>${project.build.directory}/pdf/contribution-guide/contribution-guide.pdf</outputFile>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>quickstart-distribution-guide-pdf</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>process-asciidoc</goal>
|
|
</goals>
|
|
<configuration>
|
|
<backend>pdf</backend>
|
|
<sourceHighlighter>coderay</sourceHighlighter>
|
|
<attributes>
|
|
<icons>font</icons>
|
|
<pagenums />
|
|
<toc />
|
|
<idprefix />
|
|
<idseparator>-</idseparator>
|
|
</attributes>
|
|
<sourceDirectory>${basedir}/src/main/asciidoc/quickstart-distribution-guide</sourceDirectory>
|
|
<sourceDocumentName>index.adoc</sourceDocumentName>
|
|
<outputFile>${project.build.directory}/pdf/quickstart-distribution-guide/quickstart-distribution-guide.pdf</outputFile>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>contribution-guide-epub</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>process-asciidoc</goal>
|
|
</goals>
|
|
<configuration>
|
|
<backend>epub3</backend>
|
|
<sourceHighlighter>coderay</sourceHighlighter>
|
|
<sourceDirectory>${basedir}/src/main/asciidoc/contribution-guide</sourceDirectory>
|
|
<sourceDocumentName>index.adoc</sourceDocumentName>
|
|
<outputFile>${project.build.directory}/epub/contribution-guide/contribution-guide.epub</outputFile>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project>
|