| <?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.4.0-SNAPSHOT</version> |
| <packaging>war</packaging> |
| |
| <properties> |
| <netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server> |
| <jetty-port>8080</jetty-port> |
| <webapp.srcdir>${project.basedir}/src/main/webapp</webapp.srcdir> |
| <webapp.dir>${project.build.directory}/webapp</webapp.dir> |
| <maven.wagon.version>2.2</maven.wagon.version> |
| |
| <pdf.required>false</pdf.required> |
| |
| <scala.version>2.9.2</scala.version> |
| |
| <scalate.version>1.5.3</scalate.version> |
| <scalate.mode>production</scalate.mode> |
| <scalate.workdir>${basedir}/target/scalateWorkDir</scalate.workdir> |
| |
| <camel.version>2.8.5</camel.version> |
| <components.version>2011.01</components.version> |
| <karaf.version>2.2.4</karaf.version> |
| |
| <servicemix.version>4.4.2</servicemix.version> |
| <servicemix.docs.location>4.4.x</servicemix.docs.location> |
| </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>org.fusesource.scalate</groupId> |
| <artifactId>scalate-page</artifactId> |
| <version>${scalate.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| <version>1.0.6</version> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <version>1.6.6</version> |
| </dependency> |
| |
| <!-- Scala --> |
| <dependency> |
| <groupId>org.scala-lang</groupId> |
| <artifactId>scala-compiler</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.scala-lang</groupId> |
| <artifactId>scala-library</artifactId> |
| </dependency> |
| |
| <!-- ensure that the components are available in the local repo --> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-bean</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-cxf-bc</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-cxf-se</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-drools</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-eip</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-exec</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-file</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-ftp</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-http</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-jms</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-mail</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-osworkflow</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-quartz</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-saxon</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-scripting</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-snmp</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-validation</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-vfs</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>servicemix-xmpp</artifactId> |
| <version>${components.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.10</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <dependencyManagement> |
| <dependencies> |
| <dependency> |
| <groupId>org.scala-lang</groupId> |
| <artifactId>scala-compiler</artifactId> |
| <version>${scala.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.scala-lang</groupId> |
| <artifactId>scala-library</artifactId> |
| <version>${scala.version}</version> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.scala-tools</groupId> |
| <artifactId>maven-scala-plugin</artifactId> |
| <version>2.15.2</version> |
| <executions> |
| <execution> |
| <id>compile</id> |
| <goals> |
| <goal>compile</goal> |
| <goal>testCompile</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>generate-components-docs</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>script</goal> |
| </goals> |
| <configuration> |
| <includeScopes>plugin</includeScopes> |
| <scriptFile>src/main/scripts/GenerateComponentDocs.scala</scriptFile> |
| </configuration> |
| </execution> |
| <execution> |
| <id>generate-pdfs</id> |
| <phase>package</phase> |
| <goals> |
| <goal>script</goal> |
| </goals> |
| <configuration> |
| <includeScopes>plugin</includeScopes> |
| <scriptFile>src/main/scripts/GeneratePdfDocuments.scala</scriptFile> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <!-- Unpack the manual sources into the /karaf subdirectory --> |
| <id>unpack-karaf-manual</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.karaf</groupId> |
| <artifactId>manual</artifactId> |
| <version>${karaf.version}</version> |
| <type>war</type> |
| <outputDirectory>${project.build.directory}/webapp/karaf</outputDirectory> |
| <includes>developers-guide/*.conf,users-guide/*.conf</includes> |
| <!-- TODO: figure out how to handle these files that refer to the karaf codebase --> |
| <excludes> |
| developers-guide/security-framework.conf, |
| users-guide/provisioning-schema.conf |
| </excludes> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| <execution> |
| <!-- Unpack the commands documentation sources into the /commands --> |
| <id>unpack-karaf-commands</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.karaf</groupId> |
| <artifactId>manual</artifactId> |
| <version>${karaf.version}</version> |
| <type>war</type> |
| <outputDirectory>${project.build.directory}/webapp</outputDirectory> |
| <includes>commands/*.conf</includes> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </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>${webapp.dir}</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${webapp.srcdir}</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.fusesource.scalate</groupId> |
| <artifactId>maven-scalate-plugin</artifactId> |
| <version>${scalate.version}</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>sitegen-no-fork</goal> |
| </goals> |
| <phase>prepare-package</phase> |
| <configuration> |
| <webappDirectory>${webapp.dir}</webappDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| <configuration> |
| <warSourceDirectory>${webapp.dir}</warSourceDirectory> |
| <remoteServerId>people.apache.org</remoteServerId> |
| <remoteServerUrl>scp://people.apache.org/www/servicemix.apache.org/docs/${servicemix.docs.location}</remoteServerUrl> |
| </configuration> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven.wagon</groupId> |
| <artifactId>wagon-ssh</artifactId> |
| <version>${maven.wagon.version}</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| <plugin> |
| <artifactId>maven-war-plugin</artifactId> |
| <version>2.2</version> |
| <configuration> |
| <warSourceDirectory>${webapp.dir}</warSourceDirectory> |
| <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.6.5.v20120716</version> |
| <configuration> |
| <webAppConfig> |
| <contextPath>/</contextPath> |
| <baseResource implementation="org.eclipse.jetty.util.resource.ResourceCollection"> |
| <resourcesAsCSV>${webapp.srcdir},${webapp.dir}</resourcesAsCSV> |
| </baseResource> |
| </webAppConfig> |
| <systemProperties> |
| <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> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <version>2.3.7</version> |
| <executions> |
| <execution> |
| <id>bundle-manifest</id> |
| <phase>prepare-package</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,*;resolution:=optional</Import-Package> |
| <Bundle-ClassPath>.,WEB-INF/classes</Bundle-ClassPath> |
| <Embed-Directory>WEB-INF/lib</Embed-Directory> |
| <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency> |
| <Embed-Transitive>true</Embed-Transitive> |
| <Webapp-Context>documentation</Webapp-Context> |
| </instructions> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>apache-release</id> |
| <properties> |
| <pdf.required>true</pdf.required> |
| </properties> |
| </profile> |
| </profiles> |
| |
| </project> |
| |