Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring online repository for Maven

I've just installed Maven2 for the first time.

By default it pulls down a few useful jars into a local project: jakarta-commons, junit etc.

I wanted to pull in the latest Spring release (2.5.6 at the time of writing). But the online repositories I looked at (iBiblio and Maven) only had much older versions of Spring libraries.

Are there any other repositories that are kept up to date? What is the best practice here; can we maintain them ourselves? I would be prepared to help out maintaining this stuff!

like image 671
Fortyrunner Avatar asked May 02 '09 21:05

Fortyrunner


People also ask

What is Maven repository in spring?

A maven repository is a directory of packaged JAR file with pom. xml file. Maven searches for dependencies in the repositories. There are 3 types of maven repository: Local Repository.

What is spring release version?

Spring Cloud 2022.0. 0-M5 is now available The release can be found in Spring Milestone repository. You can check out the 2022.0. 0 release notes for more information.

What is spring Webmvc used for?

In Spring Web MVC you can use any object as a command or form-backing object; you do not need to implement a framework-specific interface or base class. Spring's data binding is highly flexible: for example, it treats type mismatches as validation errors that can be evaluated by the application, not as system errors.


2 Answers

Actually I think you are way better of if you use the spring enterprise repository.

http://www.springsource.com/repository/

There is not only the spring distribution available, but also many other libraries, with correct dependencies to each other (which is not the case for the official maven repositories!). Further, it is also an OBR, so every library is also already an OSGI bundle!

<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>
    <releases>
        <enabled>true</enabled>
        <updatePolicy>daily</updatePolicy>
        <checksumPolicy>warn</checksumPolicy>
    </releases>
</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>
    <releases>
        <enabled>true</enabled>
        <updatePolicy>daily</updatePolicy>
        <checksumPolicy>warn</checksumPolicy>
    </releases>
</repository>
<repository>
    <id>com.springsource.repository.libraries.release
    </id>
    <name>SpringSource Enterprise Bundle Repository -
        SpringSource Library Releases</name>
    <url>http://repository.springsource.com/maven/libraries/release
    </url>
    <releases>
        <enabled>true</enabled>
        <updatePolicy>daily</updatePolicy>
        <checksumPolicy>warn</checksumPolicy>
    </releases>
</repository>
<repository>
    <id>com.springsource.repository.libraries.external
    </id>
    <name>SpringSource Enterprise Bundle Repository -
        External Library Releases</name>
    <url>http://repository.springsource.com/maven/libraries/external
    </url>
    <releases>
        <enabled>true</enabled>
        <updatePolicy>daily</updatePolicy>
        <checksumPolicy>warn</checksumPolicy>
    </releases>
</repository>
like image 170
Mauli Avatar answered Sep 24 '22 01:09

Mauli


Just follow this article: Obtaining Spring 3 Artifacts with Maven

like image 20
Iker Jimenez Avatar answered Sep 22 '22 01:09

Iker Jimenez