| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Copyright (C) 2009-2010 the original author or authors. |
| See the notice.md file distributed with this work for additional |
| information regarding copyright ownership. |
| |
| Licensed 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.servicemix</groupId> |
| <artifactId>servicemix-pom</artifactId> |
| <version>4</version> |
| </parent> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>documentation</artifactId> |
| <name>Apache ServiceMix Documentation</name> |
| <version>4.3.0-SNAPSHOT</version> |
| <packaging>war</packaging> |
| |
| <properties> |
| <netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server> |
| <jetty-port>8080</jetty-port> |
| <jetty-war-dir>${basedir}/target/webapp/</jetty-war-dir> |
| <scalate.version>1.3-SNAPSHOT</scalate.version> |
| <scalate.editor>${env.SCALATE_EDITOR}</scalate.editor> |
| <scalate.mode>production</scalate.mode> |
| <scalate.workdir>${basedir}/target/scalateWorkDir</scalate.workdir> |
| <servicemix.version>4.3.0-SNAPSHOT</servicemix.version> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| <version>2.5</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.fusesource.scalate</groupId> |
| <artifactId>scalate-wikitext</artifactId> |
| <version>${scalate.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| <version>0.9.24</version> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <version>1.6.0</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.scala-tools</groupId> |
| <artifactId>maven-scala-plugin</artifactId> |
| <version>2.14.2-SNAPSHOT</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>filter</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/webapp</outputDirectory> |
| <resources> |
| <resource> |
| <directory>src/main/webapp</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.fusesource.scalate</groupId> |
| <artifactId>maven-scalate-plugin</artifactId> |
| <version>1.3-SNAPSHOT</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>sitegen</goal> |
| </goals> |
| <configuration> |
| <warSourceDirectory>${project.build.directory}/webapp</warSourceDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-war-plugin</artifactId> |
| <configuration> |
| <warSourceDirectory>${project.build.directory}/webapp</warSourceDirectory> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>jetty-maven-plugin</artifactId> |
| <version>7.1.5.v20100705</version> |
| <configuration> |
| <!-- When editing the conf files, you can comment this line to run |
| mvn jetty:run |
| to have a live web site |
| --> |
| <webAppSourceDirectory>${jetty-war-dir}</webAppSourceDirectory> |
| |
| <systemProperties> |
| <systemProperty> |
| <name>scalate.editor</name> |
| <value>${scalate.editor}</value> |
| </systemProperty> |
| <systemProperty> |
| <name>scalate.workdir</name> |
| <value>${scalate.workdir}</value> |
| </systemProperty> |
| <systemProperty> |
| <name>scalate.mode</name> |
| <value>${scalate.mode}</value> |
| </systemProperty> |
| <systemProperty> |
| <name>logback.configurationFile</name> |
| <value>${basedir}/src/etc/logback.xml</value> |
| </systemProperty> |
| </systemProperties> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>1.2</version> |
| <executions> |
| <execution> |
| <id>preprocess</id> |
| <configuration> |
| <tasks> |
| <echo message="Generating PDF using Prince XML (http://www.princexml.com/)"/> |
| <exec executable="prince"> |
| <arg value="${project.build.directory}/sitegen/manual.html" /> |
| <arg value="${project.build.directory}/sitegen/manual.pdf" /> |
| <arg value="--log"/> |
| <arg value="${project.build.directory}/prince.log"/> |
| </exec> |
| </tasks> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <phase>verify</phase> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>1.5</version> |
| <executions> |
| <execution> |
| <id>attach-artifacts</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>attach-artifact</goal> |
| </goals> |
| <configuration> |
| <artifacts> |
| <artifact> |
| <file>${project.build.directory}/sitegen/manual.pdf</file> |
| <type>pdf</type> |
| </artifact> |
| </artifacts> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>live</id> |
| <properties> |
| <jetty-war-dir>${basedir}/src/main/webapp/</jetty-war-dir> |
| <scalate.mode>development</scalate.mode> |
| </properties> |
| </profile> |
| </profiles> |
| |
| </project> |
| |