2013-07-10 171 views
0

当我在GGTS 3.1.0版本中导入项目时,我得到了以下警告,任何人都可以为我提供此警告的解决方案。Spring Security 3.0.3.RELEASE

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

回答

0

有在公共Maven仓库两套不同的春天有关的JAR文件。 Maven Central中使用工件ID为​​spring-*的工件ID,SpringSource EBR中的工件使用工件编号org.springframework.*。 Grails spring-security-core插件的旧版本(1.2之前版本)依赖于EBR构件,这又需要您在BuildConfig中启用EBR Maven存储库。更新的版本(1.2及更高版本)改为使用Maven Central工件。

+0

感谢Ian,它的工作原理是安装所有在application.properties中提供的插件,并使用maven central – John

相关问题