Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-6819

AnnotationDrivenStaticEntityMockingControl in spring-aspects module require javax.persistence.Entity on compiler classpath

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.0 GA
    • Fix Version/s: 4.1.2
    • Component/s: Core
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Aspect org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl require for ajc javax.persistence.Entity to be on classpath, hovewer spring-aspect pom.xml doesn't provide such dependency. As workaround one must declare dependency in affected module pom.xml

      <dependency>
        <groupId>javax.persistence</groupId>
        <artifactId>persistence-api</artifactId>
        <version>1.0</version>
        <scope>provided</scope>
      </dependency>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              snicoll Stéphane Nicoll
              Reporter:
              pkral Pavel Král
              Last updater:
              Spring Issues
              Votes:
              7 Vote for this issue
              Watchers:
              19 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 41 weeks, 1 day ago