Application expects grails version [1.1], but GRAILS_HOME is version [null]

[UPDATE] Problem solved !

I met this error while upgrading some mavenized project to Grails 1.1.

[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [grails:maven-test {execution: default}]
Running pre-compiled script
Application expects grails version [1.1], but GRAILS_HOME is version [null] - use the correct Grails version or run 'grails upgrade' if this Grails version is newer than the version your application expects.

Very strange, since…

… My PATH is correctly configured

G:\{aaa}>grails
Welcome to Grails 1.1 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: D:\dev\grails
No script name specified. Use 'grails help' for more info or 'grails interactive
' to enter interactive mode

… My GRAILS_HOME variable is OK

G:\{aaa}>echo %GRAILS_HOME%
D:\dev\grails

[UPDATE]  I also tried to unset the GRAILS_HOME environment variable ; but I’m still getting this error message.

… My grails-maven-plugin version appears also to be correct

<build>
  <pluginManagement />
  <plugins>
    <plugin>
      <groupId>org.grails</groupId>
      <artifactId>grails-maven-plugin</artifactId>
      <version>1.0</version>
      <extensions>true</extensions>
      […]

I still haven’t found the solution

[UPDATE] Now I have. My problem is solved.

- I deleted my “C:\Documents and Settings\A\.grails” folder

- I deleted my “G:\{aaa}\plugins\” folder.

- I re-ran “grails upgrade”, which seemed to work fine.

And I’m still stuck at :

Running pre-compiled script
Application expects grails version [1.1], but GRAILS_HOME is version [null] - use the correct Grails version or run 'grails upgrade' if this Grails version is newer than the version your application expects.

Anyone got a hint ?

(Note:  this error is detected in Init.groovy)

0 comments:

Post a Comment