mvn grails:run-app is'nt work
vladimirfx opened this issue · 1 comments
I've tried to use maven plugin 2.0.0.BUILD-SNAPSHOT for running Grails 2.0 project. After resolving some issues with plugin itself I've run application with mvn grails:run-app command and see that errors:
....
INFO] --- grails-maven-plugin:2.0.0.BUILD-SNAPSHOT:run-app (default-cli) @ maven-grails ---
[INFO] Using Grails 2.0.0
[INFO] Using Grails 2.0.0
| Configuring classpath
| Error log4j:WARN No appenders could be found for logger (org.springframework.core.io.support.PathMatchingResourcePatternResolver).
| Error log4j:WARN Please initialize the log4j system properly.
| Error log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
| Compiling 38 source files
| Running Grails application
| Error 2011-12-23 08:59:13,408 [Thread-6] ERROR context.ContextLoader - Context initialization failed
Message: org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setEnvironment(Lorg/springframework/core/env/Environment;)V
Line | Method
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 619 | run . . in java.lang.Thread
....
Looks like old Spring jars on classpath. But in maven deps there is no spring deps with version not 3.1.RELEASE.
In the same time mvn grails:run-war works fine. But how to effectively developing without run-app ?
Works fine now, as of 2.1.x