20 May 2014

How to solve error : grailsCentral: bad organisation found in http://grails.org/plugins/grails-twitter-bootstrap/tags/RELEASE_3_1_1/twitter-bootstrap-3.1.1.pom: expected='' found='org.grails.plugins' ?

Solution for Netbeans 8.x , Grails 2.2.1 and Bootstramp 3.1.x  (it very likely works with other versions and other IDEs)

STORY:

So you start your journey with Grails and you want use Bootstramp ..so you follow instruction from Grails and copy source from this page http://grails.org/plugin/twitter-bootstrap  to BuildConfig.groovy in confings:

Dependency :
compile ":twitter-bootstrap:3.1.1"


plugins {
…
    runtime ':twitter-bootstrap:3.1.1'
…
}

and when you try run it , you see this:

grailsCentral: bad organisation found in http://grails.org/plugins/grails-twitter-bootstrap/tags/RELEASE_3_1_1/twitter-bootstrap-3.1.1.pom: expected='' found='org.grails.plugins' 

Question is .. How to solve this terrifying  error ?

SOLUTION:
Simply add org.grails.plugins  to twitter-bootstrap:3.1.1 and run again
source missing  organisation (package name by convention should starts from www or company name like org.ovh.pastor.xxx and etc.) information for dependency and runtime

compile "org.grails.plugins:twitter-bootstrap:3.1.1"
runtime 'org.grails.plugins:twitter-bootstrap:3.1.1'

No comments:

Post a Comment