Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven surfire plugin ignores the POM cofiguration Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Maven surfire plugin ignores the POM cofiguration" Watch "Maven surfire plugin ignores the POM cofiguration" New topic
Author

Maven surfire plugin ignores the POM cofiguration

Jonny Andersson
Ranch Hand

Joined: Sep 07, 2004
Posts: 85
When Maven execute my test cases that use OpenJPA do I get an exception

That exception is solved if I add this JVM-option

which I have added to the run configuration in eclipse which then executes all my test cases sucessfully. To have them executed successfully of Maven also have I tried to add that JVM-option to the surfire plugin that executes the test cases with this configuration in the POM:

But it seems that the surfire plugin just ignores the configuration. I can't find any reason to why this should not work. Have I made anything wrong och could I configure this in another way?


Effective Java Programming Language Guide: Think in terms of exported APIs because it tends to improve the quality of the software you write
Jonny Andersson
Ranch Hand

Joined: Sep 07, 2004
Posts: 85
I just found that the commandis a workaround to this problem but it would be a lot better if this JVM option could be configured in the POM instead
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3268

Run maven with debug logging on and see what that line gets translated to, you might need to escape the backslashes for example


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Maven surfire plugin ignores the POM cofiguration
 
Similar Threads
Maven Error - Package does not exist, Symbols not recognised
Javassist with Maven
java.lang.NoSuchMethodError: HandlerMethodResolver
rich:tree working now... all the work has finally paid off - THANKS
OutOfMemoryError while executing JUnit Test cases with maven install