Running tests with Maven2

I'm using the new testing framework and i'm trying to run my tests from maven2. I have the surefire configure like so:

maven-surefire-plugin 2.8-SNAPSHOT idea.load.plugins false idea.home.path /opt/idea/ /home/hpalma/projectos/TapIDEA5 ]]>

After hitting lots of problem and getting pass them using plugin configurations and adding dependencies i've hit one that i can't find a solution for.
I get this error when i run the tests:

java.lang.IllegalArgumentException: Area class is not registered: IDEA_PROJECT
at com.intellij.openapi.extensions.Extensions.instantiateArea(
at com.intellij.openapi.project.impl.ProjectImpl.&init&(
at com.intellij.openapi.project.impl.ProjectManagerImpl.a(
at com.intellij.openapi.project.impl.ProjectManagerImpl.newProject(
at com.intellij.testFramework.fixtures.impl.HeavyIdeaTestFixtureImpl.setUpProject(
at com.intellij.testFramework.fixtures.impl.HeavyIdeaTestFixtureImpl.setUp(
at com.intellij.tapestry.util.TapestryUtilsTest.initPsiManager(

Any help would be great.....

Please sign in to leave a comment.