Friday, March 30, 2018

Grails Cannot Build Ellucian SSB Application

Applies to Banner 9 and Grails 2.5


After cloning a Banner 9 SSB app and adding the plugins, it will not compile! The underlying problem is that in some cases Grails looses the core repository when it is trying to install some dependencies. These are examples of messages that may indicate this problem:

| Error An error occurred installing the plugin [markdown-1.0.0.RC1]: Unable to delete file C:\Users\Administrator\.grails\2.5.0\projects\SelfServiceBannerGeneralEventManagement\plugins\markdown-1.0.0.RC1\lib\remark-0.9.3.jar

| Error Error executing plugin selenium-0.8 script: C:\Users\Administrator\.grails\2.5.0\projects\SelfServiceBannerGeneralEventManagement\plugins\selenium-0.8\scripts\_Install.groovy

| Error There was an error loading the BuildConfig: No signature of method: org.codehaus.groovy.grails.resolve.maven.aether.config.RepositoriesConfiguration.magenRepo() is applicable for argument types: (java.lang.String) values: [http://repo.grails.org/grails/plugins] Possible solutions: mavenRepo(java.lang.String), mavenRepo(java.util.Map), mavenRepo(java.lang.String, groovy.lang.Closure), mavenRepo(java.util.Map, groovy.lang.Closure), grailsRepo(java.lang.String) (Use --stacktrace to see the full trace)

| Error Error executing plugin selenium-0.8 script: C:\Users\Administrator\.grails\2.5.0\projects\SelfServiceBannerGeneralEventManagement\plugins\selenium-0.8\scripts\_Install.groovy


The solution is easy; the core or plugin repository may be missing and simply need to be added to grails_app/conf/BuildConfig.groovy, highlighted below:

grails.project.dependency.resolution = {
    inherits "global" // inherit Grails' default dependencies
    log      "warn"   // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'

 legacyResolve true
    repositories {
        if (System.properties['PROXY_SERVER_NAME']) {
            mavenRepo "${System.properties['PROXY_SERVER_NAME']}"
        }
  grailsCentral()
  mavenCentral()
  mavenRepo "http://repo.grails.org/grails/core"
  mavenRepo "http://repo.grails.org/grails/plugins"
  mavenRepo "http://repository.jboss.org/maven2/"'

No comments:

Post a Comment