gpt4 book ai didi

intellij-idea - 使用Grails和IntelliJ进行安装

转载 作者:行者123 更新时间:2023-12-02 14:39:13 25 4
gpt4 key购买 nike

我正在IntelliJ中建立一个新项目,但是当我用Grails在IntelliJ中运行该项目时,出现一个错误,提示"Failed to resolve dependencies" Set log level to 'warn' in BuildConfig.groovy for more information.,我不确定下一步该怎么做才能解决问题。

"C:\Program Files\Java\jdk1.8.0_201\bin\java" -Dgrails.home=C:\Grails\grails-2.5.3 -Dbase.dir=C:\Users\601279\IdeaProjects "-Dtools.jar=C:\Program Files\Java\jdk1.8.0_201\lib\tools.jar" -Dgroovy.starter.conf=C:\Grails\grails-2.5.3/conf/groovy-starter.conf -Xmx768M -Xms768M -XX:MaxPermSize=256m -XX:PermSize=256m -Djline.WindowsTerminal.directConsole=false -Dfile.encoding=windows-1252 -classpath C:\Grails\grails-2.5.3\lib\org.codehaus.groovy\groovy-all\jars\groovy-all-2.4.4.jar;C:\Grails\grails-2.5.3\dist\grails-bootstrap-2.5.3.jar org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf C:\Grails\grails-2.5.3/conf/groovy-starter.conf "create-app gret -plain-output"|Loading Grails 2.5.3
|Configuring classpath
:: problems summary ::
:::: WARNINGS
module not found: org.aspectj#aspectjweaver;1.8.5

==== grailsPlugins: tried

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Users\601279\IdeaProjects\lib\aspectjweaver-1.8.5.jar

==== grailsHome: tried

C:\Grails\grails-2.5.3\lib\org.aspectj\aspectjweaver\ivy-1.8.5.xml

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Grails\grails-2.5.3\lib\org.aspectj\aspectjweaver\jars\aspectjweaver-1.8.5.jar

C:\Grails\grails-2.5.3\lib\org.aspectj\aspectjweaver\bundles\aspectjweaver-1.8.5.jar

==== grailsHome: tried

C:\Grails\grails-2.5.3\dist\aspectjweaver-1.8.5.pom

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Grails\grails-2.5.3\dist\aspectjweaver-1.8.5.jar

==== grailsHome: tried

C:\Users\601279\.grails\2.5.3\cached-installed-plugins\aspectjweaver-1.8.5.xml

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Users\601279\.grails\2.5.3\cached-installed-plugins\aspectjweaver-1.8.5.jar

==== grailsHome: tried

C:\Grails\grails-2.5.3\plugins\aspectjweaver-1.8.5.pom

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Grails\grails-2.5.3\plugins\aspectjweaver-1.8.5.jar

::::::::::::::::::::::::::::::::::::::::::::::

:: UNRESOLVED DEPENDENCIES ::

::::::::::::::::::::::::::::::::::::::::::::::

:: org.aspectj#aspectjweaver;1.8.5: not found

::::::::::::::::::::::::::::::::::::::::::::::


Error |
Resolve error obtaining dependencies: Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

- org.aspectj:aspectjweaver:1.8.5

(Use --stacktrace to see the full trace)
:: problems summary ::
:::: WARNINGS
module not found: org.aspectj#aspectjweaver;1.8.5

==== grailsPlugins: tried

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Users\601279\IdeaProjects\lib\aspectjweaver-1.8.5.jar

==== grailsHome: tried

C:\Grails\grails-2.5.3\lib\org.aspectj\aspectjweaver\ivy-1.8.5.xml

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Grails\grails-2.5.3\lib\org.aspectj\aspectjweaver\jars\aspectjweaver-1.8.5.jar

C:\Grails\grails-2.5.3\lib\org.aspectj\aspectjweaver\bundles\aspectjweaver-1.8.5.jar

==== grailsHome: tried

C:\Grails\grails-2.5.3\dist\aspectjweaver-1.8.5.pom

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Grails\grails-2.5.3\dist\aspectjweaver-1.8.5.jar

==== grailsHome: tried

C:\Users\601279\.grails\2.5.3\cached-installed-plugins\aspectjweaver-1.8.5.xml

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Users\601279\.grails\2.5.3\cached-installed-plugins\aspectjweaver-1.8.5.jar

==== grailsHome: tried

C:\Grails\grails-2.5.3\plugins\aspectjweaver-1.8.5.pom

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Grails\grails-2.5.3\plugins\aspectjweaver-1.8.5.jar

::::::::::::::::::::::::::::::::::::::::::::::

:: UNRESOLVED DEPENDENCIES ::

::::::::::::::::::::::::::::::::::::::::::::::

:: org.aspectj#aspectjweaver;1.8.5: not found

::::::::::::::::::::::::::::::::::::::::::::::


Error |
Resolve error obtaining dependencies: Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

- org.aspectj:aspectjweaver:1.8.5

(Use --stacktrace to see the full trace)
:: problems summary ::
:::: WARNINGS
module not found: org.aspectj#aspectjweaver;1.8.5

==== grailsPlugins: tried

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Users\601279\IdeaProjects\lib\aspectjweaver-1.8.5.jar

==== grailsHome: tried

C:\Grails\grails-2.5.3\lib\org.aspectj\aspectjweaver\ivy-1.8.5.xml

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Grails\grails-2.5.3\lib\org.aspectj\aspectjweaver\jars\aspectjweaver-1.8.5.jar

C:\Grails\grails-2.5.3\lib\org.aspectj\aspectjweaver\bundles\aspectjweaver-1.8.5.jar

==== grailsHome: tried

C:\Grails\grails-2.5.3\dist\aspectjweaver-1.8.5.pom

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Grails\grails-2.5.3\dist\aspectjweaver-1.8.5.jar

==== grailsHome: tried

C:\Users\601279\.grails\2.5.3\cached-installed-plugins\aspectjweaver-1.8.5.xml

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Users\601279\.grails\2.5.3\cached-installed-plugins\aspectjweaver-1.8.5.jar

==== grailsHome: tried

C:\Grails\grails-2.5.3\plugins\aspectjweaver-1.8.5.pom

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Grails\grails-2.5.3\plugins\aspectjweaver-1.8.5.jar

::::::::::::::::::::::::::::::::::::::::::::::

:: UNRESOLVED DEPENDENCIES ::

::::::::::::::::::::::::::::::::::::::::::::::

:: org.aspectj#aspectjweaver;1.8.5: not found

::::::::::::::::::::::::::::::::::::::::::::::


Error |
Resolve error obtaining dependencies: Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

- org.aspectj:aspectjweaver:1.8.5

(Use --stacktrace to see the full trace)
:: problems summary ::
:::: WARNINGS
module not found: org.aspectj#aspectjweaver;1.8.5

==== grailsPlugins: tried

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Users\601279\IdeaProjects\lib\aspectjweaver-1.8.5.jar

==== grailsHome: tried

C:\Grails\grails-2.5.3\lib\org.aspectj\aspectjweaver\ivy-1.8.5.xml

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Grails\grails-2.5.3\lib\org.aspectj\aspectjweaver\jars\aspectjweaver-1.8.5.jar

C:\Grails\grails-2.5.3\lib\org.aspectj\aspectjweaver\bundles\aspectjweaver-1.8.5.jar

==== grailsHome: tried

C:\Grails\grails-2.5.3\dist\aspectjweaver-1.8.5.pom

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Grails\grails-2.5.3\dist\aspectjweaver-1.8.5.jar

==== grailsHome: tried

C:\Users\601279\.grails\2.5.3\cached-installed-plugins\aspectjweaver-1.8.5.xml

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Users\601279\.grails\2.5.3\cached-installed-plugins\aspectjweaver-1.8.5.jar

==== grailsHome: tried

C:\Grails\grails-2.5.3\plugins\aspectjweaver-1.8.5.pom

-- artifact org.aspectj#aspectjweaver;1.8.5!aspectjweaver.jar:

C:\Grails\grails-2.5.3\plugins\aspectjweaver-1.8.5.jar

::::::::::::::::::::::::::::::::::::::::::::::

:: UNRESOLVED DEPENDENCIES ::

::::::::::::::::::::::::::::::::::::::::::::::

:: org.aspectj#aspectjweaver;1.8.5: not found

::::::::::::::::::::::::::::::::::::::::::::::


Error |
Resolve error obtaining dependencies: Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

- org.aspectj:aspectjweaver:1.8.5

(Use --stacktrace to see the full trace)
Error |
Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

- org.aspectj:aspectjweaver:1.8.5

|Run 'grails dependency-report' for further information.
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=256m; support was removed in 8.0

最佳答案

这是Grails v2.5.3的错误,已经报告过。

它已经包含并固定在2.5.x分支上。

请检查thisthis

所以你需要升级你的grails版本

希望这对您有帮助

关于intellij-idea - 使用Grails和IntelliJ进行安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54681777/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com