Improve the fix
@@ -318,7 +318,7 @@ public class GenerateDescriptorMojo extends MojoSupport {
try {
if (enableGeneration == null) {
String packaging = this.project.getPackaging();
- enableGeneration = !"feature".equals(packaging);
+ enableGeneration = "feature".equals(packaging);
}
if (!enableGeneration) {
@@ -329,8 +329,8 @@ public class GenerateDescriptorMojo extends MojoSupport {
}
filter(inputFile, outputFile);
projectHelper.attachArtifact(project, attachmentArtifactType, attachmentArtifactClassifier, outputFile);
- return;
}
+ return;
}
this.dependencyHelper = DependencyHelperFactory.createDependencyHelper(this.container, this.project, this.mavenSession, getLog());
