Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/grails/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Grails 错误:无法读取xalan的项目描述符_Grails_Xalan - Fatal编程技术网

Grails 错误:无法读取xalan的项目描述符

Grails 错误:无法读取xalan的项目描述符,grails,xalan,Grails,Xalan,在命令提示符下使用“grails create domain class Employee”命令创建域类时,我收到一个错误“读取xalan:serializer:jar 2.7.1的工件描述符失败”。我当前使用的是grails 2.3.7。 请帮我解决我的错误 提前感谢您可以在BuildConfig.groovy dependencies { provided('xalan:xalan:2.7.1') } 看看它是否会对您有所帮助!…解决项目所需的依赖关系似乎是一个问题 在BuildCo

在命令提示符下使用“grails create domain class Employee”命令创建域类时,我收到一个错误“读取xalan:serializer:jar 2.7.1的工件描述符失败”。我当前使用的是grails 2.3.7。 请帮我解决我的错误


提前感谢

您可以在
BuildConfig.groovy

dependencies {  
 provided('xalan:xalan:2.7.1')
}

看看它是否会对您有所帮助!…

解决项目所需的依赖关系似乎是一个问题

在BuildConfig.groovy中,如果您有一个包含依赖项的存储库,请按如下方式引用它:

repositories {
    inherits true // Whether to inherit repository definitions from plugins

    mavenRepo "http://example.:8081/this/that/other/public/"
}
或者,尝试将依赖项解析器更改为ivy而不是maven。我认为这会使grails尝试从自己的库中获取依赖项……我可能大错特错

grails.project.dependency.resolver = "ivy" 
试试这个:

repositories {
    inherits true // Whether to inherit repository definitions from plugins

    grailsPlugins()
    grailsHome()
    mavenLocal()
    grailsCentral()
    mavenCentral()

    mavenRepo "https://repo1.maven.org/maven2/"
    
}

非常适合我。

将其更改为常春藤解析器为我修复了它,这不是未来的推荐选项,但这应该是上述问题的正确答案。效果非常好。