Maven Repository - POM file for Testing hamcrest-library 1.2.1 1.2.1

Summary

Hamcrest library.

Hamcrest library of matcher implementations..

Declaration

Here is the list of declaration for hamcrest-library. If you use Maven you can use the following code to add the dependency for this POM file.

<dependency>
   <groupId>org.hamcrest</groupId>
   <artifactId>hamcrest-library</artifactId>
   <version>1.2.1</version>
</dependency>

If you think this Maven repository POM file listing for hamcrest-library is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

License

Name:New BSD License
URL: http://www.opensource.org/licenses/bsd-license.php.

Depends on

The hamcrest-library-1.2.1 has 1 dependencies.The most popular ones are listed in the following table along with their categories and number of artifacts depending on them.

CategoryArtifactDepended By Count
JUnitjunit 3.8.1
JUnit is a regression testing framework written by Erich Gamma and Kent Beck. It is used by the developer who implements unit tests in Java.
1966




Depended by

The following table lists the most popular artifacts which are depending on hamcrest-library-1.2.1. Their categories and depend by count are also listed.

CategoryArtifactDepended By Count
Springspring-hateoas 0.5.0.RELEASE
Library to support implementing representations for hyper-text driven REST web services.
5
Libraryoverthere 2.4.3
Remote file manipulation and process execution framework for Java
6
Asynchronousawaitility 1.3.4
A Java DSL for synchronizing asynchronous operations
10
Web Servicerest-assured 1.7
Java DSL for easy testing of REST services
6
Springspring-data-jpa 1.2.0.RELEASE
Spring Data module to provide sophisticated support for JPA repositories
6

Plugin

The following plugins are used in the hamcrest-library-1.2.1.jar

  1. build-helper-maven-plugin
  2. maven-compiler-plugin

Packages

The following packages are defined in the hamcrest-library-1.2.1.jar

org.hamcrest
org.hamcrest.beans
org.hamcrest.collection
org.hamcrest.number
org.hamcrest.object
org.hamcrest.text
org.hamcrest.xml




POM File Source

Here is the content of the POM file.

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

  <groupId>org.hamcrest</groupId>
  <artifactId>hamcrest-library</artifactId>
  <version>1.2.1</version>
  <packaging>jar</packaging>

  <name>Hamcrest library</name>
  <description>Hamcrest library of matcher implementations.</description>

  <url>http://code.google.com/p/hamcrest/</url>

  <licenses>
    <license>
      <name>New BSD License</name>
      <url>http://www.opensource.org/licenses/bsd-license.php</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  
  

  <scm>
    <url>http://code.google.com/p/hamcrest/source/browse/</url>
    <connection>http://hamcrest.googlecode.com/svn/trunk/hamcrest-library</connection>
  </scm>
  
  <properties>
    <hamcrest.version>1.2</hamcrest.version>
  </properties>

  <dependencies>
    <dependency>
      <groupId>org.hamcrest</groupId>
      <artifactId>hamcrest-core</artifactId>
      <version>${project.version}</version>
    </dependency>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>

    <resources>
      <resource>
        <directory>..</directory>
        <includes>
          <include>LICENSE.txt</include>
        </includes>
      </resource>
    </resources>

    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>1.5</version>
        <executions>
          <execution>
            <id>add-source</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>add-source</goal>
            </goals>
            <configuration>
              <sources>
                <source>target/generated-sources</source>
              </sources>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>generate-sources</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>

      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <version>1.2</version>
            <executions>
              <execution>
                <goals>
                  <goal>java</goal>
                </goals>
                <phase>process-classes</phase>
              </execution>
            </executions>
            <configuration>
              <includeProjectDependencies>true</includeProjectDependencies>
              <includePluginDependencies>true</includePluginDependencies>
              <mainClass>org.hamcrest.generator.config.XmlConfigurator</mainClass>
              <arguments>
                <argument>../matchers.xml</argument>
                <argument>../hamcrest-core/src/main/java,src/main/java</argument>
                <argument>org.hamcrest.Matchers</argument>
                <argument>target/generated-sources</argument>
              </arguments>
              <sourceRoot>target/generated-sources</sourceRoot>
            </configuration>
            <dependencies>
              <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest-generator</artifactId>
                <version>${hamcrest.version}</version>
              </dependency>
            </dependencies>
          </plugin>

          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <version>1.5</version>
            <executions>
              <execution>
                <id>initialize</id>
                <phase>initialize</phase>
                <configuration>
                  <target>
                    <mkdir dir="target/generated-sources" />
                  </target>
                </configuration>
                <goals>
                  <goal>run</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

</project>