【问题标题】:Spring Security 3.0.3.RELEASESpring Security 3.0.3.RELEASE
【发布时间】:2013-07-10 17:24:58
【问题描述】:

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

:: 问题总结 :: :::: 警告 未找到模块: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

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

:: 问题总结 :: :::: 警告 未找到模块: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

【问题讨论】:

    标签: grails


    【解决方案1】:

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

    【讨论】:

    • 感谢 Ian,它通过安装 application.properties 中提供的所有插件和使用 maven Central 来工作
    猜你喜欢
    • 2011-04-12
    • 2016-05-06
    • 2012-12-01
    • 2011-05-13
    • 2016-11-07
    • 2015-06-01
    • 2012-09-05
    • 1970-01-01
    • 2018-04-12
    相关资源
    最近更新 更多