Petclinic spring -mvc example not building

I just co https://src.springframework.org/svn/spring-samples/ and tried to build a buttonhole. I did:

  • mvn clean install
  • mvn eclipse: eclipse

I imported into the eclipse, but:

The import org.aspectj cannot be resolved

What are the chances of what's pom.xmlwrong and should I add the addiction myself?

+3
source share
1 answer

This is a known bug in the maven eclipse plugin.

A simple workaround is to specify adjtVersion in the maven-eclipse-plugin POM configuration section (or just upgrade your version: D):

<ajdtVersion>none</ajdtVersion>

EclipseClassPathWriter contains the following code:

    // Skip aspectj libraries since they are in the container.
            if ( ( config.getAjdtVersion() != 0 ) &&
               dep.getArtifactId().toLowerCase().indexOf( "aspectj" ) >= 0 )
            {
                return;
            }
+1

Source: https://habr.com/ru/post/1758224/


All Articles