question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gemfile error when running app.groovy with Spring Boot CLI

See original GitHub issue

In the “JAR support and Groovy support” section after installing the Spring Boot CLI with Homebrew on Mac OS X Mavericks I get a “no Gemfile present” error when running app.groovy with the “spring run app.groovy” command.

The error I get is:

groovy(master) > spring run app.groovy /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/configuration.rb:46:in find_project_root': Spring was unable to locate the root of your project. There was no Gemfile present in the current directory (/Users/kent/git/public/spring-projects/koj-gs-spring-boot/src/main/groovy) or any of the parent directories. (Spring::UnknownProject) from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/configuration.rb:48:infind_project_root’ from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/configuration.rb:48:in find_project_root' from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/configuration.rb:48:infind_project_root’ from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/configuration.rb:48:in find_project_root' from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/configuration.rb:48:infind_project_root’ from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/configuration.rb:48:in find_project_root' from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/configuration.rb:48:infind_project_root’ from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/configuration.rb:48:in find_project_root' from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/configuration.rb:48:infind_project_root’ from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/configuration.rb:37:in project_root_path' from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/env.rb:27:inproject_root’ from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/env.rb:41:in application_id' from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/env.rb:53:inpidfile_path’ from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/env.rb:68:in server_running?' from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/client/run.rb:24:incall’ from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/client/command.rb:7:in call' from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/client.rb:26:inrun’ from /Users/kent/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/spring-1.1.3/bin/spring:48:in <top (required)>' from /Users/kent/.rbenv/versions/2.1.2/bin/spring:23:inload’ from /Users/kent/.rbenv/versions/2.1.2/bin/spring:23:in `<main>’

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

19reactions
dsmithcocommented, Jun 15, 2017

Don’t need to uninstall anything…

cd /usr/local/bin
sudo ln -sf ../Cellar/springboot/*.RELEASE/bin/spring ./springboot

Then just call springboot init or whatever

3reactions
mhewedycommented, Feb 4, 2016

As mentioned by @dsyer , here’s steps to execute on your shell (on mac)

gem uninstall spring
cd /usr/local/bin
sudo ln -sf ../Cellar/springboot/*.RELEASE/bin/spring . 

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot start groovy application with spring cli command
Launcher.launch(Launcher.java:50) at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) Caused by: org.eclipse.aether.
Read more >
Tips for Java Developers | VMware Tanzu Docs
Spring Boot CLI. Spring Boot can run apps comprised entirely of POGOs. To deploy them, run: spring grab *.groovy cf push YOUR-APP.
Read more >
59. Using the CLI - Spring
59.1 Running applications using the CLI. You can compile and run Groovy source code using the run command. The Spring Boot CLI is...
Read more >
App Manifest Attribute Reference | Cloud Foundry Docs
In manifests where multiple apps share settings or services, you may see duplicated content. While the manifests still work, duplication ...
Read more >
Dependency Scanning - GitLab Docs
This error occurs when the Docker version that runs the dependency scanning job is 19.03.0 . Consider updating to Docker 19.03.1 or greater....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found