Installation

Download (if you are not using Maven 2)

You have to download the latest version of ejb3unit. Please refer here to download.

There are to different kinds of versions:

Download by Maven (Projects using Maven 2)

If you are using Maven 2 to build your application maven will manage all your download for you.

  • Add ejb3unit to your pom.xml
       <dependencies>
            ...
            <dependency>
                 <groupId>com.bm</groupId>
                 <artifactId>ejb3unit</artifactId>
                 <scope>test</scope>
            </dependency> 
            ...
       </dependencies>
  • Add the ejb3unit repository to your settings.xml or your pom.xml
    <profiles>
       <profile>
            <activation>
            <activeByDefault>true</activeByDefault>
            </activation>
            
            <repositories>
    
                    <repository>
                            <snapshots>
                                    <enabled>false</enabled>
                            </snapshots>
                            <id>ejb3unit</id>
                            <name>ejb3unit repository</name>
                            <url>http://ejb3unit.sourceforge.net/maven2</url>
                    </repository>
            </repositories>
       </profile>
    </profiles>