Skip to content

Commit 60953f2

Browse files
committed
[SUREFIRE-2281] Upgrade to Doxia 2.0.0 GA Stack
This closes #794
1 parent f144b13 commit 60953f2

File tree

2 files changed

+3
-41
lines changed

2 files changed

+3
-41
lines changed

maven-surefire-report-plugin/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</prerequisites>
4747

4848
<properties>
49-
<doxiaVersion>2.0.0-M12</doxiaVersion>
49+
<doxiaVersion>2.0.0</doxiaVersion>
5050
</properties>
5151

5252
<dependencies>
@@ -114,7 +114,7 @@
114114
<dependency>
115115
<groupId>org.apache.maven.reporting</groupId>
116116
<artifactId>maven-reporting-impl</artifactId>
117-
<version>4.0.0-M15</version>
117+
<version>4.0.0</version>
118118
</dependency>
119119
<dependency>
120120
<groupId>org.codehaus.plexus</groupId>

maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/AbstractSurefireReport.java

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public void executeReport(Locale locale) {
154154
locale,
155155
getConsoleLogger(),
156156
getReportsDirectories(),
157-
constructXrefTestLocation(),
157+
linkXRef ? constructXrefLocation(xrefTestLocation, true) : null,
158158
showSuccess);
159159
r.render();
160160
}
@@ -256,44 +256,6 @@ private List<MavenProject> getProjectsWithoutRoot() {
256256
return result;
257257
}
258258

259-
private String constructXrefTestLocation() {
260-
String location = null;
261-
if (linkXRef) {
262-
File xrefTestLocation = getXrefTestLocation();
263-
264-
String relativePath = PathTool.getRelativePath(
265-
getReportOutputDirectory().getAbsolutePath(), xrefTestLocation.getAbsolutePath());
266-
if (relativePath == null || relativePath.isEmpty()) {
267-
relativePath = ".";
268-
}
269-
relativePath = relativePath + "/" + xrefTestLocation.getName();
270-
if (xrefTestLocation.exists()) {
271-
// XRef was already generated by manual execution of a lifecycle binding
272-
location = relativePath;
273-
} else {
274-
// Not yet generated - check if the report is on its way
275-
Reporting reporting = project.getModel().getReporting();
276-
List<ReportPlugin> reportPlugins =
277-
reporting != null ? reporting.getPlugins() : Collections.<ReportPlugin>emptyList();
278-
for (ReportPlugin plugin : reportPlugins) {
279-
String artifactId = plugin.getArtifactId();
280-
if ("maven-jxr-plugin".equals(artifactId)) {
281-
location = relativePath;
282-
}
283-
}
284-
}
285-
286-
if (location == null) {
287-
getConsoleLogger().warning("Unable to locate Test Source XRef to link to - DISABLED");
288-
}
289-
}
290-
return location;
291-
}
292-
293-
private File getXrefTestLocation() {
294-
return xrefTestLocation != null ? xrefTestLocation : new File(getReportOutputDirectory(), "xref-test");
295-
}
296-
297259
/**
298260
* @param locale The locale
299261
* @param key The key to search for

0 commit comments

Comments
 (0)