blob: f66f8af95976a0982537f05ca74b8d37525f088a [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>bundle</packaging>
<artifactId>brooklyn-software-base</artifactId>
<name>Brooklyn Software Base</name>
<description>
Base classes for Brooklyn software process entities
</description>
<parent>
<groupId>io.brooklyn</groupId>
<artifactId>brooklyn-parent</artifactId>
<version>0.5.0-M1</version> <!-- BROOKLYN_VERSION -->
<relativePath>../../pom.xml</relativePath>
</parent>
<dependencies>
<dependency>
<groupId>io.brooklyn</groupId>
<artifactId>brooklyn-core</artifactId>
</dependency>
<dependency>
<groupId>io.brooklyn</groupId>
<artifactId>brooklyn-jmxmp-agent</artifactId>
<version>${brooklyn.version}</version>
</dependency>
<dependency>
<groupId>io.brooklyn</groupId>
<artifactId>brooklyn-policy</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>brooklyn-test-support</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.brooklyn</groupId>
<artifactId>brooklyn-core</artifactId>
<version>${project.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>mx4j</groupId>
<artifactId>mx4j-tools</artifactId>
<version>${mx4j.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<Include-Resource>{maven-resources}, target/classes/brooklyn-jmxmp-agent-shaded-${project.version}.jar</Include-Resource>
</instructions>
</configuration>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<!-- copy the jmxmp-agent JAR 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>
<!-- NB 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-jmxmp-agent</artifactId>
<version>${project.version}</version>
<type>jar</type>
<classifier>with-dependencies</classifier>
<overWrite>true</overWrite>
<outputDirectory>target/classes</outputDirectory>
<destFileName>brooklyn-jmxmp-agent-shaded-${project.version}.jar</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>