PDA

View Full Version : pom.xml for org.springframework.security.oauth references outdated dependencies



marshallmonica@yahoo.com
May 20th, 2011, 02:28 PM
Does the org.springframework.security.oauth project have a more up-to-date pom.xml which references libraries that are not that old ? Our projects pom.xml references the latest Spring Framework 3.1.0.M1.

The aouth pom.xml that is showed in the Spring/oauth repository also references the sparkl, sparlr2, tonr, tonr2 projects, which is not desirable.

Is there a cleaner pom.xml that we can rely on on our project ?

If we include the entry in our project's pom.xml:

<dependency>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth</artifactId>
<version>1.0.0.M3</version>
</dependency>

I would have to add exclusions for all the libraries that this dependency includes because the references in the Spring Aouth pom.xml are outdated and seem to conflict with our pom.xml dependencies.

Here's the parent pom.xml for the oauth project:


<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth-parent</artifactId>
<name>OAuth for Spring Security - Parent</name>
<description>Parent Project for OAuth Support for Spring Security</description>
<packaging>pom</packaging>
<version>1.0.0.M3</version>

<modules>
<module>spring-security-oauth</module>
<module>sparklr</module>
<module>tonr</module>
<module>sparklr2</module>
<module>tonr2</module>
</modules>

<properties>
<spring.version>3.0.3.RELEASE</spring.version>
<spring.security.version>3.0.3.RELEASE</spring.security.version>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-idea-plugin</artifactId>
<version>2.3-atlassian-1</version>
<configuration>
<downloadSources>true</downloadSources>
<exclude>cargo-installs,target/tomcat5x,target/war</exclude>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-idea-plugin</artifactId>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.6</version>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java15</artifactId>
<version>1.0</version>
</signature>
</configuration>
<executions>
<execution>
<id>enforce-java-5</id>
<phase>test</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<ignores>
<!--allow dependencies on internal Sun APIs for now. Someday fix these.... -->
<ignore>sun.net.www.protocol.http.*</ignore>
<ignore>sun.net.www.protocol.https.*</ignore>
</ignores>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.25</version>
</plugin>
</plugins>
</pluginManagement>
<extensions>
<extension>
<groupId>org.springframework.build.aws</groupId>
<artifactId>org.springframework.build.aws.maven</artifactId>
<version>3.0.0.RELEASE</version>
</extension>
</extensions>
</build>

<repositories>
<repository>
<id>spring-milestone</id>
<name>Spring Framework Milestone Repository</name>
<url>http://s3.amazonaws.com/maven.springframework.org/milestone</url>
</repository>
<repository>
<id>spring-release</id>
<name>Spring Framework Release Repository</name>
<url>http://maven.springframework.org/release</url>
</repository>
<repository>
<id>oauth.googlecode.net</id>
<url>http://oauth.googlecode.com/svn/code/maven/</url>
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>atlassian</id>
<url>https://maven.atlassian.com/repository/public</url>
</pluginRepository>
</pluginRepositories>

<distributionManagement>

<repository>
<id>spring-milestone</id>
<name>Spring Milestone Repository</name>
<url>s3://maven.springframework.org/milestone</url>
</repository>

<snapshotRepository>
<id>spring-snapshot</id>
<name>Spring Snapshot Repository</name>
<url>s3://maven.springframework.org/snapshot</url>
</snapshotRepository>

</distributionManagement>

</project>

stoicflame
May 21st, 2011, 01:27 PM
1.0.0.M3 is the last release to support spring security 3.0. The next release will be only usable with spring security 3.1 and you won't have to add those exclusions.