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>[email protected]</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