| <?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"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.activemq</groupId> |
| <artifactId>apollo-scala</artifactId> |
| <version>1.0</version> |
| <relativePath>../apollo-scala</relativePath> |
| </parent> |
| |
| <groupId>org.apache.activemq</groupId> |
| <artifactId>apollo-web</artifactId> |
| <packaging>jar</packaging> |
| <version>1.0</version> |
| |
| <name>${project.artifactId}</name> |
| <description>Adds web administration support.</description> |
| |
| <properties> |
| <jetty-port>8080</jetty-port> |
| <netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server> |
| </properties> |
| |
| <dependencies> |
| |
| <!-- Core Dependency --> |
| <dependency> |
| <groupId>org.apache.activemq</groupId> |
| <artifactId>apollo-broker</artifactId> |
| <version>1.0</version> |
| </dependency> |
| |
| <!-- Web Framework APIs --> |
| <dependency> |
| <groupId>org.fusesource.scalate</groupId> |
| <artifactId>scalate-core</artifactId> |
| <version>${scalate-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-server</artifactId> |
| <version>${jersey-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| <version>${servlet-api-version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.codehaus.jackson</groupId> |
| <artifactId>jackson-jaxrs</artifactId> |
| <version>${jackson-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.codehaus.jackson</groupId> |
| <artifactId>jackson-xc</artifactId> |
| <version>${jackson-version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.eclipse.jetty.aggregate</groupId> |
| <artifactId>jetty-all-server</artifactId> |
| <version>${jetty-version}</version> |
| <optional>true</optional> |
| </dependency> |
| |
| <dependency> |
| <groupId>net.sf.josql</groupId> |
| <artifactId>josql</artifactId> |
| <version>${josql-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>net.sf.josql</groupId> |
| <artifactId>gentlyweb-utils</artifactId> |
| <version>${josql-version}</version> |
| </dependency> |
| |
| |
| <!-- Scala Support --> |
| <dependency> |
| <groupId>org.scala-lang</groupId> |
| <artifactId>scala-library</artifactId> |
| <scope>compile</scope> |
| <version>${scala-version}</version> |
| </dependency> |
| |
| <!-- Testing --> |
| <dependency> |
| <groupId>org.fusesource.scalate</groupId> |
| <artifactId>scalate-test</artifactId> |
| <version>${scalate-version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.activemq</groupId> |
| <artifactId>apollo-util</artifactId> |
| <version>1.0</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>commons-codec</groupId> |
| <artifactId>commons-codec</artifactId> |
| <version>1.4</version> |
| <optional>true</optional> |
| </dependency> |
| |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| <version>${junit-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.scalatest</groupId> |
| <artifactId>scalatest_2.9.1</artifactId> |
| <version>${scalatest-version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| <version>${slf4j-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| |
| <plugins> |
| |
| <!-- <plugin> |
| <groupId>org.fusesource.mvnplugins</groupId> |
| <artifactId>maven-fab-plugin</artifactId> |
| <version>1.16-SNAPSHOT</version> |
| <configuration> |
| <descriptor> |
| <Name>web</Name> |
| <Long-Description></Long-Description> |
| <Extends>${project.groupId}:apollo-cli:${project.version}</Extends> |
| </descriptor> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> --> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>${maven-surefire-plugin-version}</version> |
| |
| <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>**/htmlunit/**.*</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>jetty-maven-plugin</artifactId> |
| <version>${jetty-plugin-version}</version> |
| <configuration> |
| <webAppConfig> |
| <contextPath>/</contextPath> |
| </webAppConfig> |
| <systemProperties> |
| <systemProperty> |
| <name>scalate.editor</name> |
| <value>${env.SCALATE_EDITOR}</value> |
| </systemProperty> |
| <systemProperty> |
| <name>scalate.workdir</name> |
| <value>${basedir}/target/_scalate</value> |
| </systemProperty> |
| </systemProperties> |
| <scanIntervalSeconds>0</scanIntervalSeconds> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.fusesource.scalate</groupId> |
| <artifactId>maven-scalate-plugin</artifactId> |
| <version>${scalate-version}</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>precompile</goal> |
| </goals> |
| <configuration> |
| <templates> |
| <template>/WEB-INF/scalate/errors/500.scaml</template> |
| </templates> |
| <bootClassName>org.apache.activemq.apollo.web.Boot</bootClassName> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>2.3.1</version> |
| <executions> |
| <!-- embed the wabapp resources in jar as resource --> |
| <execution> |
| <id>webapp.war</id> |
| <phase>process-resources</phase> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${basedir}/target/classes/META-INF/services/org.apache.activemq.apollo</outputDirectory> |
| <finalName>webapp-resources</finalName> |
| <classesDirectory>${basedir}/src/main/webapp</classesDirectory> |
| <excludes> |
| <exclude>META-INF/**</exclude> |
| <exclude>**/*.scaml</exclude> |
| <exclude>**/*.jade</exclude> |
| <exclude>**/*.ssp</exclude> |
| </excludes> |
| </configuration> |
| </execution> |
| </executions> |
| <configuration> |
| <archive> |
| <manifestEntries> |
| <Fabric-Include-Optional-Dependency> |
| org.eclipse.jetty.aggregate:jetty-all-server |
| </Fabric-Include-Optional-Dependency> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| </plugin> |
| |
| </plugins> |
| </build> |
| |
| <profiles> |
| </profiles> |
| |
| </project> |
| |