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

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

    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:
      false

      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:
                Stéphane Nicoll
              • Votes:
                7 Vote for this issue
                Watchers:
                19 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 30 weeks, 2 days ago