Created
March 17, 2019 15:35
-
-
Save sureshnath/361725cc9bacfb5bcfb1a27c57956d87 to your computer and use it in GitHub Desktop.
MoJo command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/31620967/any-way-to-specify-a-fileset-as-command-line-parameter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mvn so:multiple-value-maven-plugin:values
-Darray=VALUE_1,VALUE_2,VALUE_3
-Dlist=VALUE_1,VALUE_2,VALUE_3
-Dset=VALUE_1,VALUE_2,VALUE_3
-Dmap=KEY_1=VALUE_1,KEY_2=VALUE_2,KEY_3=VALUE_3
-Dincludes=/,/usr/*
-Dexcludes=/root,/tmp
package so;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import org.apache.maven.model.FileSet;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
@mojo( name = "values", requiresProject = false )
public class MultipleValuesMojo extends AbstractMojo
{
@parameter( property = "array", required = true )
private String[] array;