Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

BTM artifacts and POM are published in the Maven 2 central repository since version 1.2.

Contents

Table of Contents
maxLevel3
minLevel2

Prerequisites

You obviously need to have Maven 2 installed. It is also recommended that you to know about it before trying to use these instructions. Please refer to the Maven documentation for any question you may have on the subject.

...

You just have to add a dependency to your own project's POM to use it:

Code Block

<dependency>
  <groupId>org.codehaus.btm</groupId>
  <artifactId>btm</artifactId>
  <version>2.1.2<3</version>
</dependency>

You also need to choose which logging framework BTM should send its logs to. This is done by adding another dependency in your POM. For instance, if you want to use JDK 1.4 logging, you should include this:

Code Block

<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-jdk14</artifactId>
    <version>1.6.1<4</version>
    <scope>runtime</scope>
</dependency>

If you prefer Log4J 1.2, add this instead:

Code Block

<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-log4j12</artifactId>
    <version>1.6.1<4</version>
    <scope>runtime</scope>
</dependency>

...

You just have to add a dependency to your own project's POM to use it:

Code Block

<dependency>
  <groupId>org.codehaus.btm</groupId>
  <artifactId>btm</artifactId>
  <version>2.1.34-SNAPSHOT</version>
</dependency>

You will have to configure a remote repository entry to be able to download artifacts from this location:

Code Block

<repository>
    <id>codehaus-snapshots</id>
    <url>https://nexus.codehaus.org/content/repositories/snapshots</url>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
</repository>

...