Avoid NPE when artifactLocations is not provided to karaf-maven-plugin:deploy
@@ -109,7 +109,9 @@ public class DeployMojo extends MojoSupport {
Artifact projectArtifact = project.getArtifact();
artifacts.add("mvn:" + projectArtifact.getGroupId() + "/" + projectArtifact.getArtifactId() + "/" + projectArtifact.getVersion());
}
+ if (artifactLocations != null) {
artifacts.addAll(artifactLocations);
+ }
if (useSsh)
deployWithSsh(artifactLocations);
else deployWithJmx(artifactLocations);
