0

当我在 GGTS 3.1.0 版本中导入项目时,我收到以下警告,有人可以建议我解决此警告。

:: 问题总结 :: :::: WARNINGS module not found: org.springframework.security#org.springframework.security.core;3.0.3.RELEASE

==== grailsPlugins: tried

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  C:\GrailsWs\hubbub/lib/org.springframework.security.core-3.0.3.RELEASE.jar

  C:\Users\ard004\.grails\2.1.1\projects\hubbub\plugins\hibernate-2.1.1/lib/org.springframework.security.core-3.0.3.RELEASE.jar

  C:\Users\ard004\.grails\2.1.1\projects\hubbub\plugins\spring-security-core-1.2.7.3/lib/org.springframework.security.core-3.0.3.RELEASE.jar

  C:\Users\ard004\.grails\2.1.1\projects\hubbub\plugins\tomcat-2.1.1/lib/org.springframework.security.core-3.0.3.RELEASE.jar

  C:\Users\ard004\.grails\2.1.1\projects\hubbub\plugins\webxml-1.4.1/lib/org.springframework.security.core-3.0.3.RELEASE.jar

==== grailsHome: tried

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1/lib/org.springframework.security/org.springframework.security.core/ivy-3.0.3.RELEASE.xml

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1/lib/org.springframework.security/org.springframework.security.core/jars/org.springframework.security.core-3.0.3.RELEASE.jar

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1/lib/org.springframework.security/org.springframework.security.core/bundles/org.springframework.security.core-3.0.3.RELEASE.jar

==== grailsHome: tried

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1\src\libs/org.springframework.security.core-3.0.3.RELEASE.xml

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1\src\libs/org.springframework.security.core-3.0.3.RELEASE.jar

==== grailsHome: tried

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1\dist/org.springframework.security.core-3.0.3.RELEASE.xml

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1\dist/org.springframework.security.core-3.0.3.RELEASE.jar

==== grailsHome: tried

  C:\Users\ard004\.grails\2.1.1\cached-installed-plugins/org.springframework.security.core-3.0.3.RELEASE.xml

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  C:\Users\ard004\.grails\2.1.1\cached-installed-plugins/org.springframework.security.core-3.0.3.RELEASE.jar

==== grailsHome: tried

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1/plugins/org.springframework.security.core-3.0.3.RELEASE.jar

==== grailsCentral: tried

  http://grails.org/plugins/grails-org.springframework.security.core/tags/RELEASE_3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEASE.pom

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  http://grails.org/plugins/grails-org.springframework.security.core/tags/RELEASE_3.0.3.RELEASE/grails-org.springframework.security.core-3.0.3.RELEASE.jar

==== http://repo.grails.org/grails/core: tried

  http://repo.grails.org/grails/core/org/springframework/security/org.springframework.security.core/3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEASE.pom

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  http://repo.grails.org/grails/core/org/springframework/security/org.springframework.security.core/3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEASE.jar

==== mavenCentral: tried

  http://repo1.maven.org/maven2/org/springframework/security/org.springframework.security.core/3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEASE.pom

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  http://repo1.maven.org/maven2/org/springframework/security/org.springframework.security.core/3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEASE.jar

    module not found: org.springframework.security#org.springframework.security.web;3.0.3.RELEASE

==== grailsPlugins: tried

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  C:\GrailsWs\hubbub/lib/org.springframework.security.web-3.0.3.RELEASE.jar

  C:\Users\ard004\.grails\2.1.1\projects\hubbub\plugins\hibernate-2.1.1/lib/org.springframework.security.web-3.0.3.RELEASE.jar

  C:\Users\ard004\.grails\2.1.1\projects\hubbub\plugins\spring-security-core-1.2.7.3/lib/org.springframework.security.web-3.0.3.RELEASE.jar

  C:\Users\ard004\.grails\2.1.1\projects\hubbub\plugins\tomcat-2.1.1/lib/org.springframework.security.web-3.0.3.RELEASE.jar

  C:\Users\ard004\.grails\2.1.1\projects\hubbub\plugins\webxml-1.4.1/lib/org.springframework.security.web-3.0.3.RELEASE.jar

==== grailsHome: tried

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1/lib/org.springframework.security/org.springframework.security.web/ivy-3.0.3.RELEASE.xml

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1/lib/org.springframework.security/org.springframework.security.web/jars/org.springframework.security.web-3.0.3.RELEASE.jar

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1/lib/org.springframework.security/org.springframework.security.web/bundles/org.springframework.security.web-3.0.3.RELEASE.jar

==== grailsHome: tried

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1\src\libs/org.springframework.security.web-3.0.3.RELEASE.xml

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1\src\libs/org.springframework.security.web-3.0.3.RELEASE.jar

==== grailsHome: tried

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1\dist/org.springframework.security.web-3.0.3.RELEASE.xml

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1\dist/org.springframework.security.web-3.0.3.RELEASE.jar

==== grailsHome: tried

  C:\Users\ard004\.grails\2.1.1\cached-installed-plugins/org.springframework.security.web-3.0.3.RELEASE.xml

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  C:\Users\ard004\.grails\2.1.1\cached-installed-plugins/org.springframework.security.web-3.0.3.RELEASE.jar

==== grailsHome: tried

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1/plugins/org.springframework.security.web-3.0.3.RELEASE.jar

==== grailsCentral: tried

  http://grails.org/plugins/grails-org.springframework.security.web/tags/RELEASE_3.0.3.RELEASE/org.springframework.security.web-3.0.3.RELEASE.pom

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  http://grails.org/plugins/grails-org.springframework.security.web/tags/RELEASE_3.0.3.RELEASE/grails-org.springframework.security.web-3.0.3.RELEASE.jar

==== http://repo.grails.org/grails/core: tried

  http://repo.grails.org/grails/core/org/springframework/security/org.springframework.security.web/3.0.3.RELEASE/org.springframework.security.web-3.0.3.RELEASE.pom

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  http://repo.grails.org/grails/core/org/springframework/security/org.springframework.security.web/3.0.3.RELEASE/org.springframework.security.web-3.0.3.RELEASE.jar

==== mavenCentral: tried

  http://repo1.maven.org/maven2/org/springframework/security/org.springframework.security.web/3.0.3.RELEASE/org.springframework.security.web-3.0.3.RELEASE.pom

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  http://repo1.maven.org/maven2/org/springframework/security/org.springframework.security.web/3.0.3.RELEASE/org.springframework.security.web-3.0.3.RELEASE.jar

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

    ::          UNRESOLVED DEPENDENCIES         ::

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

    :: org.springframework.security#org.springframework.security.core;3.0.3.RELEASE: not found

    :: org.springframework.security#org.springframework.security.web;3.0.3.RELEASE: not found

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

:: 问题总结 :: :::: WARNINGS module not found: org.springframework.security#org.springframework.security.core;3.0.3.RELEASE

==== grailsPlugins: tried

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  C:\GrailsWs\hubbub/lib/org.springframework.security.core-3.0.3.RELEASE.jar

  C:\Users\ard004\.grails\2.1.1\projects\hubbub\plugins\hibernate-2.1.1/lib/org.springframework.security.core-3.0.3.RELEASE.jar

  C:\Users\ard004\.grails\2.1.1\projects\hubbub\plugins\spring-security-core-1.2.7.3/lib/org.springframework.security.core-3.0.3.RELEASE.jar

  C:\Users\ard004\.grails\2.1.1\projects\hubbub\plugins\tomcat-2.1.1/lib/org.springframework.security.core-3.0.3.RELEASE.jar

  C:\Users\ard004\.grails\2.1.1\projects\hubbub\plugins\webxml-1.4.1/lib/org.springframework.security.core-3.0.3.RELEASE.jar

==== grailsHome: tried

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1/lib/org.springframework.security/org.springframework.security.core/ivy-3.0.3.RELEASE.xml

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1/lib/org.springframework.security/org.springframework.security.core/jars/org.springframework.security.core-3.0.3.RELEASE.jar

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1/lib/org.springframework.security/org.springframework.security.core/bundles/org.springframework.security.core-3.0.3.RELEASE.jar

==== grailsHome: tried

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1\src\libs/org.springframework.security.core-3.0.3.RELEASE.xml

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1\src\libs/org.springframework.security.core-3.0.3.RELEASE.jar

==== grailsHome: tried

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1\dist/org.springframework.security.core-3.0.3.RELEASE.xml

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1\dist/org.springframework.security.core-3.0.3.RELEASE.jar

==== grailsHome: tried

  C:\Users\ard004\.grails\2.1.1\cached-installed-plugins/org.springframework.security.core-3.0.3.RELEASE.xml

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  C:\Users\ard004\.grails\2.1.1\cached-installed-plugins/org.springframework.security.core-3.0.3.RELEASE.jar

==== grailsHome: tried

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1/plugins/org.springframework.security.core-3.0.3.RELEASE.jar

==== grailsCentral: tried

  http://grails.org/plugins/grails-org.springframework.security.core/tags/RELEASE_3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEASE.pom

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  http://grails.org/plugins/grails-org.springframework.security.core/tags/RELEASE_3.0.3.RELEASE/grails-org.springframework.security.core-3.0.3.RELEASE.jar

==== http://repo.grails.org/grails/core: tried

  http://repo.grails.org/grails/core/org/springframework/security/org.springframework.security.core/3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEASE.pom

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  http://repo.grails.org/grails/core/org/springframework/security/org.springframework.security.core/3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEASE.jar

==== mavenCentral: tried

  http://repo1.maven.org/maven2/org/springframework/security/org.springframework.security.core/3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEASE.pom

  -- artifact org.springframework.security#org.springframework.security.core;3.0.3.RELEASE!org.springframework.security.core.jar:

  http://repo1.maven.org/maven2/org/springframework/security/org.springframework.security.core/3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEASE.jar

    module not found: org.springframework.security#org.springframework.security.web;3.0.3.RELEASE

==== grailsPlugins: tried

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  C:\GrailsWs\hubbub/lib/org.springframework.security.web-3.0.3.RELEASE.jar

  C:\Users\ard004\.grails\2.1.1\projects\hubbub\plugins\hibernate-2.1.1/lib/org.springframework.security.web-3.0.3.RELEASE.jar

  C:\Users\ard004\.grails\2.1.1\projects\hubbub\plugins\spring-security-core-1.2.7.3/lib/org.springframework.security.web-3.0.3.RELEASE.jar

  C:\Users\ard004\.grails\2.1.1\projects\hubbub\plugins\tomcat-2.1.1/lib/org.springframework.security.web-3.0.3.RELEASE.jar

  C:\Users\ard004\.grails\2.1.1\projects\hubbub\plugins\webxml-1.4.1/lib/org.springframework.security.web-3.0.3.RELEASE.jar

==== grailsHome: tried

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1/lib/org.springframework.security/org.springframework.security.web/ivy-3.0.3.RELEASE.xml

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1/lib/org.springframework.security/org.springframework.security.web/jars/org.springframework.security.web-3.0.3.RELEASE.jar

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1/lib/org.springframework.security/org.springframework.security.web/bundles/org.springframework.security.web-3.0.3.RELEASE.jar

==== grailsHome: tried

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1\src\libs/org.springframework.security.web-3.0.3.RELEASE.xml

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1\src\libs/org.springframework.security.web-3.0.3.RELEASE.jar

==== grailsHome: tried

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1\dist/org.springframework.security.web-3.0.3.RELEASE.xml

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1\dist/org.springframework.security.web-3.0.3.RELEASE.jar

==== grailsHome: tried

  C:\Users\ard004\.grails\2.1.1\cached-installed-plugins/org.springframework.security.web-3.0.3.RELEASE.xml

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  C:\Users\ard004\.grails\2.1.1\cached-installed-plugins/org.springframework.security.web-3.0.3.RELEASE.jar

==== grailsHome: tried

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  C:\Softwares\groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-win32\springsource\grails-2.1.1/plugins/org.springframework.security.web-3.0.3.RELEASE.jar

==== grailsCentral: tried

  http://grails.org/plugins/grails-org.springframework.security.web/tags/RELEASE_3.0.3.RELEASE/org.springframework.security.web-3.0.3.RELEASE.pom

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  http://grails.org/plugins/grails-org.springframework.security.web/tags/RELEASE_3.0.3.RELEASE/grails-org.springframework.security.web-3.0.3.RELEASE.jar

==== http://repo.grails.org/grails/core: tried

  http://repo.grails.org/grails/core/org/springframework/security/org.springframework.security.web/3.0.3.RELEASE/org.springframework.security.web-3.0.3.RELEASE.pom

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  http://repo.grails.org/grails/core/org/springframework/security/org.springframework.security.web/3.0.3.RELEASE/org.springframework.security.web-3.0.3.RELEASE.jar

==== mavenCentral: tried

  http://repo1.maven.org/maven2/org/springframework/security/org.springframework.security.web/3.0.3.RELEASE/org.springframework.security.web-3.0.3.RELEASE.pom

  -- artifact org.springframework.security#org.springframework.security.web;3.0.3.RELEASE!org.springframework.security.web.jar:

  http://repo1.maven.org/maven2/org/springframework/security/org.springframework.security.web/3.0.3.RELEASE/org.springframework.security.web-3.0.3.RELEASE.jar

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

    ::          UNRESOLVED DEPENDENCIES         ::

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

    :: org.springframework.security#org.springframework.security.core;3.0.3.RELEASE: not found

    :: org.springframework.security#org.springframework.security.web;3.0.3.RELEASE: not found

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

| 错误无法解决依赖关系(在 BuildConfig.groovy 中将日志级别设置为“警告”以获取更多信息):

  • org.springframework.security:org.springframework.security.core:3.0.3.RELEASE
  • org.springframework.security:org.springframework.security.web:3.0.3.RELEASE
4

1 回答 1

0

公共 Maven 存储库中有两组不同的 Spring 相关 JAR 文件。Maven Central 中的使用表单spring-*的工件 ID,SpringSource EBR中的使用表单的工件 ID org.springframework.*。Grails spring-security-core 插件的旧版本(1.2 之前)过去依赖于 EBR 工件,这反过来又要求您在 BuildConfig 中启用 EBR Maven 存储库。更新的版本(1.2 和更高版本)使用 Maven Central 工件代替。

于 2013-07-10T09:24:58.003 回答