What is maven dependency for spring?

What is maven dependency for spring?

Hi,

How I can add all the maven dependency of Spring Framework in pom.xml file?

Thanks

View Answers

April 25, 2017 at 8:58 AM

Hi,

Spring framework is big framework but its good news that all the modules are separate. In other words its independent and you can use modules as per your requirement.

You have not mentioned the version of Spring Framework. At the time of this answer spring framework's latest version was 4.3.8.RELEASE.

So, following is the pom.xml file which is using the full spring framework libraries:

<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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>SpringTest</groupId>
    <artifactId>SpringTest</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <properties>
        <org.springframework.version>4.3.8.RELEASE</org.springframework.version>
    </properties>


    <dependencies>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <version>${org.springframework.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-expression</artifactId>
            <version>${org.springframework.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
            <version>${org.springframework.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aop</artifactId>
            <version>${org.springframework.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>${org.springframework.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context-support</artifactId>
            <version>${org.springframework.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-tx</artifactId>
            <version>${org.springframework.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-jdbc</artifactId>
            <version>${org.springframework.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-orm</artifactId>
            <version>${org.springframework.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-oxm</artifactId>
            <version>${org.springframework.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
            <version>${org.springframework.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <version>${org.springframework.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc-portlet</artifactId>
            <version>${org.springframework.version}</version>
        </dependency>


        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-test</artifactId>
            <version>${org.springframework.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <sourceDirectory>src</sourceDirectory>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.5.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

Thanks









Related Tutorials/Questions & Answers:
springs
Springs Core
Advertisements
ModuleNotFoundError: No module named 'springy'
ModuleNotFoundError: No module named 'springy'
Spring3 integration with Struts2
springs
springs
What is Maven dependency for Hibernate?
What is maven dependency for spring?
spring3 mvc appliation bean definition not found error
spring3 mvc appliation bean definition not found error
what are aws maven dependency in java
What is the maven dependency for spring batch?
how to develop student details using springs
What is maven dependency and how to use it in project?
downloading excel file using Java and springs
why we use struts framework instead of springs
What is maven central?
What is JsonParser dependency
What is a "functional dependency"?
Maven Repository/Dependency: com.semanticcms | semanticcms-view-what-links-here
Maven Dependency semanticcms-view-what-links-here >> 1.0
About springs - JDBC
What is Apache Maven?
What are the types of Dependency Injection Spring supports
Maven dependency for com.semanticcms - semanticcms-view-what-links-here version 1.5.1 is released. Learn to use semanticcms-view-what-links-here version 1.5.1 in Maven based Java projects
Maven dependency for com.semanticcms - semanticcms-view-what-links-here version 1.5.0 is released. Learn to use semanticcms-view-what-links-here version 1.5.0 in Maven based Java projects
Maven dependency for com.semanticcms - semanticcms-view-what-links-here version 1.6.0 is released. Learn to use semanticcms-view-what-links-here version 1.6.0 in Maven based Java projects
Maven dependency for com.semanticcms - semanticcms-view-what-links-here version 1.7.0 is released. Learn to use semanticcms-view-what-links-here version 1.7.0 in Maven based Java projects
Maven dependency for com.semanticcms - semanticcms-view-what-links-here version 1.4.3 is released. Learn to use semanticcms-view-what-links-here version 1.4.3 in Maven based Java projects
Version of com.semanticcms>semanticcms-view-what-links-here dependency
What is IOC ?
Hibernate 5 Annotations Maven dependency
what is bit
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
What is procedure
what is hibernate.archive.autodetection
What is Hibernate
What is Hibernate
What is Hibernate
What is JDBC?
What is FBT
What is ActionServlet?
What is Trigger?
What is VLR ?
What's PHP ?

Ads