Also build module where Liberty is running
@@ -60,6 +60,11 @@ public class RunServerMojo extends PluginConfigSupport {
List<MavenProject> downstreamProjects = graph.getDownstreamProjects(project, true);
if (!downstreamProjects.isEmpty()) {
log.debug("Downstream projects: " + downstreamProjects);
+ skipRunServer = true;
+ }
+ }
+
+ // Proceed to build this module (regardless of whether Liberty will run on it afterwards)
if (projectPackaging.equals("ear")) {
runMojo("org.apache.maven.plugins", "maven-ear-plugin", "generate-application-xml");
runMojo("org.apache.maven.plugins", "maven-resources-plugin", "resources");
@@ -67,9 +72,6 @@ public class RunServerMojo extends PluginConfigSupport {
runMojo("org.apache.maven.plugins", "maven-resources-plugin", "resources");
runMojo("org.apache.maven.plugins", "maven-compiler-plugin", "compile");
}
- skipRunServer = true;
- }
- }
if (!looseApplication) {
try {
@@ -96,6 +98,7 @@ public class RunServerMojo extends PluginConfigSupport {
}
}
+ // Return if Liberty should not be run on this module
if (skipRunServer) {
return;
}
