3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-14 11:15:51 +00:00

Patch from Gary and Jonny to switch the Maven config to a new Nexus-based build server. Changes how SLF44J is imported to avoid forcing a particular implementation on the user. Remove redundant or unnecessary parts of the POM.

This commit is contained in:
Mike Hearn 2011-09-25 20:32:22 +00:00
parent 03647dbb7e
commit 318afef956

321
pom.xml
View File

@ -3,24 +3,15 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.google</groupId>
<artifactId>bitcoinj</artifactId>
<!-- This should always be a SNAPSHOT until release build -->
<version>0.3-SNAPSHOT</version>
<name>BitCoinJ</name>
<description>A Java implementation of a Bitcoin client-only node</description>
<url>http://code.google.com/p/bitcoinj</url>
<!-- This POM has been tested with the following versions of Maven:
2.2.0, 2.2.1, 3.0.2
Use "mvn clean package" to build quickly without all the reports
Use "mvn clean verify" before submitting a patch
Use "mvn site:site" to generate a complete website under target/site
Use "mvn site:run" to run a local webserver localhost:8080/index.html
-->
<ciManagement>
<url>http://ci.bitcoinj.org/</url>
</ciManagement>
<licenses>
<license>
<name>Apache 2</name>
@ -29,6 +20,7 @@
<comments>A business-friendly OSS license</comments>
</license>
</licenses>
<!-- Committers -->
<developers>
<!-- Information already public -->
@ -45,6 +37,7 @@
<email>xiaofengguo@google.com</email>
</developer>
</developers>
<!-- Patchers and contributors -->
<contributors>
<!-- Information already public -->
@ -68,140 +61,117 @@
<name>John Sample</name>
<email>jwsample@gmail.com</email>
</contributor>
<contributor>
<name>Jan M<>ller</name>
<email>jan.moller@gmail.com</email>
</contributor>
<contributor>
<name>Wolfgang Nagele</name>
<email>wolfgang.nagele@gmail.com</email>
</contributor>
<contributor>
<name>Jonny Heggheim</name>
<email>hegjon@gmail.com</email>
</contributor>
<contributor>
<name>Steve Coughlan</name>
<email>shadders.del@gmail.com</email>
</contributor>
</contributors>
<issueManagement>
<system>Google Code</system>
<url>http://code.google.com/p/bitcoinj/issues/list</url>
</issueManagement>
<mailingLists>
<mailingList>
<name>BitcoinJ Google Group</name>
<name>BitCoinJ Google Group</name>
<post>https://groups.google.com/forum/#!forum/bitcoinj</post>
</mailingList>
</mailingLists>
<scm>
<!-- Public read-only source -->
<url>http://bitcoinj.googlecode.com/svn/trunk/</url>
</scm>
<!-- Distribution management handled by build server (no external authentication) -->
<distributionManagement>
<repository>
<id>central</id>
<name>repo</name>
<url>http://localhost:8081/artifactory/internal-release</url>
<id>releases</id>
<url>http://nexus.bitcoinj.org/content/repositories/release</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>repo</name>
<url>http://localhost:8081/artifactory/internal-snapshot</url>
<url>http://nexus.bitcoinj.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<!-- Include the BitCoinJ repositories in your project if required -->
<repositories>
<!-- Released versions of the library are stable -->
<repository>
<id>bitcoinj-release</id>
<name>BitCoinJ Release</name>
<releases/>
<url>http://ci.bitcoinj.org/artifactory/release</url>
<url>http://nexus.bitcoinj.org/content/repositories/releases</url>
</repository>
<!-- Snapshot versions of the library are subject to frequent change -->
<repository>
<id>bitcoinj-snapshot</id>
<name>BitCoinJ Snapshot</name>
<snapshots/>
<url>http://ci.bitcoinj.org/artifactory/snapshot</url>
<url>http://nexus.bitcoinj.org/content/repositories/snapshots</url>
</repository>
</repositories>
<profiles>
<profile>
<id>maven-3</id>
<id>release-sign-artifacts</id>
<activation>
<file>
<!-- This relies on basedir is only recognized by Maven 3.x (see MNG-2363) -->
<exists>${basedir}</exists>
</file>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0-beta-3</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>attach-descriptor</id>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>attach-descriptor</goal>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<!-- Non-standard Maven structure -->
<sourceDirectory>src</sourceDirectory>
<testSourceDirectory>tests</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-site-plugin.version}.2</version>
<version>2.3.2</version>
<!-- Version 1.5 required to support older platforms. -->
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<!-- Unit testing -->
<!-- Surefire plugin specified for Maven2 compatibility -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<version>2.9</version>
</plugin>
<!-- Unit test reporting -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>${maven-surefire-report-plugin.version}</version>
</plugin>
<!-- Generates a source code JAR during package -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Automatically downloads and renames Bouncy Castle to avoid conflicts on Android. -->
<!-- The Shade plugin permits the Bouncy Castle libraries to be available for Android
in their full form, rather than the limited versions that are currently available
The standard bitcoinj library does not have this limitation and can use the referenced library
As a result, Android developers should use the bitcoinj-<version>-android.jar artifact -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
@ -243,201 +213,54 @@
</execution>
</executions>
</plugin>
<!-- Execute FindBugs during verify phase
Will fail the build if it finds a bug
Enable when ready -->
<!--<plugin>-->
<!--<groupId>org.codehaus.mojo</groupId>-->
<!--<artifactId>findbugs-maven-plugin</artifactId>-->
<!--<version>${findbugs-maven-plugin.version}</version>-->
<!--<configuration>-->
<!--<xmlOutput>true</xmlOutput>-->
<!--<xmlOutputDirectory>target/site</xmlOutputDirectory>-->
<!--<findbugsXmlOutput>true</findbugsXmlOutput>-->
<!--<findbugsXmlOutputDirectory>target/site</findbugsXmlOutputDirectory>-->
<!--<effort>Max</effort>-->
<!--<threshold>Low</threshold>-->
<!--</configuration>-->
<!--<executions>-->
<!--<execution>-->
<!--<phase>verify</phase>-->
<!--<goals>-->
<!--<goal>check</goal>-->
<!--</goals>-->
<!--</execution>-->
<!--</executions>-->
<!--</plugin>-->
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<type>jar</type>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>2.2.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId>
<version>1.2</version>
<version>${easymock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.1</version>
<type>jar</type>
<scope>compile</scope>
<version>${slf4j.version}</version>
</dependency>
<!-- BitCoinJ consumers are expected to provide their own SLF4J adapters
such as logback, slf4j-log4j12, slf4j-jcl and so on
see http://www.slf4j.org/faq.html -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.1</version>
<type>jar</type>
<scope>compile</scope>
<version>${slf4j.version}</version>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<!-- In Android these libraries are incomplete,
so use the dedicated artifact (bitcoinj-<version>-android.jar) -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15</artifactId>
<version>1.46</version>
<type>jar</type>
<scope>compile</scope>
<version>${bcprov-jdk15.version}</version>
</dependency>
</dependencies>
<!-- The reporting section is deprecated in Maven3,
but can be read by site plugin (see MNG-4162) -->
<reporting>
<outputDirectory>${basedir}/target/site</outputDirectory>
<plugins>
<!-- Generates Javadocs -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<excludePackageNames>com.google.bitcoin.bouncycastle.*</excludePackageNames>
</configuration>
</plugin>
<!-- Generate a FindBugs report -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>${findbugs-maven-plugin.version}</version>
<configuration>
<!-- Findbugs takes about 2mins to complete -->
<skip>true</skip>
<xmlOutput>true</xmlOutput>
<xmlOutputDirectory>target/site</xmlOutputDirectory>
<findbugsXmlOutput>true</findbugsXmlOutput>
<findbugsXmlOutputDirectory>target/site</findbugsXmlOutputDirectory>
<effort>Max</effort>
<threshold>Low</threshold>
</configuration>
</plugin>
<!-- Generate a code coverage report -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>${cobertura-maven-plugin.version}</version>
<configuration>
<instrumentation>
<ignores>
<ignore>org.slf4j.*</ignore>
</ignores>
<excludes>
<exclude>com.google.bitcoin.bouncycastle.*</exclude>
</excludes>
</instrumentation>
<formats>
<format>html</format>
<format>xml</format>
</formats>
</configuration>
</plugin>
<!-- Generate an HTML report for unit tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>${maven-surefire-report-plugin.version}</version>
</plugin>
<!-- Generate a mini-site for the project -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>${maven-site-plugin.version}</version>
</plugin>
<!-- Generate cross-referenced HTML source code listing -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>${maven-jxr-plugin.version}</version>
</plugin>
<!-- Execute Taglist to add TODOs, REFACTORs
and so on to the project site during verify
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
<version>${taglist-maven-plugin.version}</version>
<configuration>
<tagListOptions>
<tagClasses>
<tagClass>
<displayName>Pre-release Project Development Work (Peer Review)</displayName>
<tags>
<tag>
<matchString>TODO</matchString>
<matchType>ignoreCase</matchType>
</tag>
<tag>
<matchString>FIXME</matchString>
<matchType>ignoreCase</matchType>
</tag>
</tags>
</tagClass>
<tagClass>
<displayName>Ongoing Refactoring and Maintenance Work (Technical Debt)</displayName>
<tags>
<tag>
<matchString>REFACTOR</matchString>
<matchType>ignoreCase</matchType>
</tag>
</tags>
</tagClass>
</tagClasses>
</tagListOptions>
</configuration>
</plugin>
</plugins>
</reporting>
<properties>
<!-- Source encoding -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Plugin versions -->
<!-- Require lower version for Maven3 compatibility -->
<maven-surefire-report-plugin.version>2.4.3</maven-surefire-report-plugin.version>
<maven-jxr-plugin.version>2.1</maven-jxr-plugin.version>
<maven-site-plugin.version>2.3</maven-site-plugin.version>
<maven-surefire-plugin.version>2.8.1</maven-surefire-plugin.version>
<maven-source-plugin.version>2.0.4</maven-source-plugin.version>
<maven-javadoc-plugin.version>2.6.1</maven-javadoc-plugin.version>
<findbugs-maven-plugin.version>2.3.1</findbugs-maven-plugin.version>
<taglist-maven-plugin.version>2.4</taglist-maven-plugin.version>
<cobertura-maven-plugin.version>2.3</cobertura-maven-plugin.version>
<!-- Third-party dependencies -->
<bcprov-jdk15.version>1.46</bcprov-jdk15.version>
<easymock.version>3.0</easymock.version>
<junit.version>4.8.2</junit.version>
<slf4j.version>1.6.2</slf4j.version>
</properties>
</project>
</project>