Skip to content

Spring's Maven Central compatible .poms contain numerous repository definitions that hurt user build performance [SPR-6541] #11207

Closed
@spring-projects-issues

Description

@spring-projects-issues

Keith Donald opened SPR-6541 and commented

The parent pom contains the following global repository definitions:

<repositories>
   <repository>
     <id>java.net</id>
     <name>Java.net Repository for Maven</name>
     <url>http://download.java.net/maven/1/</url>
     <layout>legacy</layout>
     <snapshots><enabled>false</enabled></snapshots>
   </repository>
   <!-- for use with jexcelapi 2.6.8, portlet 2.0, javax.el/el-api 2.1 -->
   <repository>
     <id>jboss</id>
     <name>JBoss Repository</name>
     <url>http://repository.jboss.org/maven2</url>
     <snapshots><enabled>false</enabled></snapshots>
   </repository>
   <repository>
     <id>EclipseLink Repo</id>
     <url>http://mirror.cc.vt.edu/pub/eclipse/rt/eclipselink/maven.repo/</url>
     <snapshots><enabled>false</enabled></snapshots>
   </repository>
   <!-- for rome 1.0 -->
   <repository>
     <id>sun-repo-2</id>
     <url>http://download.java.net/maven/2/</url>
     <snapshots><enabled>false</enabled></snapshots>
   </repository>    
   <!-- fallback to S2 bundle repo for com.ibm.websphere.uow, oracle.classloader, com.sun.enterprise.loader -->
   <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>
     <snapshots><enabled>false</enabled></snapshots>
   </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>
     <snapshots><enabled>false</enabled></snapshots>
   </repository>
 </repositories>

This is not good, since now anytime a user attempts to import a Spring artifact each of these repositories is pinged before the artifact is retrieved, slowing performance. Also, should the EBR repositories be listed at all?

We should update the parent pom to remove the repositories and instead use a Maven profile that declares them and allows us to test a Maven-based build of Spring.


Affects: 3.0 RC3

Referenced from: commits 63996cb, 143ce57

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions