| <?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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <packaging>jar</packaging> |
| |
| <artifactId>brooklyn-jmxmp-agent</artifactId> |
| <name>Brooklyn Secure JMXMP Agent</name> |
| |
| <description> |
| A JMX connector serving the JMXMP protocol for firewall connectivity with SSL (TLS) support |
| </description> |
| |
| <!-- the parent is not needed, but it helps with the build --> |
| <parent> |
| <groupId>org.apache.brooklyn</groupId> |
| <artifactId>brooklyn-parent</artifactId> |
| <version>0.8.1-SNAPSHOT</version> <!-- BROOKLYN_VERSION --> |
| <relativePath>../../../parent/pom.xml</relativePath> |
| </parent> |
| |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.glassfish.external</groupId> |
| <artifactId>opendmk_jmxremote_optional_jar</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.bouncycastle</groupId> |
| <artifactId>bcprov-ext-jdk15on</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.brooklyn</groupId> |
| <artifactId>brooklyn-core</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.brooklyn</groupId> |
| <artifactId>brooklyn-test-support</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.testng</groupId> |
| <artifactId>testng</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <artifactId>maven-shade-plugin</artifactId> |
| <configuration> |
| <transformers> |
| <!-- Cut out the license/notice for the unshaded artifact --> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> |
| <resources> |
| <resource>META-INF/LICENSE</resource> |
| <resource>META-INF/NOTICE</resource> |
| <resource>META-INF/DISCLAIMER</resource> |
| </resources> |
| </transformer> |
| <!-- Replace it with license/notice for the shaded artifact --> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| <resource>META-INF/LICENSE</resource> |
| <file>src/main/license/LICENSE.shaded</file> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| <resource>META-INF/NOTICE</resource> |
| <file>src/main/license/NOTICE.shaded</file> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| <resource>META-INF/DISCLAIMER</resource> |
| <file>src/main/license/DISCLAIMER.shaded</file> |
| </transformer> |
| </transformers> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <archive> |
| <manifestEntries> |
| <Premain-Class>org.apache.brooklyn.util.jmx.jmxmp.JmxmpAgent</Premain-Class> |
| <Agent-Class>org.apache.brooklyn.util.jmx.jmxmp.JmxmpAgent</Agent-Class> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-shade-plugin</artifactId> |
| <configuration> |
| <outputFile>${project.build.directory}/${project.artifactId}-shaded-${project.version}.jar</outputFile> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>attach-distribution</id> |
| <phase>package</phase> |
| <goals> |
| <goal>attach-artifact</goal> |
| </goals> |
| <configuration> |
| <artifacts> |
| <artifact> |
| <file>${project.build.directory}/${project.artifactId}-shaded-${project.version}.jar</file> |
| <type>jar</type> |
| <classifier>with-dependencies</classifier> |
| </artifact> |
| </artifacts> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <source>1.6</source> |
| <target>1.6</target> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |