blob: 3032a351725b8f9d88dea83cfd4ac54aa151c67e [file] [log] [blame]
<?xml version="1.0"?>
<!--
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 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>openwire-protocol</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>openwire-website</artifactId>
<name>openwire-website</name>
<description>Creates the static website for the OpenWire library.</description>
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jettyPort>8000</jettyPort>
<!-- lets use the latest greatest! :) -->
<hawtio-release-version>${project.version}</hawtio-release-version>
<scala-version>2.10.4</scala-version>
<scala-plugin-version>3.2.2</scala-plugin-version>
<scalate-version>1.7.1</scalate-version>
<scalamd-version>1.6.1</scalamd-version>
<jetty-plugin-version>7.0.1.v20091125</jetty-plugin-version>
<netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server>
</properties>
<dependencies>
<dependency>
<groupId>org.scalatra.scalate</groupId>
<artifactId>scalate-wikitext_2.10</artifactId>
<version>${scalate-version}</version>
</dependency>
<dependency>
<groupId>org.scalatra.scalate</groupId>
<artifactId>scalate-page_2.10</artifactId>
<version>${scalate-version}</version>
</dependency>
<dependency>
<groupId>org.scalatra.scalate</groupId>
<artifactId>scalamd_2.10</artifactId>
<version>${scalamd-version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
<!-- testing -->
<dependency>
<groupId>org.scalatra.scalate</groupId>
<artifactId>scalate-test_2.10</artifactId>
<version>${scalate-version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>ext</sourceDirectory>
<plugins>
<plugin>
<inherited>true</inherited>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>${scala-plugin-version}</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
<configuration>
<jvmArgs>
<jvmArg>-Xmx1024m</jvmArg>
<jvmArg>-Xss8m</jvmArg>
</jvmArgs>
<scalaVersion>${scala-version}</scalaVersion>
<target>jvm-1.7</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>once</forkMode>
<!-- these settings are mandatory to avoid SureFire giving a bogus system property to the web container -->
<useSystemClassLoader>false</useSystemClassLoader>
<useManifestOnlyJar>false</useManifestOnlyJar>
<includes>
<include>**/*Test.*</include>
</includes>
<excludes>
<exclude>**/SomeFailingTest.*</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.scalatra.scalate</groupId>
<artifactId>maven-scalate-plugin_2.10</artifactId>
<version>${scalate-version}</version>
<configuration>
<webappDirectory>${basedir}/src</webappDirectory>
<remoteServerId>apache-website</remoteServerId>
<remoteServerUrl>${website-base-url}/versions/${project.version}/website/</remoteServerUrl>
</configuration>
<executions>
<execution>
<id>sitegen</id>
<goals>
<goal>sitegen</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty-plugin-version}</version>
<configuration>
<webAppSourceDirectory>${basedir}/src</webAppSourceDirectory>
<systemProperties>
<systemProperty>
<name>scalate.editor</name>
<value>${env.SCALATE_EDITOR}</value>
</systemProperty>
<systemProperty>
<name>scalate.workdir</name>
<value>${basedir}/target/_scalate</value>
</systemProperty>
<systemProperty>
<name>scalate.mode</name>
<value>development</value>
</systemProperty>
</systemProperties>
<scanIntervalSeconds>0</scanIntervalSeconds>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>process-sources</phase>
<configuration>
<tasks>
<mkdir dir="${basedir}/target/sitegen/documentation/schema" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.fusesource.mvnplugins</groupId>
<artifactId>maven-linkchecker-plugin</artifactId>
<version>${mvnplugins-version}</version>
<configuration>
<excludedLinks>
<value>http://github.com/</value>
<value>http://git.or.cz/</value>
<value>http://localhost:8080/</value>
<value>http://repo.fusesource.com/</value>
<value>http://search.twitter.com/</value>
<value>http://www.chengin.com/</value>
</excludedLinks>
</configuration>
</plugin>
</plugins>
</reporting>
<profiles>
<!-- We only include the java doc when doing a release build since
that's when the javadoc actually gets generated -->
<profile>
<id>apache-release</id>
<dependencies>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>openwire-core</artifactId>
<version>${project.version}</version>
<classifier>javadoc</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>openwire-legacy</artifactId>
<version>${project.version}</version>
<classifier>javadoc</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>openwire-jms</artifactId>
<version>${project.version}</version>
<classifier>javadoc</classifier>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<id>unpack</id>
<phase>package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.apache.activemq</groupId>
<artifactId>openwire-core</artifactId>
<classifier>javadoc</classifier>
<outputDirectory>${basedir}/target/sitegen/documentation/api/openwire-core</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.apache.activemq</groupId>
<artifactId>openwire-legacy</artifactId>
<classifier>javadoc</classifier>
<outputDirectory>${basedir}/target/sitegen/documentation/api/openwire-legacy</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.apache.activemq</groupId>
<artifactId>openwire-jms</artifactId>
<classifier>javadoc</classifier>
<outputDirectory>${basedir}/target/sitegen/documentation/api/openwire-jms</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>deploy-website</id>
<activation>
<property>
<name>java.vm.name</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.scalatra.scalate</groupId>
<artifactId>maven-scalate-plugin_2.11</artifactId>
<version>${scalate-version}</version>
<executions>
<execution>
<id>deploy</id>
<goals>
<goal>deploy</goal>
</goals>
<phase>deploy</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>ibmjdk</id>
<activation>
<file>
<exists>${java.home}/../lib/tools.jar</exists>
</file>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<!--the real JDK version could be 1.5 or 1.6-->
<version>1.5.0</version>
<scope>system</scope>
<optional>true</optional>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
</project>