Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1491

LocationManager injected in MOJO unables plugin to run in JDK 1.6

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.21.0
    • Component/s: None
    • Labels:
      None

      Description

      LocationManager is a singleton however the constructor does not inject MavenProject nor another objects managed by Maven instance.
      It can be constructed by a pure call.
      In 3.0.0-M1 and Java 1.7 we will inject it as @Component.
      ITs do not use Java 1.7 API and unit tests either. The test ModularClasspathForkConfigurationTest should assume 1.7 and the test AbstractSurefireMojoTest should split in test class with 1.6 and another with 1.7.

        Attachments

          Activity

            People

            • Assignee:
              tibor17 Tibor Digana
              Reporter:
              tibor17 Tibor Digana
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: