Merge branch 'develop' into stable
This commit is contained in:
@@ -29,6 +29,7 @@ import org.apache.maven.model.Plugin;
|
||||
import org.apache.maven.plugin.MojoFailureException;
|
||||
import org.apache.maven.plugin.PluginResolutionException;
|
||||
import org.apache.maven.plugin.internal.PluginDependenciesResolver;
|
||||
import org.apache.maven.plugins.annotations.Parameter;
|
||||
import org.apache.maven.project.DefaultDependencyResolutionRequest;
|
||||
import org.apache.maven.project.DependencyResolutionException;
|
||||
import org.apache.maven.project.DependencyResolutionResult;
|
||||
@@ -44,6 +45,8 @@ import org.eclipse.aether.impl.VersionRangeResolver;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import com.inteligr8.maven.ban.model.ImportConfig;
|
||||
|
||||
@Named("ban")
|
||||
@Singleton
|
||||
public class BanExtension extends AbstractMavenLifecycleParticipant {
|
||||
@@ -65,6 +68,18 @@ public class BanExtension extends AbstractMavenLifecycleParticipant {
|
||||
|
||||
@Inject
|
||||
private PluginDependenciesResolver pluginDepResolver;
|
||||
|
||||
/**
|
||||
* The configuration is parsed manually. This is here to prevent warning messages with IDEs and builders.
|
||||
*/
|
||||
@Parameter(name = "import")
|
||||
private ImportConfig importConfig;
|
||||
|
||||
@Parameter(name = "includes")
|
||||
private List<String> includes;
|
||||
|
||||
@Parameter(name = "excludes")
|
||||
private List<String> excludes;
|
||||
|
||||
@Override
|
||||
public void afterProjectsRead(MavenSession session) throws MavenExecutionException {
|
||||
|
11
src/main/java/com/inteligr8/maven/ban/model/Config.java
Normal file
11
src/main/java/com/inteligr8/maven/ban/model/Config.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package com.inteligr8.maven.ban.model;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Config {
|
||||
|
||||
public ImportConfig importConfigs;
|
||||
public List<String> includes;
|
||||
public List<String> excludes;
|
||||
|
||||
}
|
@@ -0,0 +1,10 @@
|
||||
package com.inteligr8.maven.ban.model;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ImportConfig {
|
||||
|
||||
public List<String> url;
|
||||
public List<String> artifact;
|
||||
|
||||
}
|
Reference in New Issue
Block a user