无法解析最新的 Quarkus 插件
Can't resolve latest Quarkus plugin
我一直在尝试更新到最新的 Quarkus (1.2.0.CR1
) 版本,但它无法解析来自 Maven 的插件工件:
A problem occurred configuring project ':WebServer:Server'.
> Could not resolve all artifacts for configuration ':WebServer:Server:classpath'.
> Could not find io.quarkus:quarkus-gradle-plugin:1.2.0.CR1.
Searched in the following locations:
- file:/home/gstewart/.m2/repository/io/quarkus/quarkus-gradle-plugin/1.2.0.CR1/quarkus-gradle-plugin-1.2.0.CR1.pom
- https://repo.maven.apache.org/maven2/io/quarkus/quarkus-gradle-plugin/1.2.0.CR1/quarkus-gradle-plugin-1.2.0.CR1.pom
- https://plugins.gradle.org/m2/io/quarkus/quarkus-gradle-plugin/1.2.0.CR1/quarkus-gradle-plugin-1.2.0.CR1.pom
- https://jcenter.bintray.com/io/quarkus/quarkus-gradle-plugin/1.2.0.CR1/quarkus-gradle-plugin-1.2.0.CR1.pom
Required by:
project :WebServer:Server
当直接跟随 link 时,我得到一个 404,但我真的不确定如何配置东西来解决这个问题。
我一直在使用带有 Gradle 的 Quarkus,我可以解析的最新插件版本是 1.0.1.Final
。我正在使用 Gradle 版本 6.1
。需要明确的是,似乎我可以很好地解决不同版本的实际 Quarkus,只是 Gradle 插件本身似乎有问题。
项目组织:
build.gradle
gradle.properties
settings.gradle
...
webserver/
...
server/
build.gradle
gradle.properties
gradle.properties:
quarkusPluginVersion=1.0.1.Final
settings.gradle:
pluginManagement {
repositories {
mavenLocal()
mavenCentral()
jcenter()
gradlePluginPortal()
}
plugins {
id 'io.quarkus' version "${quarkusPluginVersion}"
}
}
...
webserver/server/gradle.属性:
quarkusPlatformVersion=1.2.0.CR1
quarkusPlatformArtifactId=quarkus-universe-bom
quarkusPlatformGroupId=io.quarkus
webserver/server/build.gradle:
buildscript {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath "io.quarkus:quarkus-gradle-plugin:${quarkusPluginVersion}"
}
}
plugins {
id 'java'
id "io.freefair.lombok" version "4.1.5"
id 'io.quarkus'
}
...
更新:
注意到自 1.0.1.Final
(maven) 以来没有任何新版本的插件...这可以解释所看到的问题。有知道的人可以评论一下吗?这是预料中的还是某个地方的疏忽?
更新 2:
谢谢大家的提示。但是,在按照迁移指南(并移动到 1.2.0.Final
)之后,我现在遇到了一个问题,其中找到了 none 的 quarkus 依赖项...
> Could not resolve all files for configuration ':WebServer:Server:compileClasspath'.
> Could not find io.quarkus:quarkus-universe-bom:1.2.0.Final.
Searched in the following locations:
- file:/home/gstewart/.m2/repository/io/quarkus/quarkus-universe-bom/1.2.0.Final/quarkus-universe-bom-1.2.0.Final.pom
- https://repo.maven.apache.org/maven2/io/quarkus/quarkus-universe-bom/1.2.0.Final/quarkus-universe-bom-1.2.0.Final.pom
- https://jcenter.bintray.com/io/quarkus/quarkus-universe-bom/1.2.0.Final/quarkus-universe-bom-1.2.0.Final.pom
Required by:
project :WebServer:Server
> Could not find io.quarkus:quarkus-config-yaml:.
Required by:
project :WebServer:Server
> Could not find io.quarkus:quarkus-mailer:.
Required by:
project :WebServer:Server
> Could not find io.quarkus:quarkus-resteasy-jackson:.
Required by:
project :WebServer:Server
> Could not find io.quarkus:quarkus-smallrye-openapi:.
Required by:
project :WebServer:Server
> Could not find io.quarkus:quarkus-scheduler:.
Required by:
project :WebServer:Server
> Could not find io.quarkus:quarkus-mongodb-client:.
Required by:
project :WebServer:Server
> Could not find io.quarkus:quarkus-resteasy:.
Required by:
project :WebServer:Server
已更新settings.gradle:
pluginManagement {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
}
plugins {
id 'io.quarkus' version "${quarkusPluginVersion}"
}
}
...
已更新 webserver/server/build.gradle:
plugins {
id 'java'
id "io.freefair.lombok" version "4.1.5"
id 'io.quarkus'
}
...
dependencies {
compile project(":BaseCode:Core")
compile project(":BaseCode:ManagerIO")
compile project(":BaseCode:Stats")
compile project(":WebServer:WebLibrary")
implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
implementation 'io.quarkus:quarkus-config-yaml'
implementation 'io.quarkus:quarkus-mailer'
implementation 'io.quarkus:quarkus-resteasy-jackson'
implementation 'io.quarkus:quarkus-smallrye-openapi'
implementation 'io.quarkus:quarkus-scheduler'
...
有什么想法吗?
我们对 Gradle 插件在 1.1 中的工作方式进行了很多更改。
有关如何配置您的 Gradle 项目的所有详细信息,请参阅 1.1 迁移指南:https://github.com/quarkusio/quarkus/wiki/Migration-Guide-1.1#gradle-plugin .
我一直在尝试更新到最新的 Quarkus (1.2.0.CR1
) 版本,但它无法解析来自 Maven 的插件工件:
A problem occurred configuring project ':WebServer:Server'.
> Could not resolve all artifacts for configuration ':WebServer:Server:classpath'.
> Could not find io.quarkus:quarkus-gradle-plugin:1.2.0.CR1.
Searched in the following locations:
- file:/home/gstewart/.m2/repository/io/quarkus/quarkus-gradle-plugin/1.2.0.CR1/quarkus-gradle-plugin-1.2.0.CR1.pom
- https://repo.maven.apache.org/maven2/io/quarkus/quarkus-gradle-plugin/1.2.0.CR1/quarkus-gradle-plugin-1.2.0.CR1.pom
- https://plugins.gradle.org/m2/io/quarkus/quarkus-gradle-plugin/1.2.0.CR1/quarkus-gradle-plugin-1.2.0.CR1.pom
- https://jcenter.bintray.com/io/quarkus/quarkus-gradle-plugin/1.2.0.CR1/quarkus-gradle-plugin-1.2.0.CR1.pom
Required by:
project :WebServer:Server
当直接跟随 link 时,我得到一个 404,但我真的不确定如何配置东西来解决这个问题。
我一直在使用带有 Gradle 的 Quarkus,我可以解析的最新插件版本是 1.0.1.Final
。我正在使用 Gradle 版本 6.1
。需要明确的是,似乎我可以很好地解决不同版本的实际 Quarkus,只是 Gradle 插件本身似乎有问题。
项目组织:
build.gradle
gradle.properties
settings.gradle
...
webserver/
...
server/
build.gradle
gradle.properties
gradle.properties:
quarkusPluginVersion=1.0.1.Final
settings.gradle:
pluginManagement {
repositories {
mavenLocal()
mavenCentral()
jcenter()
gradlePluginPortal()
}
plugins {
id 'io.quarkus' version "${quarkusPluginVersion}"
}
}
...
webserver/server/gradle.属性:
quarkusPlatformVersion=1.2.0.CR1
quarkusPlatformArtifactId=quarkus-universe-bom
quarkusPlatformGroupId=io.quarkus
webserver/server/build.gradle:
buildscript {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath "io.quarkus:quarkus-gradle-plugin:${quarkusPluginVersion}"
}
}
plugins {
id 'java'
id "io.freefair.lombok" version "4.1.5"
id 'io.quarkus'
}
...
更新:
注意到自 1.0.1.Final
(maven) 以来没有任何新版本的插件...这可以解释所看到的问题。有知道的人可以评论一下吗?这是预料中的还是某个地方的疏忽?
更新 2:
谢谢大家的提示。但是,在按照迁移指南(并移动到 1.2.0.Final
)之后,我现在遇到了一个问题,其中找到了 none 的 quarkus 依赖项...
> Could not resolve all files for configuration ':WebServer:Server:compileClasspath'.
> Could not find io.quarkus:quarkus-universe-bom:1.2.0.Final.
Searched in the following locations:
- file:/home/gstewart/.m2/repository/io/quarkus/quarkus-universe-bom/1.2.0.Final/quarkus-universe-bom-1.2.0.Final.pom
- https://repo.maven.apache.org/maven2/io/quarkus/quarkus-universe-bom/1.2.0.Final/quarkus-universe-bom-1.2.0.Final.pom
- https://jcenter.bintray.com/io/quarkus/quarkus-universe-bom/1.2.0.Final/quarkus-universe-bom-1.2.0.Final.pom
Required by:
project :WebServer:Server
> Could not find io.quarkus:quarkus-config-yaml:.
Required by:
project :WebServer:Server
> Could not find io.quarkus:quarkus-mailer:.
Required by:
project :WebServer:Server
> Could not find io.quarkus:quarkus-resteasy-jackson:.
Required by:
project :WebServer:Server
> Could not find io.quarkus:quarkus-smallrye-openapi:.
Required by:
project :WebServer:Server
> Could not find io.quarkus:quarkus-scheduler:.
Required by:
project :WebServer:Server
> Could not find io.quarkus:quarkus-mongodb-client:.
Required by:
project :WebServer:Server
> Could not find io.quarkus:quarkus-resteasy:.
Required by:
project :WebServer:Server
已更新settings.gradle:
pluginManagement {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
}
plugins {
id 'io.quarkus' version "${quarkusPluginVersion}"
}
}
...
已更新 webserver/server/build.gradle:
plugins {
id 'java'
id "io.freefair.lombok" version "4.1.5"
id 'io.quarkus'
}
...
dependencies {
compile project(":BaseCode:Core")
compile project(":BaseCode:ManagerIO")
compile project(":BaseCode:Stats")
compile project(":WebServer:WebLibrary")
implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
implementation 'io.quarkus:quarkus-config-yaml'
implementation 'io.quarkus:quarkus-mailer'
implementation 'io.quarkus:quarkus-resteasy-jackson'
implementation 'io.quarkus:quarkus-smallrye-openapi'
implementation 'io.quarkus:quarkus-scheduler'
...
有什么想法吗?
我们对 Gradle 插件在 1.1 中的工作方式进行了很多更改。
有关如何配置您的 Gradle 项目的所有详细信息,请参阅 1.1 迁移指南:https://github.com/quarkusio/quarkus/wiki/Migration-Guide-1.1#gradle-plugin .