Maven Repository - POM file for Web Framework truth 0.23 0.23

Summary

Relocates org.truth0:truth to com.google.truth:truth. See http://maven.apache.org/guides/mini/guide-relocation.html.

Declaration

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

<dependency>
   <groupId>org.truth0</groupId>
   <artifactId>truth</artifactId>
   <version>0.23</version>
</dependency>

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

Depends on

The truth-0.23 has 6 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
Java Libraryguava 17.0
Guava is a suite of core and expanded libraries that include utility classes, google's collections, io classes, and much much more. Guava has only one code dependency - javax.annotation, per the JSR-305 spec.
149
Testing Coding Stylejsr305 2.0.1
JSR305 Annotations for Findbugs
166
JUnitjunit 4.10
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.
1957




Plugin

The following plugins are used in the truth-0.23.jar

  1. cobertura-maven-plugin
  2. findbugs-maven-plugin
  3. gwt-maven-plugin
  4. maven-checkstyle-plugin
  5. maven-compiler-plugin
  6. maven-jar-plugin
  7. maven-javadoc-plugin
  8. maven-pmd-plugin
  9. maven-project-info-reports-plugin
  10. maven-source-plugin
  11. maven-surefire-plugin




Packages

The following packages are defined in the truth-0.23.jar

com.google.common.truth
com.google.common.truth.codegen
org.truth0
org.truth0.subjects

POM File Source

Here is the content of the POM file.

<?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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.truth0</groupId>
    <artifactId>truth-parent</artifactId>
    <version>0.23</version>
  </parent>
  <artifactId>truth</artifactId>
  <description>
    Relocates org.truth0:truth to com.google.truth:truth.
    See http://maven.apache.org/guides/mini/guide-relocation.html
  </description>
  <distributionManagement>
    <relocation>
      <groupId>com.google.truth</groupId>
      <!-- 2 space indentation below to not bork maven's presentation of the message. -->
      <message>
  #################################################################################################
  #
  #  The Truth project has moved to the com.google.truth groupId.
  #
  #  Your project has a dependency on
  #        ${project.groupId}:${project.artifactId}:${project.version}
  #  and this relocation is redirecting it to
  #        com.google.truth:${project.artifactId}:${project.version}
  #
  #  Please update your dependencies and use the newer artifacts.
  #
  #  Use mvn dependency:tree to find out how dependencies are resolved.
  #
  #################################################################################################
      </message>
    </relocation>
  </distributionManagement>
  <properties>
    <javadoc.param></javadoc.param>
    <gwt.version>2.6.1</gwt.version>
  </properties>
  <dependencies>
    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
      <version>17.0</version>
    </dependency>
    <dependency>
      <groupId>com.google.code.findbugs</groupId>
      <artifactId>jsr305</artifactId>
      <version>2.0.1</version>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.10</version>
    </dependency>
    <!-- Required only to build the -gwt sub-artifact. -->
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-user</artifactId>
      <version>${gwt.version}</version>
      <type>jar</type>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.google.auto.value</groupId>
      <artifactId>auto-value</artifactId>
      <version>1.0-rc1</version>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava-gwt</artifactId>
      <version>17.0</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <resources>
      <resource>
        <directory>src/main/java</directory>
        <excludes>
          <exclude>**/*.java</exclude>
          <exclude>**/*.gwt.xml</exclude>          
        </excludes>
      </resource>
    </resources>
    <testResources>
      <testResource><directory>src/test/java</directory></testResource>
    </testResources>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
          <excludes>
            <exclude>**/gwtemul/**/*.java</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-docs</id>
            <phase>post-integration-test</phase>
            <goals><goal>jar</goal></goals>
            <configuration>
                <additionalparam>${javadoc.param}</additionalparam>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <phase>post-integration-test</phase>
            <goals><goal>jar-no-fork</goal></goals>
            <configuration>
              <excludes>
                <exclude>**/gwtemul/**</exclude>
                <exclude>**/*.gwt.xml</exclude>
              </excludes>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <!-- TODO(cgruber): Replace this with Gwt annotation processing plugin. -->
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-gwt-sources</id>
            <phase>post-integration-test</phase>
            <goals><goal>jar</goal></goals>
            <configuration>
              <classifier>gwt</classifier>
              <classesDirectory>src/main/java</classesDirectory>
              <includes>
                <include>**/*.java</include>
                <include>**/*.gwt.xml</include>
              </includes>
              <excludes>
                <exclude>org/truth0/codegen/**</exclude>
                <exclude>org/truth0/subjects/ClassSubject.java</exclude>
                <exclude>org/truth0/util/ReflectionUtil.java</exclude>
                <exclude>org/truth0/IteratingVerb.java</exclude>
                <exclude>org/truth0/Expect.java</exclude>
              </excludes>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <excludes>
            <exclude>**/*GwtTest.java</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>${gwt.version}</version>
        <executions>
          <execution>
            <id>gwt-test</id>
            <goals><goal>test</goal></goals>
            <configuration>
              <mode>htmlunit</mode>
              <productionMode>true</productionMode>
              <userAgents>gecko1_8</userAgents>
              <includes>**/*GwtTest.java</includes>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>2.0.1</version>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <version>2.5.2</version>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.5.1</version>
        <configuration>
          <formats>
            <format>html</format>
            <format>xml</format>
          </formats>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>2.9.1</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-pmd-plugin</artifactId>
        <version>2.7.1</version>
        <configuration>
          <linkXref>true</linkXref>
          <sourceEncoding>utf-8</sourceEncoding>
          <targetJdk>1.6</targetJdk>
        </configuration>        
      </plugin>
    </plugins>
  </reporting>
  <profiles>
  <profile>
    <id>java8</id>
    <activation>
      <jdk>[1.8,1.8)</jdk>
    </activation>
    <properties>
      <javadoc.param>-Xdoclint:none</javadoc.param>
    </properties>
  </profile>
</profiles>
</project>