Hi (To Geoffrey Wiseman)

You are correct it is using junit 3.8.1 jar, I'm not sure how to change this to 4.4. Would it be possible to get some advice on how to do this?


Cheers
Amin


On 24 Jan 2009, at 15:51, Amin Mohammed-Coleman wrote:

Hi

I have the following pom.xm file:

<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 ">
        <developers>
                <developer>
                        <email>ami...@gmail.com</email>
                        <name>Amin Mohammed-Coleman</name>
                        <roles>
                                <role>Software Engineer </role>
                        </roles>
                </developer>
        </developers>
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.amin</groupId>
        <artifactId>app.lucene</artifactId>
        <packaging>jar</packaging>
        <version>1.0-SNAPSHOT</version>
        <name>app.lucene</name>
        <url>http://maven.apache.org</url>
        <dependencies>

        ....
        </dependencies>
        <build>
                <finalName>app.lucene</finalName>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                                <configuration>
                                        <source>1.6</source>
                                        <target>1.6</target>
                                </configuration>
                        </plugin> 
                </plugins>
        </build>
</project>


I have junit 4 tests which all run correctly in eclipse. However when I try to run the tests in maven (mvn test) I get nullpointerexceptions (due to classes not being instantiated properly.

Any help would be appreciated.


Cheers
Amin

Reply via email to