httpunit
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.kohsuke.httpunit</groupId> <artifactId>httpunit</artifactId> <version>1.7-patch-2</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- $Id: pom.xml 982 2008-05-20 19:47:44Z russgold $ This file is a contribution by Matt Smith as of 2008-05-14: I have created and attached a POM for building httpunit using Maven2. It also runs FindBugs and cobertura, a code coverage tool, as well. It uses the current project structure. It excludes the following tests: EventAwareTestCase WebClientTest WebPageTest Also, if you run out of memory on the FindBugs, try upping the memory thusly export MAVEN_OPTS=-Xmx384M --> <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.kohsuke.httpunit</groupId> <artifactId>httpunit</artifactId> <version>1.7-patch-2</version> <description>A library for testing websites programmatically</description> <build> <sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory> <testResources> <testResource> <directory>META-INF</directory> </testResource> </testResources> <resources> <resource> <directory>META-INF</directory> </resource> </resources> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <phase>package</phase> <goals> <goal>jar</goal> <goal>test-jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.0</version> <executions> <execution> <id>add-source</id> <phase>generate-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>src-1.4</source> </sources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkMode>never</forkMode> <!-- Assertions diasabled due to a bug in xmlbeans https://issues.apache.org/jira/browse/XMLBEANS-317 --> <enableAssertions>false</enableAssertions> <excludes> <exclude>**/TestSuite$1.class</exclude> <exclude>**/EventAwareTestCase.class</exclude> <exclude>**/WebClientTest.class</exclude> <exclude>**/WebPageTest.class</exclude> <exclude>**/Abstract*Test.class</exclude> </excludes> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <dependencies> <dependency> <groupId>org.apache.maven.scm</groupId> <artifactId>maven-scm-provider-gitexe</artifactId> <version>1.1</version> </dependency> </dependencies> </plugin> </plugins> <extensions> <extension> <groupId>org.jvnet.wagon-svn</groupId> <artifactId>wagon-svn</artifactId> <version>1.9</version> </extension> </extensions> </build> <scm> <connection>scm:git:git://github.com/kohsuke/httpunit.git</connection> </scm> <reporting> <plugins> <plugin> <artifactId>maven-javadoc-plugin</artifactId> </plugin> <plugin> <artifactId>maven-surefire-report-plugin</artifactId> <configuration> <additionalClasspathElements> <additionalClasspathElement> META-INF </additionalClasspathElement> </additionalClasspathElements> </configuration> </plugin> <plugin> <artifactId>maven-jxr-plugin</artifactId> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <configuration> <threshold>Normal</threshold> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> </plugin> </plugins> </reporting> <dependencies> <dependency> <groupId>rhino</groupId> <artifactId>js</artifactId> <version>1.6R5</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> </dependency> <dependency> <groupId>nekohtml</groupId> <artifactId>nekohtml</artifactId> <version>0.9.5</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.4</version> </dependency> <dependency> <groupId>jtidy</groupId> <artifactId>jtidy</artifactId> <version>4aug2000r7-dev</version> </dependency> <dependency> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> <version>2.6.1</version> </dependency> <dependency> <groupId>xerces</groupId> <artifactId>xmlParserAPIs</artifactId> <version>2.6.1</version> </dependency> <dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> <version>1.4</version> <scope>test</scope> </dependency> </dependencies> <distributionManagement> <repository> <id>java.net</id> <uniqueVersion>false</uniqueVersion> <url>java-net:/maven2-repository/trunk/repository/</url> </repository> </distributionManagement> </project>