blob: 490de07246e8f9458e2224ccbdcdc2a525806d61 [file] [log] [blame]
<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">
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
<artifactId>brooklyn-example-simple-open-loop-policy</artifactId>
<name>Brooklyn Simple Web Cluster Example</name>
<!-- this is only needed for "mvn deploy"; the group and version can be extracted
and parent block removed to run this standalone -->
<parent>
<groupId>io.brooklyn.example</groupId>
<artifactId>brooklyn-examples-parent</artifactId>
<version>0.6.0</version> <!-- BROOKLYN_VERSION -->
<relativePath>../pom.xml</relativePath>
</parent>
<repositories>
<repository>
<id>brooklyn-examples-localrepo</id>
<url>file://${basedir}/localrepo</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>io.brooklyn</groupId>
<artifactId>org.marre.smsj</artifactId>
<version>1.0.0-20051126</version>
</dependency>
<dependency>
<groupId>io.brooklyn</groupId>
<artifactId>brooklyn-all</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.brooklyn</groupId>
<artifactId>brooklyn-logback-xml</artifactId>
<version>${project.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.brooklyn</groupId>
<artifactId>brooklyn-test-support</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<!-- copy the WAR so it is available on the classpath for programmatic deployment -->
<executions>
<execution>
<id>copy</id>
<phase>process-classes</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<!-- these can fail in eclipse trying to copy _from_ target/classes.
see http://jira.codehaus.org/browse/MDEP-259 -->
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>brooklyn-example-hello-world-webapp</artifactId>
<version>${project.version}</version>
<type>war</type>
<overWrite>true</overWrite>
<outputDirectory>target/classes</outputDirectory>
<destFileName>hello-world-webapp.war</destFileName>
</artifactItem>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>brooklyn-example-hello-world-sql-webapp</artifactId>
<version>${project.version}</version>
<type>war</type>
<overWrite>true</overWrite>
<outputDirectory>target/classes</outputDirectory>
<destFileName>hello-world-sql-webapp.war</destFileName>
</artifactItem>
<!-- if you want the hadoop example:
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>brooklyn-example-hello-world-hadoop-webapp</artifactId>
<version>${project.version}</version>
<type>war</type>
<overWrite>true</overWrite>
<outputDirectory>target/classes</outputDirectory>
<destFileName>hello-world-hadoop-webapp.war</destFileName>
</artifactItem>
-->
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}</directory>
<includes>
<include>${project.artifactId}/</include>
<include>brooklyn*.log</include>
<include>brooklyn*.log.*</include>
<include>stacktrace.log</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
<!-- TODO assembly not supported for this example, currently
<plugin>
-->
<!-- TODO assembly not supported for this example, currently -->
<!-- optional, with this block, `mvn assembly:assembly` will build a redistributable tgz -->
<!--
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
</configuration>
</plugin>
-->
</plugins>
</build>
</project>