2011-06-10 18:46:32 +02:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2011-06-27 15:08:59 +02:00
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2011-06-10 18:46:32 +02:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.google</groupId>
|
|
|
|
<artifactId>bitcoinj</artifactId>
|
2011-07-14 09:12:17 +02:00
|
|
|
<!-- This should always be a SNAPSHOT until release build -->
|
2011-07-06 13:48:24 +02:00
|
|
|
<version>0.3-SNAPSHOT</version>
|
2011-06-27 15:08:59 +02:00
|
|
|
<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>
|
|
|
|
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
|
|
|
|
<distribution>repo</distribution>
|
|
|
|
<comments>A business-friendly OSS license</comments>
|
|
|
|
</license>
|
|
|
|
</licenses>
|
|
|
|
<!-- Committers -->
|
|
|
|
<developers>
|
|
|
|
<!-- Information already public -->
|
|
|
|
<developer>
|
|
|
|
<name>Mike Hearn</name>
|
|
|
|
<email>hearn@google.com</email>
|
|
|
|
</developer>
|
|
|
|
<developer>
|
|
|
|
<name>Miron Cuperman</name>
|
|
|
|
<email>miron@google.com</email>
|
|
|
|
</developer>
|
|
|
|
<developer>
|
|
|
|
<name>Xiaofeng Guo</name>
|
|
|
|
<email>xiaofengguo@google.com</email>
|
|
|
|
</developer>
|
|
|
|
</developers>
|
|
|
|
<!-- Patchers and contributors -->
|
|
|
|
<contributors>
|
|
|
|
<!-- Information already public -->
|
|
|
|
<contributor>
|
|
|
|
<name>Thilo Planz</name>
|
|
|
|
<email>thilo@cpan.org</email>
|
|
|
|
</contributor>
|
|
|
|
<contributor>
|
|
|
|
<name>Micheal Swiggs</name>
|
|
|
|
<email>bobby.simpson87@gmail.com</email>
|
|
|
|
</contributor>
|
|
|
|
<contributor>
|
|
|
|
<name>Gary Rowe</name>
|
|
|
|
<email>g.rowe@froot.co.uk</email>
|
|
|
|
</contributor>
|
|
|
|
<contributor>
|
|
|
|
<name>Noa Resare</name>
|
|
|
|
<email>noa@resare.com</email>
|
|
|
|
</contributor>
|
|
|
|
<contributor>
|
|
|
|
<name>John Sample</name>
|
|
|
|
<email>jwsample@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>
|
|
|
|
<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>
|
2011-07-14 09:12:17 +02:00
|
|
|
<!-- 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>
|
|
|
|
</repository>
|
|
|
|
<snapshotRepository>
|
|
|
|
<id>snapshots</id>
|
|
|
|
<name>repo</name>
|
|
|
|
<url>http://localhost:8081/artifactory/internal-snapshot</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>
|
2011-09-15 16:40:16 +02:00
|
|
|
<releases/>
|
2011-07-20 12:51:18 +02:00
|
|
|
<url>http://ci.bitcoinj.org/artifactory/release</url>
|
2011-07-14 09:12:17 +02:00
|
|
|
</repository>
|
|
|
|
<!-- Snapshot versions of the library are subject to frequent change -->
|
|
|
|
<repository>
|
|
|
|
<id>bitcoinj-snapshot</id>
|
|
|
|
<name>BitCoinJ Snapshot</name>
|
2011-09-15 16:40:16 +02:00
|
|
|
<snapshots/>
|
2011-07-20 12:51:18 +02:00
|
|
|
<url>http://ci.bitcoinj.org/artifactory/snapshot</url>
|
2011-07-14 09:12:17 +02:00
|
|
|
</repository>
|
|
|
|
</repositories>
|
2011-06-27 15:08:59 +02:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>maven-3</id>
|
|
|
|
<activation>
|
|
|
|
<file>
|
|
|
|
<!-- This relies on basedir is only recognized by Maven 3.x (see MNG-2363) -->
|
|
|
|
<exists>${basedir}</exists>
|
|
|
|
</file>
|
|
|
|
</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>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-descriptor</id>
|
|
|
|
<goals>
|
|
|
|
<goal>attach-descriptor</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2011-08-30 22:31:20 +02:00
|
|
|
<plugin>
|
2011-09-15 16:40:16 +02:00
|
|
|
<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>
|
2011-08-30 22:31:20 +02:00
|
|
|
</plugin>
|
2011-06-27 15:08:59 +02:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
2011-06-10 18:46:32 +02:00
|
|
|
<build>
|
|
|
|
<sourceDirectory>src</sourceDirectory>
|
|
|
|
<testSourceDirectory>tests</testSourceDirectory>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
2011-06-27 15:08:59 +02:00
|
|
|
<version>${maven-site-plugin.version}.2</version>
|
2011-06-10 18:46:32 +02:00
|
|
|
<configuration>
|
|
|
|
<source>1.5</source>
|
|
|
|
<target>1.5</target>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2011-06-27 15:08:59 +02:00
|
|
|
<!-- Unit testing -->
|
2011-06-10 18:46:32 +02:00
|
|
|
<plugin>
|
2011-06-27 15:08:59 +02:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<version>${maven-surefire-plugin.version}</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>
|
2011-06-10 18:46:32 +02:00
|
|
|
</plugin>
|
2011-06-27 15:08:59 +02:00
|
|
|
<!-- 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>
|
2011-08-05 22:25:00 +02:00
|
|
|
<!-- Automatically downloads and renames Bouncy Castle to avoid conflicts on Android. -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
|
<version>1.4</version>
|
|
|
|
<executions>
|
2011-09-15 16:40:16 +02:00
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<filters>
|
|
|
|
<filter>
|
|
|
|
<!-- Remove the original signature meta information from all sources -->
|
|
|
|
<artifact>*:*</artifact>
|
|
|
|
<excludes>
|
|
|
|
<exclude>META-INF/*.SF</exclude>
|
|
|
|
<exclude>META-INF/*.DSA</exclude>
|
|
|
|
<exclude>META-INF/*.RSA</exclude>
|
|
|
|
</excludes>
|
|
|
|
</filter>
|
|
|
|
</filters>
|
|
|
|
<relocations>
|
|
|
|
<relocation>
|
|
|
|
<pattern>org.bouncycastle</pattern>
|
|
|
|
<shadedPattern>com.google.bitcoin.bouncycastle</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
</relocations>
|
|
|
|
<artifactSet>
|
|
|
|
<includes>
|
|
|
|
<include>org.bouncycastle</include>
|
|
|
|
</includes>
|
|
|
|
</artifactSet>
|
|
|
|
<minimizeJar>true</minimizeJar>
|
|
|
|
<!-- bitcoinj-<version>-android.jar contains the shaded Bouncy Castle libraries -->
|
|
|
|
<shadedArtifactAttached>true</shadedArtifactAttached>
|
|
|
|
<shadedClassifierName>android</shadedClassifierName>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2011-08-05 22:25:00 +02:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
2011-06-27 15:08:59 +02:00
|
|
|
<!-- Execute FindBugs during verify phase
|
|
|
|
Will fail the build if it finds a bug
|
|
|
|
Enable when ready -->
|
|
|
|
<!--<plugin>-->
|
2011-09-15 16:40:16 +02:00
|
|
|
<!--<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>-->
|
2011-06-27 15:08:59 +02:00
|
|
|
<!--</plugin>-->
|
2011-06-10 18:46:32 +02:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<version>4.8.2</version>
|
|
|
|
<type>jar</type>
|
2011-06-27 15:08:59 +02:00
|
|
|
<scope>test</scope>
|
2011-06-10 18:46:32 +02:00
|
|
|
</dependency>
|
2011-08-12 00:10:54 +02:00
|
|
|
<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>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2011-06-10 18:46:32 +02:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
<version>1.6.1</version>
|
|
|
|
<type>jar</type>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-simple</artifactId>
|
|
|
|
<version>1.6.1</version>
|
|
|
|
<type>jar</type>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
2011-09-15 16:40:16 +02:00
|
|
|
<!-- In Android these libraries are incomplete,
|
|
|
|
so use the dedicated artifact (bitcoinj-<version>-android.jar) -->
|
2011-08-05 22:25:00 +02:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.bouncycastle</groupId>
|
|
|
|
<artifactId>bcprov-jdk15</artifactId>
|
|
|
|
<version>1.46</version>
|
|
|
|
<type>jar</type>
|
|
|
|
<scope>compile</scope>
|
2011-09-15 16:40:16 +02:00
|
|
|
</dependency>
|
2011-06-10 18:46:32 +02:00
|
|
|
</dependencies>
|
2011-06-27 15:08:59 +02:00
|
|
|
<!-- 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>
|
2011-06-27 16:17:11 +02:00
|
|
|
<configuration>
|
2011-09-15 16:40:16 +02:00
|
|
|
<excludePackageNames>com.google.bitcoin.bouncycastle.*</excludePackageNames>
|
2011-06-27 16:17:11 +02:00
|
|
|
</configuration>
|
2011-06-27 15:08:59 +02:00
|
|
|
</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>
|
2011-06-27 16:17:11 +02:00
|
|
|
<excludes>
|
|
|
|
<exclude>com.google.bitcoin.bouncycastle.*</exclude>
|
|
|
|
</excludes>
|
2011-06-27 15:08:59 +02:00
|
|
|
</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>
|
|
|
|
</properties>
|
2011-06-10 18:46:32 +02:00
|
|
|
</project>
|