【问题标题】:Grails - DataTables plugin doesn't exist any longer?Grails - DataTables 插件不再存在?
【发布时间】:2020-08-04 10:16:13
【问题描述】:

我尝试添加 --compile "org.grails.plugins:grails-datatables:0.14"-- 还有 --compile "org.grails.plugins:grails-datatables:0.15" 但没有找到。

我想将它与 GRAILS-4.0.3 一起使用,但似乎不可能,它是否已被 grails 遗弃?

好的,我用新的 URL:s 进行了测试。不知道我是否做得正确,但失败了。

Error initializing classpath: Could not find org.grails.plugins:grails-datatables:0.15.Searched in the following locations:
file:/C:/Users/Lars/.m2/repository/org/grails/plugins/grails-datatables/0.15/grails-datatables-0.15.pom

file:/C:/Users/Lars/.m2/repository/org/grails/plugins/grails-datatables/0.15/grails-datatables-0.15.jar
https://repo.grails.org/grails/core/org/grails/plugins/grails-datatables/0.15/grails-datatables-0.15.pom
https://repo.grails.org/grails/core/org/grails/plugins/grails-datatables/0.15/grails-datatables-0.15.jar
https://repo.grails.org/grails/plugin-releases-local/org/grails/plugins/grails-datatables/0.15/grails-datatables-0.15.pom
https://repo.grails.org/grails/plugin-releases-local/org/grails/plugins/grails-datatables/0.15/grails-datatables-0.15.jar

看起来我做对了,但在给定的 URL 上没有找到它。

build.gradle 一开始是这样的:

buildscript {
    repositories {
        mavenLocal()
        maven { url "https://repo.grails.org/grails/core" }
    }
    dependencies {
        classpath "org.grails:grails-gradle-plugin:$grailsVersion"
        classpath "org.grails.plugins:hibernate5:${gormVersion-".RELEASE"}"
        classpath "com.bertramlabs.plugins:asset-pipeline-gradle:2.14.2"
    }
}

version "0.1"
group "test"

apply plugin:"eclipse"
apply plugin:"idea"
apply plugin:"war"
apply plugin:"org.grails.grails-web"
apply plugin:"asset-pipeline"
apply plugin:"org.grails.grails-gsp"

repositories {
    mavenLocal()
    maven { url "https://repo.grails.org/grails/core" }
    maven { url "https://repo.grails.org/grails/plugin-releases-local" }
}

dependencies {
    compile "org.springframework.boot:spring-boot-starter-logging"
    compile "org.springframework.boot:spring-boot-autoconfigure"
    compile "org.grails:grails-core"
    compile "org.springframework.boot:spring-boot-starter-actuator"
    compile "org.springframework.boot:spring-boot-starter-tomcat"
    compile "org.grails:grails-web-boot"
    compile "org.grails:grails-logging"
    compile "org.grails:grails-plugin-rest"
    compile "org.grails:grails-plugin-databinding"
    compile "org.grails:grails-plugin-i18n"
    compile "org.grails:grails-plugin-services"
    compile "org.grails:grails-plugin-url-mappings"
    compile "org.grails:grails-plugin-interceptors"
    compile "org.grails.plugins:cache"
    compile "org.grails.plugins:async"
    compile "org.grails.plugins:scaffolding"
    compile "org.grails.plugins:events"
    compile "org.grails.plugins:hibernate5"
    compile "org.hibernate:hibernate-core:5.1.5.Final"
    compile "org.grails.plugins:gsp"
    compile 'org.grails.plugins:quartz:2.0.12'
    console "org.grails:grails-console"
    compile "org.grails.plugins:grails-datatables:0.15"

Gradle.properties 看起来像这样:

grailsVersion=3.3.0
gormVersion=6.1.6.RELEASE
gradleWrapperVersion=3.5

但是在这个链接上:https://mvnrepository.com/artifact/org.grails.plugins/grails-datatables/0.15

我找到了一个有效的存储库:

Note: this artifact is located at Grails Plugins repository (https://repo.grails.org/grails/plugins/) 

【问题讨论】:

    标签: grails plugins datatables


    【解决方案1】:

    我尝试添加--compile "org.grails.plugins:grails-datatables:0.14"-- 还有 --compile "org.grails.plugins:grails-datatables:0.15" 但是 没有找到。

    您尚未指明您尝试从哪些存储库中解析这些存储库,但这些存储库可用:

    https://mvnrepository.com/artifact/org.grails.plugins/grails-datatables/0.14

    https://mvnrepository.com/artifact/org.grails.plugins/grails-datatables/0.15

    https://repo.grails.org/grails/plugins-releases-local/org/grails/plugins/grails-datatables/0.15/

    https://repo.grails.org/grails/plugins-releases-local/org/grails/plugins/grails-datatables/0.14/

    我想将它与 GRAILS-4.0.3 一起使用,但似乎不可能,是吗 被遗弃在圣杯中?

    据我所知,没有与 Grails 4.0.3 兼容的插件版本。该插件当然是开源的 (https://bitbucket.org/ben-wilson/grails-datatables/src/master/)。

    【讨论】:

    • 如果您使用 Grails 4 进行测试,我预计它会失败。正如我在答案中所说,据我所知,没有与 Grails 4.0.3 兼容的插件版本。
    • "这怎么可能是 Grails2 插件" - 该插件是使用 Grails 2.5 构建的,并且是为 Grails 2 构建的。我们为 Grails 3 编写了一个与 Grails 2 不兼容的新插件系统。你不能在 Grails 3 项目中使用 Grails 2 插件。您也不能在 Grails 4 项目中使用 Grails 2 插件。
    • 我链接的 repo 中的最新版本是使用 Grails 2.5.3 (bitbucket.org/ben-wilson/grails-datatables/src/…) 构建的。
    • 我在上面链接的 repos 显示了一个 Grails 2 插件描述符和一个包含该插件的 .zip 文件。只有 Grails 1 和 2 插件以这种方式分发。具体来说,Grails 3 和 Grails 4 插件不是这样分发的。
    • "那么最后一句话是没有那个 grails3 插件的工作版本?" - 我不知道。如果有人将这个东西移植到 Grails 3,他们还没有将它发布到我们的门户。可以直接联系作者。我想他们可能知道。
    猜你喜欢
    • 1970-01-01
    • 2022-09-14
    • 1970-01-01
    • 2012-04-06
    • 2013-03-22
    • 2023-03-07
    • 2013-04-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多