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>
<id>spring-milestone</id>
<name>Spring Portfolio Milestone Repository</name>
<url>http://s3.amazonaws.com/maven.springframework.org/milestone</url>
</repository>
<repository>
<id>spring.snapshots</id>
<name>Spring snapshot repository</name>
<url>http://maven.springframework.org/snapshot/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

and depending on which jar you need:
<dependencies>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>3.0.0.CI-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>3.0.0.CI-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>3.0.0.CI-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-taglibs</artifactId>
<version>3.0.0.CI-SNAPSHOT</version>
<scope>runtime</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>
         <id>com.springsource.repository.bundles.release</id>
         <name>SpringSource Enterprise Bundle Repository - SpringSource Bundle 
Releases</name>
         <url>http://repository.springsource.com/maven/bundles/release</url>
     </repository>
     <repository>
         <id>com.springsource.repository.bundles.external</id>
         <name>SpringSource Enterprise Bundle Repository - External Bundle 
Releases</name>
         <url>http://repository.springsource.com/maven/bundles/external</url>
     </repository>
     <repository>
         <id>springsource-milestone</id>
         <url>http://repository.springsource.com/maven/bundles/milestone</url>
     </repository>
</repositories>

And added to following dependency to the same file:

<dependencies>
     <dependency>
         <groupId>org.springframework</groupId>
         <artifactId>security</artifactId>
         <version>3.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: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to