<?xml version="1.0" encoding="UTF-8"?> <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> <groupId>org.jolokia</groupId> <artifactId>jolokia</artifactId> <version>1.0.4-SNAPSHOT</version> <name>jolokia-parent</name> <description>jolokia parent pom</description> <packaging>pom</packaging> <url>http://www.jolokia.org</url> <modules> <module>agent</module> <module>it</module> <module>client</module> <module>tools/test-util</module> </modules> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> <meminitial>128m</meminitial> <maxmem>512m</maxmem> </configuration> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <descriptors> <descriptor>src/assembly/dist-bin.xml</descriptor> <descriptor>src/assembly/dist-source.xml</descriptor> </descriptors> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <configuration> <autoVersionSubmodules>true</autoVersionSubmodules> <goals>deploy docbkx:generate-html docbkx:generate-pdf package assembly:assembly</goals> </configuration> </plugin> <plugin> <groupId>com.agilejava.docbkx</groupId> <artifactId>docbkx-maven-plugin</artifactId> <executions> <execution> <goals> <goal>generate-html</goal> <goal>generate-pdf</goal> </goals> <phase>pre-site</phase> </execution> </executions> <dependencies> <dependency> <groupId>org.docbook</groupId> <artifactId>docbook-xml</artifactId> <version>4.4</version> <scope>runtime</scope> </dependency> </dependencies> <configuration> <includes>index.xml</includes> <xincludeSupported>true</xincludeSupported> <tableBordersWithCss>true</tableBordersWithCss> <imgSrcPath>images/</imgSrcPath> <foCustomization>src/docbkx/styles/reference-pdf.xsl</foCustomization> <htmlStylesheet>css/stylesheet.css</htmlStylesheet> <!-- produce single-page html output --> <chunkedOutput>true</chunkedOutput> <highlightSource>1</highlightSource> <htmlCustomization>src/docbkx/styles/reference-html-chunk.xsl</htmlCustomization> <entities> <entity> <name>version</name> <value>${project.version}</value> </entity> </entities> <postProcess> <copy todir="${project.basedir}/target/site/reference"> <fileset dir="${project.basedir}/target/docbkx"> <include name="**/*.html" /> <include name="**/*.pdf" /> </fileset> </copy> <copy todir="${project.basedir}/target/site/reference/html"> <fileset dir="${project.basedir}/src/docbkx"> <include name="**/*.css" /> <include name="**/*.png" /> <include name="**/*.gif" /> <include name="**/*.jpg" /> </fileset> </copy> <move file="${project.basedir}/target/site/reference/pdf/index.pdf" tofile="${project.basedir}/target/site/reference/pdf/jolokia-reference.pdf" failonerror="false" /> </postProcess> </configuration> </plugin> <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> <configuration> <includes> <include>**/*.java</include> </includes> <excludeSubProjects>false</excludeSubProjects> </configuration> </plugin> </plugins> <!-- =========================================================== --> <!-- plugin versions --> <pluginManagement> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>2.3.5</version> <configuration> <groupId>${project.groupId}</groupId> <artifactId>${project.artifactId}</artifactId> <version>${project.version}</version> <packaging>${project.packaging}</packaging> </configuration> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.2.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.2.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.3</version> </plugin> <plugin> <groupId>com.agilejava.docbkx</groupId> <artifactId>docbkx-maven-plugin</artifactId> <version>2.0.6</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.1</version> </plugin> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-scr-plugin</artifactId> <version>1.7.2</version> </plugin> <plugin> <artifactId>maven-jar-plugin</artifactId> <version>2.3.2</version> <configuration> <archive> <addMavenDescriptor>true</addMavenDescriptor> </archive> </configuration> </plugin> <plugin> <artifactId>maven-war-plugin</artifactId> <version>2.1.1</version> </plugin> <plugin> <artifactId>maven-deploy-plugin</artifactId> <version>2.7</version> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.9</version> </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.5</version> </plugin> <plugin> <artifactId>maven-install-plugin</artifactId> <version>2.3.1</version> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.6</version> </plugin> <plugin> <artifactId>maven-site-plugin</artifactId> <version>3.0</version> <configuration> <validate>false</validate> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> <version>2.4</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>2.1.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.8</version> </plugin> <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> <version>0.7</version> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>sonar-maven-plugin</artifactId> <version>2.0</version> </plugin> </plugins> </pluginManagement> <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-ssh-external</artifactId> <version>1.0</version> </extension> </extensions> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> <version>2.4</version> <reportSets> <reportSet> <reports> <report>dependency-convergence</report> <report>dependency-management</report> <report>project-team</report> <report>cim</report> <report>issue-tracking</report> <report>scm</report> <report>plugins</report> </reports> </reportSet> </reportSets> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-changes-plugin</artifactId> <version>2.6</version> <reportSets> <reportSet> <reports> <report>changes-report</report> </reports> </reportSet> </reportSets> </plugin> </plugins> </reporting> <!-- =========================================================== --> <issueManagement> <system>JIRA</system> <url>http://jolokia.jira.com</url> </issueManagement> <scm> <connection>scm:git:git://github.com/rhuss/jolokia.git</connection> <developerConnection>scm:git:ssh://git@github.com/rhuss/jolokia.git</developerConnection> <tag>HEAD</tag> <url>git://github.com/rhuss/jolokia.git</url> </scm> <ciManagement> <system>hudson</system> <url>http://labs.consol.de/hudson/job/jolokia</url> </ciManagement> <licenses> <license> <name>Apache 2</name> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> <distribution>repo</distribution> <comments>A business-friendly OSS license</comments> </license> </licenses> <developers> <developer> <name>Roland Huss</name> <id>roland</id> <email>roland@jolokia.org</email> <organization>ConSol</organization> <roles> <role>Developer, Architect</role> </roles> </developer> </developers> <!-- Overall version management --> <dependencyManagement> <dependencies> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.googlecode.json-simple</groupId> <artifactId>json-simple</artifactId> <version>1.1</version> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.core</artifactId> <version>4.2.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.compendium</artifactId> <version>4.2.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.1.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.easymock</groupId> <artifactId>easymock</artifactId> <version>3.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty</artifactId> <version>6.1.26</version> <scope>test</scope> </dependency> <dependency> <groupId>com.google.code.findbugs</groupId> <artifactId>annotations</artifactId> <version>1.3.9</version> <scope>provided</scope> </dependency> </dependencies> </dependencyManagement> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <currentStableVersion>1.0.3</currentStableVersion> <currentSnapshotVersion>1.0.4-SNAPSHOT</currentSnapshotVersion> <sonar.host.url>http://labs.consol.de/sonar</sonar.host.url> <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin> </properties> <repositories> <repository> <id>sonatype-nexus-snapshots</id> <name>Sonatype Nexus Snapshots</name> <url> http://oss.sonatype.org/content/repositories/snapshots </url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <distributionManagement> <snapshotRepository> <id>sonatype-nexus-snapshots</id> <name>Sonatype Nexus Snapshots</name> <url>https://oss.sonatype.org/content/repositories/snapshots/</url> </snapshotRepository> <repository> <id>sonatype-nexus-staging</id> <name>Nexus Release Repository</name> <url> https://oss.sonatype.org/service/local/staging/deploy/maven2/ </url> </repository> </distributionManagement> <profiles> <profile> <!-- Distribution to maven central. This is default deployment target --> <id>dist</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.4</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> <configuration> <useAgent>true</useAgent> </configuration> </plugin> </plugins> </build> </profile> <profile> <!-- Distribution to labs.consol.de, for artefacts and site --> <id>labs</id> <distributionManagement> <repository> <id>consol-labs-release</id> <url>scpexe://labs.consol.de/home/maven-repository/www/htdocs/repository</url> </repository> <snapshotRepository> <id>consol-labs-snapshots</id> <url>scpexe://labs.consol.de/home/maven-repository/www/htdocs/snapshots-repository</url> </snapshotRepository> <site> <id>jolokia-site</id> <url>scpexe://labs.consol.de/home/jolokia/www/htdocs</url> </site> </distributionManagement> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <configuration> <remoteOBR>true</remoteOBR> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> <profile> <id>obr-release</id> <build> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <configuration> <repositoryId>consol-labs-release</repositoryId> <bundleUrl>httppgp://labs.consol.de/maven/repository/org/jolokia/${project.artifactId}/${project.version}/${project.artifactId}-${project.version}.jar</bundleUrl> <url>scpexe://labs.consol.de/home/maven-repository/www/htdocs/repository</url> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>obr-snapshot</id> <build> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <configuration> <repositoryId>consol-labs-snapshots</repositoryId> <bundleUrl>httppgp://labs.consol.de/maven/snapshots-repository/org/jolokia/${project.artifactId}/${project.version}/${project.artifactId}-${project.version}.jar</bundleUrl> <url>scpexe://labs.consol.de/home/maven-repository/www/htdocs/snapshots-repository</url> </configuration> </plugin> </plugins> </build> </profile> <!-- Profile for running only Java 5 compliant tests--> <profile> <id>java5</id> <activation> <jdk>1.5</jdk> </activation> <build> <pluginManagement> <plugins> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <excludedGroups>java6</excludedGroups> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> <!-- Include Roo, which is not build by default --> <profile> <id>roo</id> <modules> <module>tools/roo-addon</module> </modules> </profile> </profiles> </project>