Correctly attach the artifacts when inputFile doesn't exist
@@ -329,9 +329,9 @@ public class GenerateDescriptorMojo extends MojoSupport {
}
filter(inputFile, outputFile);
projectHelper.attachArtifact(project, attachmentArtifactType, attachmentArtifactClassifier, outputFile);
- }
return;
}
+ }
this.dependencyHelper = DependencyHelperFactory.createDependencyHelper(this.container, this.project, this.mavenSession, getLog());
this.dependencyHelper.getDependencies(project, includeTransitiveDependency);
@@ -344,7 +344,6 @@ public class GenerateDescriptorMojo extends MojoSupport {
}
// now lets attach it
projectHelper.attachArtifact(project, attachmentArtifactType, attachmentArtifactClassifier, outputFile);
-
} else {
throw new MojoExecutionException("Could not create directory for features file: " + dir);
}
