<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The ASF licenses this file | |
to you under the Apache License, Version 2.0 (the | |
"License"); you may not use this file except in compliance | |
with the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, | |
software distributed under the License is distributed on an | |
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
KIND, either express or implied. See the License for the | |
specific language governing permissions and limitations | |
under the License. | |
--> | |
<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.apache</groupId> | |
<artifactId>apache</artifactId> | |
<version>17</version> | |
</parent> | |
<groupId>org.apache.jspwiki</groupId> | |
<artifactId>jspwiki-site</artifactId> | |
<modelVersion>4.0.0</modelVersion> | |
<name>Apache JSPWiki static site generator</name> | |
<version>1.0.0-SNAPSHOT</version> | |
<description>Apache JSPWiki static site generator</description> | |
<inceptionYear>2001</inceptionYear> | |
<url>http://jspwiki.apache.org/</url> | |
<properties> | |
<jbake.dest>${project.build.directory}/content</jbake.dest> | |
<plugin.dependency>3.0.0</plugin.dependency> | |
<plugin.enforcer>1.4</plugin.enforcer> | |
<plugin.jbake>0.0.9</plugin.jbake> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
<version.freemarker>2.3.26-incubating</version.freemarker> | |
<version.jbake-core>2.5.1</version.jbake-core> | |
<version.jdk>1.7</version.jdk> | |
<version.pegdown>1.6.0</version.pegdown> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-enforcer-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>enforcer-validations</id> | |
<goals><goal>enforce</goal></goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>br.com.ingenieux</groupId> | |
<artifactId>jbake-maven-plugin</artifactId> | |
</plugin> | |
<plugin><!-- jbaking apidocs takes a looong time, for just copying some files, we better unpack them only when actually building the site --> | |
<artifactId>maven-dependency-plugin</artifactId> | |
</plugin> | |
</plugins> | |
<pluginManagement> | |
<plugins> | |
<plugin> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<version>${plugin.dependency}</version> | |
<executions> | |
<execution> | |
<id>unpack-apidocs-2.10.1</id> | |
<phase>generate-resources</phase> | |
<goals><goal>unpack</goal></goals> | |
<configuration> | |
<artifactItems> | |
<artifactItem> | |
<groupId>org.apache.jspwiki</groupId> | |
<artifactId>jspwiki-war</artifactId> | |
<version>2.10.1</version> | |
<classifier>javadoc</classifier> | |
<outputDirectory>${jbake.dest}/apidocs/2.10.1</outputDirectory> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.apache.jspwiki</groupId> | |
<artifactId>jspwiki-war</artifactId> | |
<version>2.10.2</version> | |
<classifier>javadoc</classifier> | |
<outputDirectory>${jbake.dest}/apidocs/2.10.2</outputDirectory> | |
</artifactItem> | |
</artifactItems> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<artifactId>maven-enforcer-plugin</artifactId> | |
<version>${plugin.enforcer}</version> | |
<configuration> | |
<fail>true</fail> | |
<rules> | |
<requireJavaVersion> | |
<message>MUST USE JDK ${version.jdk}</message> | |
<version>${version.jdk}</version> | |
</requireJavaVersion> | |
<requireMavenVersion> | |
<message>JBAKE REQUIRES MAVEN AT LEAST MAVEN 3.1.1</message> | |
<version>[3.1.1,)</version> | |
</requireMavenVersion> | |
</rules> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>br.com.ingenieux</groupId> | |
<artifactId>jbake-maven-plugin</artifactId> | |
<version>${plugin.jbake}</version> | |
<configuration> | |
<outputDirectory>${jbake.dest}</outputDirectory> | |
</configuration> | |
<executions> | |
<execution> | |
<id>generate-site</id> | |
<phase>generate-resources</phase> | |
<goals><goal>generate</goal></goals> | |
</execution> | |
</executions> | |
<dependencies> | |
<dependency> | |
<groupId>org.freemarker</groupId> | |
<artifactId>freemarker</artifactId> | |
<version>${version.freemarker}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.jbake</groupId> | |
<artifactId>jbake-core</artifactId> | |
<version>${version.jbake-core}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.pegdown</groupId> | |
<artifactId>pegdown</artifactId> | |
<version>${version.pegdown}</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
</build> | |
</project> |