RE: How to get Spring Security with Maven?
think of this a factory and method-advising package for Web-application and J2EE containers (such as catalina or grizzly) but now you need the Spring framework to work on the Plexus container so you will need to configure and implement plexus-spring adapter http://plexus.codehaus.org/plexus-components/plexus-spring keep us apprised if you have any questions Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 11 Nov 2009 13:11:36 + From: christian.helmb...@yahoo.de Subject: How to get Spring Security with Maven? To: users@maven.apache.org Hi, I try to integrate Springs Maven repository, but it doen't work. Specifically I try to integrate Spring Security 3.0.0.RC1 (package: org.springframework.security.authentication.encoding). I've adde the following repositories to my pom.xml: repositories repository idcom.springsource.repository.bundles.release/id nameSpringSource Enterprise Bundle Repository - SpringSource Bundle Releases/name urlhttp://repository.springsource.com/maven/bundles/release/url /repository repository idcom.springsource.repository.bundles.external/id nameSpringSource Enterprise Bundle Repository - External Bundle Releases/name urlhttp://repository.springsource.com/maven/bundles/external/url /repository repository idspringsource-milestone/id urlhttp://repository.springsource.com/maven/bundles/milestone/url /repository /repositories And added to following dependency to the same file: dependencies dependency groupIdorg.springframework/groupId artifactIdsecurity/artifactId version3.0.0.RC1/version /dependency /dependencies But Eclipse tells me in the related class, that the type (org.springframework.security.authentication.encoding) cannot be resolved. If I run mvn compile I get BUILD SUCCESSFUL. A small file with the name security.core-3.0.0.RC1.jar is added to the local repository, but its size is only 5 kb. If I run mvn test I get the expected error: java.lang.Error: Unresolved compilation problems: The import org.springframework cannot be resolved ShaPasswordEncoder cannot be resolved to a type How can I add Spring Security with maven to my project? Regards, Christian -- http://scala-forum.org/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org _ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141665/direct/01/
Re: How to get Spring Security with Maven?
urlhttp://repository.springsource.com/maven/bundles/release/url urlhttp://repository.springsource.com/maven/bundles/external/url urlhttp://repository.springsource.com/maven/bundles/milestone/url If you click on these URLs, they all give 404. Are you sure these are valid URLs for Maven repos? A small file with the name security.core-3.0.0.RC1.jar is added to the local repository, but its size is only 5 kb. If I run mvn test Did you look at that file to see what's inside it? Are you sure its the proper Jar file you're expecting? 5kb seems small but it might be right if the functionality is just a couple classes. How can I add Spring Security with maven to my project? Ask the Spring Security people... Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to get Spring Security with Maven?
The jar file contains a html page from Amazon S3 Service, which is the host of the Maven repository (or should be). This happens when you have pointed Maven at a repo which is not properly configured. The repo should return a proper 404 status code which Maven will report as a bad repo and blacklist it to avoid pulling down bad content. In this case, the website is returning something other than 404 (probably a 200 with no file found in the html) so Maven assumes the content is the Jar it requested and saves it as such. Yes, Maven should be a little bit smarter and check the content before saving it (and this is on the list of things to fix eventually) but the repo/webserver is not complying with the HTTP specification in these cases. Since you're talking to the Spring folks, please ask them to fix their repo. It should not return http status 200 unless the http request was actually successful! Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to get Spring Security with Maven?
I don't know about the 3.0.0.RC1 release but we get the 3.0.0.CI-SNAPSHOT versions like this: repositories repository idspring-milestone/id nameSpring Portfolio Milestone Repository/name urlhttp://s3.amazonaws.com/maven.springframework.org/milestone/url /repository repository idspring.snapshots/id nameSpring snapshot repository/name urlhttp://maven.springframework.org/snapshot//url releases enabledfalse/enabled /releases snapshots enabledtrue/enabled /snapshots /repository /repositories and depending on which jar you need: dependencies dependency groupIdorg.springframework.security/groupId artifactIdspring-security-config/artifactId version3.0.0.CI-SNAPSHOT/version scoperuntime/scope /dependency dependency groupIdorg.springframework.security/groupId artifactIdspring-security-core/artifactId version3.0.0.CI-SNAPSHOT/version scopecompile/scope /dependency dependency groupIdorg.springframework.security/groupId artifactIdspring-security-web/artifactId version3.0.0.CI-SNAPSHOT/version scopecompile/scope /dependency dependency groupIdorg.springframework.security/groupId artifactIdspring-security-taglibs/artifactId version3.0.0.CI-SNAPSHOT/version scoperuntime/scope /dependency /dependencies On 12/11/09 00:11, Christian Helmbold wrote: Hi, I try to integrate Springs Maven repository, but it doen't work. Specifically I try to integrate Spring Security 3.0.0.RC1 (package: org.springframework.security.authentication.encoding). I've adde the following repositories to my pom.xml: repositories repository idcom.springsource.repository.bundles.release/id nameSpringSource Enterprise Bundle Repository - SpringSource Bundle Releases/name urlhttp://repository.springsource.com/maven/bundles/release/url /repository repository idcom.springsource.repository.bundles.external/id nameSpringSource Enterprise Bundle Repository - External Bundle Releases/name urlhttp://repository.springsource.com/maven/bundles/external/url /repository repository idspringsource-milestone/id urlhttp://repository.springsource.com/maven/bundles/milestone/url /repository /repositories And added to following dependency to the same file: dependencies dependency groupIdorg.springframework/groupId artifactIdsecurity/artifactId version3.0.0.RC1/version /dependency /dependencies But Eclipse tells me in the related class, that the type (org.springframework.security.authentication.encoding) cannot be resolved. If I run mvn compile I get BUILD SUCCESSFUL. A small file with the name security.core-3.0.0.RC1.jar is added to the local repository, but its size is only 5 kb. If I run mvn test I get the expected error: java.lang.Error: Unresolved compilation problems: The import org.springframework cannot be resolved ShaPasswordEncoder cannot be resolved to a type How can I add Spring Security with maven to my project? Regards, Christian -- http://scala-forum.org/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org