| <?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/xsd/maven-4.0.0.xsd"> |
| |
| <!-- |
| |
| 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. |
| --> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.karaf</groupId> |
| <artifactId>cave</artifactId> |
| <version>4.0.0-SNAPSHOT</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <groupId>org.apache.karaf.cave</groupId> |
| <artifactId>manual</artifactId> |
| <name>Apache Karaf :: Cave :: Manual</name> |
| <packaging>war</packaging> |
| |
| <properties> |
| <manual.dir>${project.build.directory}/manual</manual.dir> |
| <manual>${manual.dir}/cave-manual-${project.version}</manual> |
| <scala.version>2.8.1</scala.version> |
| <scalate.version>1.3.2</scalate.version> |
| <cave.version>${project.version}</cave.version> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.fusesource.scalate</groupId> |
| <artifactId>scalate-wikitext</artifactId> |
| <version>${scalate.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.scala-lang</groupId> |
| <artifactId>scala-library</artifactId> |
| <version>${scala.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.scala-lang</groupId> |
| <artifactId>scala-compiler</artifactId> |
| <version>${scala.version}</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <configuration> |
| <useDefaultDelimiters>false</useDefaultDelimiters> |
| <delimiters> |
| <delimiter>${*}</delimiter> |
| </delimiters> |
| </configuration> |
| <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> |
| <!-- TODO: add generate-command-help goal of karaf-maven-plugin --> |
| <plugin> |
| <groupId>org.fusesource.scalate</groupId> |
| <artifactId>maven-scalate-plugin</artifactId> |
| <version>${scalate.version}</version> |
| <executions> |
| <execution> |
| <id>generate-htmls</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>sitegen-no-fork</goal> |
| </goals> |
| <configuration> |
| <warSourceDirectory>${project.build.directory}/webapp</warSourceDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| <configuration> |
| <remoteServerId>people.apache.org</remoteServerId> |
| <remoteServerUrl>scp://people.apache.org//x1/www/karaf.apache.org/manual/cave/${cave.version}</remoteServerUrl> |
| </configuration> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven.wagon</groupId> |
| <artifactId>wagon-ssh</artifactId> |
| <version>1.0-beta-7</version> |
| </dependency> |
| <dependency> |
| <groupId>org.fusesource.wikitext</groupId> |
| <artifactId>confluence-core</artifactId> |
| <version>1.3</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>1.6</version> |
| <executions> |
| <execution> |
| <id>create-manual</id> |
| <phase>package</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <tasks> |
| <mkdir dir="${manual.dir}"/> |
| <move file="${project.build.directory}/sitegen/manual.html" tofile="${manual}.html"/> |
| <echo message="Generating PDF using Prince XML (http://www.princexml.com/)"/> |
| <exec executable="prince"> |
| <arg value="${manual}.html"/> |
| <arg value="${manual}.pdf"/> |
| <arg value="--log"/> |
| <arg value="${project.build.directory}/prince.log"/> |
| </exec> |
| <attachartifact file="${manual}.html" type="html"/> |
| <attachartifact file="${manual}.pdf" type="pdf"/> |
| </tasks> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-war-plugin</artifactId> |
| <version>2.1</version> |
| <configuration> |
| <webResources> |
| <resource> |
| <directory>${project.build.directory}/webapp/</directory> |
| </resource> |
| </webResources> |
| <archive> |
| <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> |
| </archive> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>jetty-maven-plugin</artifactId> |
| <version>7.1.5.v20100705</version> |
| <configuration> |
| <webAppSourceDirectory>${project.build.directory}/webapp/</webAppSourceDirectory> |
| <systemProperties> |
| <systemProperty> |
| <name>scalate.editor</name> |
| <value>${env.SCALATE_EDITOR}</value> |
| </systemProperty> |
| <systemProperty> |
| <name>scalate.workdir</name> |
| <value>${project.build.directory}/scalateWorkDir</value> |
| </systemProperty> |
| <systemProperty> |
| <name>scalate.mode</name> |
| <value>production</value> |
| </systemProperty> |
| </systemProperties> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>bundle-manifest</id> |
| <phase>process-classes</phase> |
| <goals> |
| <goal>manifest</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <supportedProjectTypes> |
| <supportedProjectType>jar</supportedProjectType> |
| <supportedProjectType>bundle</supportedProjectType> |
| <supportedProjectType>war</supportedProjectType> |
| </supportedProjectTypes> |
| <instructions> |
| <Import-Package> |
| javax.servlet, |
| javax.servlet.http, |
| org.osgi.framework, |
| org.osgi.service.packageadmin, |
| javax.swing.tree, |
| org.apache.commons.logging;provider=paxlogging;resolution:=optional, |
| org.apache.log4j;provider=paxlogging;resolution:=optional, |
| org.slf4j;provider=paxlogging;resolution:=optional;version="[1.5,2)", |
| </Import-Package> |
| <Bundle-ClassPath>.,WEB-INF/classes</Bundle-ClassPath> |
| <Embed-Directory>WEB-INF/lib</Embed-Directory> |
| <Embed-Dependencies>*;scope=compile|runtime</Embed-Dependencies> |
| <Embed-Transitive>true</Embed-Transitive> |
| <WebApp-Context>/cave-doc</WebApp-Context> |
| </instructions> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-scm-publish-plugin</artifactId> |
| <version>1.0-beta-2</version> |
| <configuration> |
| <checkinComment>[scm-publish] Updating main site with Karaf Cave manual</checkinComment> |
| <pubScmUrl>scm:svn:https://svn.apache.org/repos/asf/karaf/site/production/manual/cave/latest</pubScmUrl> |
| <content>${project.build.directory}/sitegen</content> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <reporting> |
| <plugins> |
| <plugin> |
| <groupId>org.fusesource.scalate</groupId> |
| <artifactId>maven-scalate-plugin</artifactId> |
| <version>${scalate.version}</version> |
| </plugin> |
| </plugins> |
| </reporting> |
| |
| </project> |