POM文件内容: |
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
| This POM builds hamcrest library.
|
| There are some key informations to know about the generated classes:
| Upon building a class named "Matchers" will be generated. This will take place after compiling all classes.
| So be sure to call "mvn process-classes compile", not only "mvn compile".
| "mvn clean package" will result in a package without the generated class.
| Instead call "mvn clean process-classes package".
|
| Some notes for installing, releasing, deploying:
| Be sure to generate source and javadoc jars AFTER packaging to contain the generated class.
| Call "mvn clean process-classes package source:jar javadoc:jar".
| To generate a bundle call "mvn clean process-classes package source:jar javadoc:jar gpg:sign repository:bundle-create"
+-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-parent</artifactId>
<version>1.3.RC2</version>
<relativePath>..</relativePath>
</parent>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<name>Hamcrest library</name>
<description>Hamcrest library of matcher implementations.</description>
<url>http://code.google.com/p/hamcrest/</url>
<scm>
<url>http://code.google.com/p/hamcrest/source/browse/</url>
<connection>scm:svn:http://hamcrest.googlecode.com/svn/trunk/hamcrest-java/hamcrest-library</connection>
</scm>
<properties>
<generator.config>${basedir}/../matchers.xml</generator.config>
<generated.class>org.hamcrest.Matchers</generated.class>
</properties>
<dependencies>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</dependency>
</dependencies>
<profiles>
<profile>
<id>generate-sources</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
|