Francis Ting
Francis Ting

Reputation: 791

Error occurred running Grails CLI: No profile found for name [web]. (Use --stacktrace to see the full trace)

I am getting this error while trying to import a grails 3.3.2 project into intellij. I have searched online solutions and not found anything helpful.

Upvotes: 19

Views: 8902

Answers (6)

EpicVoyage
EpicVoyage

Reputation: 754

One potential cause is a mismatch of your defined profiles:

build.groovy: profile "org.grails.profiles:angular"

application.yml: grails.profile: web

Make sure these agree with each other.

Upvotes: 0

Md. Sumon Sarder
Md. Sumon Sarder

Reputation: 73

Just delete the build folder and rebuild the project.

enter image description here

Upvotes: 5

Champ
Champ

Reputation: 1351

As per below thread, I deleted the "build/.dependencies" file and it worked after resolving the dependencies again.

https://github.com/grails/grails-core/issues/10898

Upvotes: 6

hadi soleimani
hadi soleimani

Reputation: 180

for me just delete the build folder and rebuild the project and it worked

Upvotes: 7

Abi Chhetri
Abi Chhetri

Reputation: 1447

export GRAILS_OPTS="-XX:-UseSplitVerifier -Xverify:none"

Upvotes: 0

Francis Ting
Francis Ting

Reputation: 791

I found a solution to this question on this thread. Solution is just to delete the build folder and rebuild the project

Upvotes: 39

Related Questions