Remove binary scanner jar option
@@ -52,15 +52,6 @@ import io.openliberty.tools.maven.InstallFeatureSupport;
@Mojo(name = "generate-features")
public class GenerateFeaturesMojo extends InstallFeatureSupport {
- /**
- * The name of the jar file which contains the binary scanner used to detect features.
- */
- @Parameter(property = "featureScannerJar")
- private File binaryScanner;
-
- @Parameter(property = "classFiles")
- private List<String> classFiles;
-
protected static final String PLUGIN_ADDED_FEATURES_FILE = "configDropins/overrides/generated-features.xml";
protected static final String FEATURES_FILE_MESSAGE = "The Liberty Maven Plugin has generated Liberty features necessary for your application in " + PLUGIN_ADDED_FEATURES_FILE;
protected static final String HEADER = "# Generated by liberty-maven-plugin";
@@ -70,6 +61,11 @@ public class GenerateFeaturesMojo extends InstallFeatureSupport {
private static final String BINARY_SCANNER_MAVEN_TYPE = "jar";
private static final String BINARY_SCANNER_MAVEN_VERSION = "[0.0.1,)";
+ private File binaryScanner;
+
+ @Parameter(property = "classFiles")
+ private List<String> classFiles;
+
/*
* (non-Javadoc)
* @see org.codehaus.mojo.pluginsupport.MojoSupport#doExecute()
@@ -83,9 +79,7 @@ public class GenerateFeaturesMojo extends InstallFeatureSupport {
}
private void generateFeatures() throws PluginExecutionException {
- if (binaryScanner == null) {
binaryScanner = getBinaryScannerJarFromRepository();
- }
if (!classFiles.isEmpty()) {
log.debug("Generate features for the following class files: " + classFiles.toString());
@@ -226,14 +220,6 @@ public class GenerateFeaturesMojo extends InstallFeatureSupport {
private Set<String> runBinaryScanner(Set<String> currentFeatureSet) throws PluginExecutionException {
Set<String> featureList = null;
- if (binaryScanner == null) {
- // try using system property
- String featureScannerFileName = System.getProperty("io.openliberty.featureScannerJar");
- log.debug("BinaryScanner file name property missing, using System property io.openliberty.featureScannerJar="+featureScannerFileName);
- if (featureScannerFileName != null) {
- binaryScanner = new File(featureScannerFileName);
- }
- }
if (binaryScanner != null && binaryScanner.exists()) {
ClassLoader cl = this.getClass().getClassLoader();
try {
