<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-global-web-fabric</artifactId> | |
<name>Brooklyn Global Web Fabric Example</name> | |
<parent> | |
<groupId>io.brooklyn.example</groupId> | |
<artifactId>brooklyn-examples-parent</artifactId> | |
<version>0.4.0-SNAPSHOT</version> <!-- BROOKLYN_VERSION --> | |
<relativePath>../pom.xml</relativePath> | |
</parent> | |
<dependencies> | |
<dependency> | |
<groupId>io.brooklyn</groupId> | |
<artifactId>brooklyn-all</artifactId> | |
<version>${project.version}</version> | |
<classifier>with-dependencies</classifier> | |
</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> | |
<artifactItem> | |
<!-- this can fail in eclipse trying to copy _from_ target/classes. | |
see http://jira.codehaus.org/browse/MDEP-259 --> | |
<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> | |
</artifactItems> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>build-distribution</id> | |
<phase>package</phase> | |
<goals> | |
<goal>single</goal> | |
</goals> | |
<configuration> | |
<appendAssemblyId>false</appendAssemblyId> | |
<descriptors> | |
<descriptor>src/main/config/example.xml</descriptor> | |
</descriptors> | |
<finalName>${project.artifactId}</finalName> | |
<outputDirectory>${project.basedir}</outputDirectory> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<artifactId>maven-clean-plugin</artifactId> | |
<configuration> | |
<filesets> | |
<fileset> | |
<directory>${project.basedir}</directory> | |
<includes><include>${project.artifactId}/</include></includes> | |
</fileset> | |
</filesets> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |