linkXRef set to false and check for summaryFile value
@@ -560,7 +560,7 @@ public class DevMojo extends StartDebugMojoSupport {
// clean up previous summary file
File summaryFile = null;
Xpp3Dom summaryFileElement = config.getChild("summaryFile");
- if (summaryFileElement != null) {
+ if (summaryFileElement != null && summaryFileElement.getValue() != null) {
summaryFile = new File(summaryFileElement.getValue());
} else {
summaryFile = new File(project.getBuild().getDirectory() + "/failsafe-reports/failsafe-summary.xml");
@@ -579,6 +579,7 @@ public class DevMojo extends StartDebugMojoSupport {
} else if (phase.equals("failsafe-report-only")) {
Plugin failsafePlugin = getPlugin("org.apache.maven.plugins", "maven-failsafe-plugin");
Xpp3Dom failsafeConfig = getPluginConfig(failsafePlugin, "integration-test");
+ Xpp3Dom linkXRef = new Xpp3Dom("linkXRef");
if (failsafeConfig != null) {
Xpp3Dom reportsDirectoryElement = failsafeConfig.getChild("reportsDirectory");
if (reportsDirectoryElement != null) {
@@ -586,16 +587,17 @@ public class DevMojo extends StartDebugMojoSupport {
reportDirectories.addChild(reportsDirectoryElement);
config.addChild(reportDirectories);
}
- Xpp3Dom linkXRef = failsafeConfig.getChild("linkXRef");
+ linkXRef = failsafeConfig.getChild("linkXRef");
if (linkXRef == null) {
linkXRef = new Xpp3Dom("linkXRef");
}
+ }
linkXRef.setValue("false");
config.addChild(linkXRef);
- }
} else if (phase.equals("report-only")) {
Plugin surefirePlugin = getPlugin("org.apache.maven.plugins", "maven-surefire-plugin");
Xpp3Dom surefireConfig = getPluginConfig(surefirePlugin, "test");
+ Xpp3Dom linkXRef = new Xpp3Dom("linkXRef");
if (surefireConfig != null) {
Xpp3Dom reportsDirectoryElement = surefireConfig.getChild("reportsDirectory");
if (reportsDirectoryElement != null) {
@@ -603,14 +605,14 @@ public class DevMojo extends StartDebugMojoSupport {
reportDirectories.addChild(reportsDirectoryElement);
config.addChild(reportDirectories);
}
- Xpp3Dom linkXRef = surefireConfig.getChild("linkXRef");
+ linkXRef = surefireConfig.getChild("linkXRef");
if (linkXRef == null) {
linkXRef = new Xpp3Dom("linkXRef");
}
+ }
linkXRef.setValue("false");
config.addChild(linkXRef);
}
- }
log.debug(artifactId + " configuration for " + phase + " phase: " + config);
executeMojo(plugin, goal(phase), config, executionEnvironment(project, session.clone(), pluginManager));
