<!--

    Copyright (C) 2012 LedCom (guillaume.lederrey@gmail.com)

    Licensed 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>

	<parent>
		<groupId>ch.ledcom</groupId>
		<artifactId>ledcom-parent-pom</artifactId>
		<version>1.36</version>
	</parent>

	<groupId>ch.ledcom.agent.jmx</groupId>
	<artifactId>jmx-rmi-agent</artifactId>
	<version>1.1</version>
	<packaging>jar</packaging>

	<properties>
		<java.lib.path>/usr/local/share/java</java.lib.path>
		<verify.coverage.threshold>0</verify.coverage.threshold>
		<verify.mutation.threshold>0</verify.mutation.threshold>
	</properties>

	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
			<version>18.0</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<testResources>
			<testResource>
				<directory>src/test/resources</directory>
				<filtering>true</filtering>
			</testResource>
		</testResources>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-failsafe-plugin</artifactId>
				<executions>
					<execution>
						<goals>
							<goal>integration-test</goal>
							<goal>verify</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<archive>
						<manifestFile>
							src/main/resources/META-INF/MANIFEST.MF
						</manifestFile>
						<manifest>
							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
							<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
						</manifest>
					</archive>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>rpm-maven-plugin</artifactId>
				<version>2.1-alpha-4</version>
				<configuration>
					<group>Libraries/Java</group>
					<release />
					<mappings>
						<mapping>
							<directory>${java.lib.path}</directory>
							<artifact>
								<classifiers>
									<classifier />
								</classifiers>
							</artifact>
						</mapping>
					</mappings>
				</configuration>
				<executions>
					<execution>
						<id>attach-rpm</id>
						<goals>
							<goal>attached-rpm</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>jdeb</artifactId>
				<groupId>org.vafer</groupId>
				<version>1.3</version>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>jdeb</goal>
						</goals>
						<configuration>
							<verbose>true</verbose>
							<snapshotExpand>true</snapshotExpand>
							<!-- expand "SNAPSHOT" to what is in the "USER" env variable -->
							<!--<snapshotEnv>USER</snapshotEnv>-->
							<controlDir>${basedir}/src/deb/control</controlDir>
							<dataSet>

								<data>
									<src>${project.build.directory}/${project.build.finalName}.jar</src>
									<type>file</type>
									<mapper>
										<type>perm</type>
										<prefix>${java.lib.path}</prefix>
									</mapper>
								</data>

								<data>
									<type>link</type>
									<symlink>true</symlink>
									<linkName>${java.lib.path}/${project.artifactId}.jar</linkName>
									<linkTarget>${java.lib.path}/${project.build.finalName}.jar</linkTarget>
								</data>

							</dataSet>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>cobertura-maven-plugin</artifactId>
					<configuration>
						<check>
							<branchRate>0</branchRate>
							<lineRate>0</lineRate>
							<totalBranchRate>0</totalBranchRate>
							<totalLineRate>0</totalLineRate>
							<packageBranchRate>0</packageBranchRate>
							<packageLineRate>0</packageLineRate>
						</check>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>

	<name>JMX / RMI Agent</name>
	<description>Simple agent that can be used to configure JMX access to the JVM.</description>
	<url>http://gehel.github.com/jmx-rmi-agent/</url>
	<inceptionYear>2012</inceptionYear>


	<issueManagement>
		<system>GitHub</system>
		<url>https://github.com/gehel/jmx-rmi-agent/issues</url>
	</issueManagement>

	<scm>
		<connection>scm:git:git://github.com/gehel/jmx-rmi-agent.git</connection>
		<developerConnection>scm:git:ssh://git@github.com/gehel/jmx-rmi-agent.git</developerConnection>
		<url>https://github.com/gehel/jmx-rmi-agent</url>
		<tag>jmx-rmi-agent-1.1</tag>
	</scm>

</project>
