diff --git a/maven-plugin/src/main/java/org/wildfly/galleon/maven/AbstractFeaturePackBuildMojo.java b/maven-plugin/src/main/java/org/wildfly/galleon/maven/AbstractFeaturePackBuildMojo.java index 4d93c80f..783b850d 100644 --- a/maven-plugin/src/main/java/org/wildfly/galleon/maven/AbstractFeaturePackBuildMojo.java +++ b/maven-plugin/src/main/java/org/wildfly/galleon/maven/AbstractFeaturePackBuildMojo.java @@ -190,6 +190,10 @@ static boolean isProvided(String module) { property = "wildfly.feature.pack.require.channel.resolution") protected WildFlyChannelResolutionMode wildflyChannelResolutionMode; + @Parameter(alias = "deploy-channel-manifest", required = false, defaultValue = "true", + property = "wildfly.feature.pack.deploy-channel-manifest") + protected boolean deployChannelManifest; + @Component protected RepositorySystem repoSystem; @@ -401,7 +405,9 @@ protected void buildFeaturePack(FeaturePackDescription.Builder fpBuilder, WildFl debug("Attaching channel manifest definition %s as a project artifact", channelManifestTarget); String channelManifest = createYAMLChannelManifest(buildConfig); Files.write(channelManifestTarget, channelManifest.getBytes()); - projectHelper.attachArtifact(project, ChannelManifest.EXTENSION, ChannelManifest.CLASSIFIER, channelManifestTarget.toFile()); + if (deployChannelManifest) { + projectHelper.attachArtifact(project, ChannelManifest.EXTENSION, ChannelManifest.CLASSIFIER, channelManifestTarget.toFile()); + } } } }