Skip to content

Commit

Permalink
experimental: BndMavenPlugin set pendantic:true
Browse files Browse the repository at this point in the history
Experimental: this causes more logging output which could be important during building bundles (but maybe not for baselining, so we only do it in BndMavenPlugin)

Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
  • Loading branch information
chrisrueger committed Oct 5, 2024
1 parent ba16fdb commit 11172b9
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
import java.io.File;
import java.util.List;

import aQute.bnd.osgi.Builder;
import aQute.bnd.osgi.Constants;
import org.apache.maven.model.Resource;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
Expand Down Expand Up @@ -77,4 +80,10 @@ public boolean isSkip() {
return skip;
}

@Override
protected void processBuilder(Builder builder) throws MojoFailureException {
// pendantic=true causes more log output which maybe important during
// building
builder.setProperty(Constants.PEDANTIC, Boolean.TRUE.toString());
}
}

0 comments on commit 11172b9

Please sign in to comment.