AbstractAnnotationConfigDispatcherServletInitializer is missing from my Maven build

For whatever reason, maven did not build the

AbstractAnnotationConfigDispatcherServletInitializer 

class. Bellow are the relevant parts of my pom.xml that contains necessary spring dependencies:

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>${org.springframework-version}</version>
        <exclusions>
            <!-- Exclude Commons Logging in favor of SLF4j -->
            <exclusion>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging</artifactId>
             </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-webmvc</artifactId>
        <version>${org.springframework-version}</version>
    </dependency>

The build as shown in eclipse for the relevant directory looks like:

It should be built under the package org.springframework.web.servlet.support. Am I missing something? How can rebuild maven dependencies to get this class?

Answers


The convenience subclasses for WebAplicationInitializers were added in Spring 3.2.x so upgrade so one of the 3.2 version. (Currently 3.2.5.RELEASE is the latest).


Need Your Help

How to exclude part of regexp with grep

regex macos grep

Hi suppose you have the following output from 'some_command':

.NET 2.0 or 3.5?

c# .net linq vb6 vb6-migration

Our clients use a vb6 version of our software.