grails - 使用 Grails 3.3.1 列出配置文件会引发 org.eclipse.aether.transfer.ArtifactNotFoundException

标签 grails sdkman

我使用 SDKMAN! 安装了 Grails 3.3.1!。现在我尝试使用列出可用的配置文件

grails list-profiles

并得到以下错误:

| Error Error occurred running Grails CLI: Could not find artifact org.grails.profiles:angular:jar:4.0.1 in grailsCentral (https://repo.grails.org/grails/core) (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.grails.profiles:angular:jar:4.0.1 in grailsCentral (https://repo.grails.org/grails/core) at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:39) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355) at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581) at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367) at org.springframework.boot.cli.compiler.grape.AetherGrapeEngine.resolve(AetherGrapeEngine.java:319) at org.springframework.boot.cli.compiler.grape.AetherGrapeEngine.grab(AetherGrapeEngine.java:129) at org.springframework.boot.cli.compiler.grape.AetherGrapeEngine.grab(AetherGrapeEngine.java:121) at org.grails.cli.profile.repository.MavenProfileRepository.getAllProfiles(MavenProfileRepository.groovy:134) at org.grails.cli.profile.commands.ListProfilesCommand.handle(ListProfilesCommand.groovy:43) at org.grails.cli.GrailsCli.executeCommandWithArgumentValidation(GrailsCli.groovy:287) at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:263) at org.grails.cli.GrailsCli.main(GrailsCli.groovy:159) | Error Error occurred running Grails CLI: Could not find artifact org.grails.profiles:angular:jar:4.0.1 in grailsCentral (https://repo.grails.org/grails/core)



我必须更改 repo 吗?

最佳答案

结果是 grails repo https://repo.grails.org/grails/core下来了。启动时,它返回可用工件的列表,上述命令应返回所有可用配置文件的列表,如下所示:

grails list-profiles Resolving dependencies.. | Available Profiles

  • angular - A profile for creating Grails applications with Angular 2
  • rest-api - Profile for REST API applications
  • base - The base profile extended by other profiles
  • angularjs - A profile for creating applications using AngularJS
  • plugin - Profile for plugins designed to work across all profiles
  • profile - A profile for creating new Grails profiles
  • react - A profile for creating Grails applications with a React frontend
  • rest-api-plugin - Profile for REST API plugins
  • web - Profile for Web applications
  • web-jboss7 - A Profile for Creating a JBoss 7.1 EAP Project
  • web-plugin - Profile for Plugins designed for Web applications
  • webpack - A profile for creating applications with node-based frontends using webpack 2

关于grails - 使用 Grails 3.3.1 列出配置文件会引发 org.eclipse.aether.transfer.ArtifactNotFoundException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46512113/

相关文章:

java - Oracle java 没有出现在 SDKMAN 中?

java - 软件开发人员!不适用于 Eclipse.app 或 SpringToolSuite4.app(在 Mac 上)

eclipse - 在Eclipse中突出显示某些单词

grails - Spock 检查调用私有(private)对象的方法数

grails - 查询条件限定的Grails

java - 如何使用 SDKMAN 更改 java 版本而不需要先关闭 Intellij IDEA?

docker - 在基于 Alpine 的 Docker 镜像中安装 Sdkman

logging - 如何为 grails 插件配置日志记录?

grails - Grails用户域类并缓存true