@graemerocher
- Steps to reproduce
– Install grails 2.5.5 using sdkman
– run command
grails create-app
(or just start grails console using > grails
)
- Stacktrace
module not found: org.codehaus.groovy#groovy-all;2.4.4
==== grailsPlugins: tried
-- artifact org.codehaus.groovy#groovy-all;2.4.4!groovy-all.jar:
/Users/sudhir/work/9ci/lib/groovy-all-2.4.4.jar
==== grailsHome: tried
/Users/sudhir/.sdkman/candidates/grails/2.5.5/lib/org.codehaus.groovy/groovy-all/ivy-2.4.4.xml
-- artifact org.codehaus.groovy#groovy-all;2.4.4!groovy-all.jar:
/Users/sudhir/.sdkman/candidates/grails/2.5.5/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-2.4.4.jar
/Users/sudhir/.sdkman/candidates/grails/2.5.5/lib/org.codehaus.groovy/groovy-all/bundles/groovy-all-2.4.4.jar
==== grailsHome: tried
/Users/sudhir/.sdkman/candidates/grails/2.5.5/dist/groovy-all-2.4.4.pom
-- artifact org.codehaus.groovy#groovy-all;2.4.4!groovy-all.jar:
/Users/sudhir/.sdkman/candidates/grails/2.5.5/dist/groovy-all-2.4.4.jar
==== grailsHome: tried
/Users/sudhir/.grails/2.5.5/cached-installed-plugins/groovy-all-2.4.4.xml
-- artifact org.codehaus.groovy#groovy-all;2.4.4!groovy-all.jar:
/Users/sudhir/.grails/2.5.5/cached-installed-plugins/groovy-all-2.4.4.jar
==== grailsHome: tried
/Users/sudhir/.sdkman/candidates/grails/2.5.5/plugins/groovy-all-2.4.4.pom
-- artifact org.codehaus.groovy#groovy-all;2.4.4!groovy-all.jar:
/Users/sudhir/.sdkman/candidates/grails/2.5.5/plugins/groovy-all-2.4.4.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.codehaus.groovy#groovy-all;2.4.4: not found
::::::::::::::::::::::::::::::::::::::::::::::
| Error Resolve error obtaining dependencies: Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):
- org.codehaus.groovy:groovy-all:2.4.4
(Use --stacktrace to see the full trace)
:: problems summary ::
:::: WARNINGS
module not found: org.codehaus.groovy#groovy-all;2.4.4
==== grailsPlugins: tried
-- artifact org.codehaus.groovy#groovy-all;2.4.4!groovy-all.jar:
/Users/sudhir/work/9ci/lib/groovy-all-2.4.4.jar
==== grailsHome: tried
/Users/sudhir/.sdkman/candidates/grails/2.5.5/lib/org.codehaus.groovy/groovy-all/ivy-2.4.4.xml
-- artifact org.codehaus.groovy#groovy-all;2.4.4!groovy-all.jar:
/Users/sudhir/.sdkman/candidates/grails/2.5.5/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-2.4.4.jar
/Users/sudhir/.sdkman/candidates/grails/2.5.5/lib/org.codehaus.groovy/groovy-all/bundles/groovy-all-2.4.4.jar
==== grailsHome: tried
/Users/sudhir/.sdkman/candidates/grails/2.5.5/dist/groovy-all-2.4.4.pom
-- artifact org.codehaus.groovy#groovy-all;2.4.4!groovy-all.jar:
/Users/sudhir/.sdkman/candidates/grails/2.5.5/dist/groovy-all-2.4.4.jar
==== grailsHome: tried
/Users/sudhir/.grails/2.5.5/cached-installed-plugins/groovy-all-2.4.4.xml
-- artifact org.codehaus.groovy#groovy-all;2.4.4!groovy-all.jar:
/Users/sudhir/.grails/2.5.5/cached-installed-plugins/groovy-all-2.4.4.jar
==== grailsHome: tried
/Users/sudhir/.sdkman/candidates/grails/2.5.5/plugins/groovy-all-2.4.4.pom
-- artifact org.codehaus.groovy#groovy-all;2.4.4!groovy-all.jar:
/Users/sudhir/.sdkman/candidates/grails/2.5.5/plugins/groovy-all-2.4.4.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.codehaus.groovy#groovy-all;2.4.4: not found
::::::::::::::::::::::::::::::::::::::::::::::
| Error Resolve error obtaining dependencies: Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):
- org.codehaus.groovy:groovy-all:2.4.4
(Use --stacktrace to see the full trace)
:: problems summary ::
:::: WARNINGS
module not found: org.codehaus.groovy#groovy-all;2.4.4
==== grailsPlugins: tried
-- artifact org.codehaus.groovy#groovy-all;2.4.4!groovy-all.jar:
/Users/sudhir/work/9ci/lib/groovy-all-2.4.4.jar
==== grailsHome: tried
/Users/sudhir/.sdkman/candidates/grails/2.5.5/lib/org.codehaus.groovy/groovy-all/ivy-2.4.4.xml
-- artifact org.codehaus.groovy#groovy-all;2.4.4!groovy-all.jar:
/Users/sudhir/.sdkman/candidates/grails/2.5.5/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-2.4.4.jar
/Users/sudhir/.sdkman/candidates/grails/2.5.5/lib/org.codehaus.groovy/groovy-all/bundles/groovy-all-2.4.4.jar
==== grailsHome: tried
/Users/sudhir/.sdkman/candidates/grails/2.5.5/dist/groovy-all-2.4.4.pom
-- artifact org.codehaus.groovy#groovy-all;2.4.4!groovy-all.jar:
/Users/sudhir/.sdkman/candidates/grails/2.5.5/dist/groovy-all-2.4.4.jar
==== grailsHome: tried
/Users/sudhir/.grails/2.5.5/cached-installed-plugins/groovy-all-2.4.4.xml
-- artifact org.codehaus.groovy#groovy-all;2.4.4!groovy-all.jar:
/Users/sudhir/.grails/2.5.5/cached-installed-plugins/groovy-all-2.4.4.jar
==== grailsHome: tried
/Users/sudhir/.sdkman/candidates/grails/2.5.5/plugins/groovy-all-2.4.4.pom
-- artifact org.codehaus.groovy#groovy-all;2.4.4!groovy-all.jar:
/Users/sudhir/.sdkman/candidates/grails/2.5.5/plugins/groovy-all-2.4.4.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.codehaus.groovy#groovy-all;2.4.4: not found
::::::::::::::::::::::::::::::::::::::::::::::
| Error Resolve error obtaining dependencies: Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):
- org.codehaus.groovy:groovy-all:2.4.4
(Use --stacktrace to see the full trace)
| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):
- org.codehaus.groovy:groovy-all:2.4.4
- Operating System: OSX EI Capitan
- Grails Version: 2.5.5
- JDK Version: 1.7.0_79
Thanks for the release @graemerocher
As a workaround, you can define an environment variable specifying the Groovy version:
Third time’s the charm, and as soon as I posted this, it started working.
The below fixed it for a coworker and me, though the previous suggestion did not:
uninstall 2.5.5 with sdk or removing the candidate directory sdk install grails 2.5.4 sdk use grails 2.5.4 grails create-app x delete that application sdk install grails 2.5.5 sdk use grails 2.5.5 grails create-app x then works
+1 for 2.5.6 release. We shouldn’t have to dirty up our grails installation because of a bug.
Can we have it fixed plz and a 2.5.6 release… this is really painful to not to be able to create-app or plugins, or a hot fix or just a patch build…
Whts the use of 2.5.5 if devs cant create app/plugins without doing some hacks… and lots of ppl are facing this issue, there are questions on stackoverflow pointing to this ticket.
I’ve run into a similar problem installing grails 2.5.5 via sdkman.
Same errors as snimavat
Removing the directory or running sdk rm grails 2.5.5 and trying again doesn’t fix the problem.
rm -rf ~/.sdkman/candidates/grails/2.5.5/
repeat above same errorsrepeat above same errors
Everything works fine with grails 2.5.4.
I also have other versions of grails/groovy for other applications I work on.
Same OS/versions as snimavat: Operating System: OSX EI Capitan Grails Version: 2.5.5 JDK Version: 1.7.0_79
A coworker can reproduce with Yosemite.
Just tried, and works perfect, no idea what went wrong the first time…
Grails 2.5.5 uses Groovy 2.4.5. The errors above indicate that Grails is looking for Groovy 2.4.4. It looks like your environment somehow got confused.