Download Project Artifacts

Release Versions

All release versions of JPerf are available from the maven repository at: https://repo1.maven.org/maven2/net/jperf/jperf/

Maven Dependencies and Ant

If you are using JPerf in a project built with Maven, you will need to add the following entries to the dependencies section of your pom.xml file. Note that some dependencies are optional depending on the JPerf features used:

    <dependency>
        <groupId>net.jperf</groupId>
        <artifactId>jperf</artifactId>
        <version>1.0.3</version>
        <scope>compile</scope>
    </dependency>

    <!-- if you use the log4j implementation of JPerf, you must also include this dependency -->
    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.14</version>
        <scope>compile</scope>
    </dependency>

    <!-- if you use the commons logging implementation of JPerf, you must also include this dependency -->
    <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.0.3</version>
        <scope>compile</scope>
    </dependency>

    <!-- if you use the SLF4J implementation of JPerf, you must also include this dependency -->
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>1.5.6</version>
        <scope>compile</scope>
    </dependency>

    <!-- if you use also use logback as the SLF4J underlying impl, you must also include this dependency -->
    <dependency>
        <groupId>ch.qos.logback</groupId>
        <artifactId>logback-classic</artifactId>
        <version>0.9.15</version>
        <scope>compile</scope>
        <optional>true</optional>
    </dependency>

    <!-- if you use the AOP functionality of JPerf, you must also include these 2 dependencies -->
    <dependency>
        <groupId>org.aspectj</groupId>
        <artifactId>aspectjrt</artifactId>
        <version>1.6.1</version>
        <scope>runtime</scope>
    </dependency>

    <dependency>
        <groupId>commons-jexl</groupId>
        <artifactId>commons-jexl</artifactId>
        <version>1.1</version>
        <scope>runtime</scope>
    </dependency>

    <!-- if you use Spring to manage the AOP funcionality, you must also include these 2 dependencies -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring</artifactId>
        <version>2.0.6</version>
        <scope>runtime</scope>
    </dependency>

    <dependency>
        <groupId>cglib</groupId>
        <artifactId>cglib</artifactId>
        <version>2.1_3</version>
        <scope>runtime</scope>
    </dependency>

Alternatively, if you are building your project with Ant, you can use Maven's Ant tasks to pull the required dependencies for your build. Once you have installed the tasks, you can add the following lines to your build file:

    <!-- Maven's dependencies task pulls down the jar files to a local directory -->
    <artifact:dependencies pathId="jperf.classpath">
        <dependency groupId="net.jperf" artifactId="jperf" version="1.0.3" scope="compile"/>
        <!-- This dependency is only required if using log4j extensions in jperf -->
        <dependency groupId="log4j" artifactId="log4j" version="1.2.14" scope="compile"/>
        <!-- This dependency is only required if using commons logging extensions in jperf -->
        <dependency groupId="commons-logging" artifactId="commons-logging" version="1.0.3" scope="compile"/>
        <!-- This dependency is only required if using slf4j extensions in jperf -->
        <dependency groupId="org.slf4j" artifactId="slf4j-api" version="1.5.6" scope="compile"/>
        <!-- This dependency is only required if using logback extensions in jperf -->
        <dependency groupId="ch.qos.logback" artifactId="logback-classic" version="0.9.15" scope="compile"/>
        <!-- These 2 dependencies only required if using AOP functionality in jperf -->
        <dependency groupId="org.aspectj" artifactId="aspectjrt" version="1.6.1" scope="runtime"/>
        <dependency groupId="commons-jexl" artifactId="commons-jexl" version="1.1" scope="runtime"/>
        <!-- These 2 dependencies only required if using Spring to manage AOP -->
        <dependency groupId="org.springframework" artifactId="spring" version="2.0.6" scope="runtime"/>
        <dependency groupId="cglib" artifactId="cglib" version="2.1_3" scope="runtime"/>

        <!-- Declare the remote repositories from where dependencies are pulled -->
        <remoteRepository url="http://repository.codehaus.org/"/>
        <remoteRepository url="http://repo1.maven.org/maven2/"/>
    </artifact:dependencies>