Tibor Digana created SUREFIRE-1491:
--------------------------------------
Summary: LocationManager injected in MOJO unables plugin to run in
JDK 1.6
Key: SUREFIRE-1491
URL: https://issues.apache.org/jira/browse/SUREFIRE-1491
Project: Maven Surefire
Issue Type: Improvement
Reporter: Tibor Digana
Assignee: Tibor Digana
Fix For: 2.21.0
{{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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)