grails/grails-maven

maven clean install goal failed

vijaykamal opened this issue · 1 comments

Environment:

 Grails 2.3.0, Maven 3.0.5, Windows 7, Command Line

Problem:

mvn clean install command fails. with the following error.

.....
|Environment set to test
|Compiling 10 source files
|Compiling 128 source files
|Running without daemon...
Log4j was not found on the classpath and will not be used for command line logging. Cause java.lang.NullPointerException: Cannot get property 'absolutePath' on null object
Error running forked test-app: org/slf4j/LoggerFactory (Use --stacktrace to see
the full trace)
Error | Forked Grails VM exited with error
[INFO] BUILD FAILURE

Steps to reproduce

 1. Open Command Prompt
 2. grails create-app testmaven
 3. cd testmaven
 4. grails create-pom com.example
 5. mvn clean install

and the build fails with the above mentioned error.

Note:

  Build Succeeds only when -DskipTests is set to true.
  mvn clean install -DskipTests=true  


  Thanks for releasing the grails-maven plugin 2.3.0.

Disabling forked mode in Buildconfig.groovy solved the issue.