Skip to content

Tag: maven

Maven package works but Intellij’s build fails

I have a JDK 1.7 project with a maven dependency to a local jar in my maven repo. I’m unable to build the project using Intellij, with the errors that a symbol cannot be found (the symbol is a class importing packages from the local jar) But I can successfully build the project using ‘mvn package&…

Does Parameterized JUnit test correct with `mvn test`?

I’m just implemented a JUnit test case using JUnit 4.11 following the example: https://github.com/junit-team/junit/blob/master/doc/ReleaseNotes4.11.md#example-1 I create a maven project using And this test case: But when I test it using mvn test , maven said: How to make it work? Answer The problem is t…

SpringJUnit4ClassRunner class not found

i am trying to create a unit test using SpringJUnit4ClassRunner but everytime i execute the test it says it cannot find SpringJUnit4ClassRunner using mvn install. here is my code Here is my POM file: i am using springSource tool suit IDE to develop this spring mvc app and on the IDE it highlights SpringJUnit4…

Maven skip compile

I want to use Maven to execute a certain plug-in that only needs the source code but I do not want Maven to compile anything (mostly because the project just doesn’t compile). How do I tell Maven to skip the compile step and just launch its plug-in and then package the generated resources together in a …