Buggy code:
@ Slf4j public final class MavenCli { protected final File mavenHome ; protected final File javaHome ; protected final String xms ; protected final String xmx ; protected final String maxPermSize ; protected final File pom ; protected final boolean alsoMake ; protected final boolean alsoMakeDependents ; protected final boolean debug ; protected final boolean nonRecursive ; protected final boolean failAtEnd ; protected final List < String > goals ; protected final Set < String > profiles ; protected final Set < String > projects ; protected final Set < String > mavenOpts ; protected final Map < String , String > sysProps ; protected final Set < String > params ; private MavenCli ( MavenCli . Builder builder ) { } protected void checkMandatoryProperty ( String name , Object value ) { } public String getXms ( ) { } public String getXmx ( ) { } public String getMaxPermSize ( ) { } public Set < String > getParams ( ) { } public File getMavenHome ( ) { } public File getJavaHome ( ) { } public File getPom ( ) { } public boolean isAlsoMake ( ) { } public boolean isDebug ( ) { } public boolean isNonRecursive ( ) { } public boolean isAlsoMakeDependents ( ) { } public boolean isFailAtEnd ( ) { } public Set < String > getMavenOpts ( ) { } public Map < String , String > getSysProps ( ) { } public List < String > getGoals ( ) { } public Set < String > getProfiles ( ) { } public Set < String > getProjects ( ) { } private List < String > generateCommand ( ) { } public int run ( ) throws Exception { final ProcessBuilder processBuilder = new ProcessBuilder ( generateCommand ( ) ) ; processBuilder . redirectOutput ( ProcessBuilder . Redirect . INHERIT ) ; processBuilder . redirectError ( ProcessBuilder . Redirect . INHERIT ) ; processBuilder . environment ( ) . putAll ( System . getenv ( ) ) ; if ( ( javaHome ) != null ) { processBuilder . environment ( ) . put ( "JAVA_HOME" , javaHome . getAbsolutePath ( ) ) ; } if ( ( mavenHome ) != null ) { processBuilder . environment ( ) . put ( "M2_HOME" , mavenHome . getAbsolutePath ( ) ) ; } <START_BUG> processBuilder . environment ( ) . put ( "MAVEN_OTPS" , StringUtils . join ( mavenOpts , "<seq2seq4repair_space>" ) ) ; <END_BUG> log . info ( "JAVA_HOME={}" , processBuilder . environment ( ) . get ( "JAVA_HOME" ) ) ; log . info ( "M2_HOME={}" , processBuilder . environment ( ) . get ( "M2_HOME" ) ) ; log . info ( "MAVEN_OPTS={}" , processBuilder . environment ( ) . get ( "MAVEN_OPTS" ) ) ; final Process process = processBuilder . start ( ) ; return process . waitFor ( ) ; } public static class Builder { private File mavenHome ; private File javaHome ; private String xms ; private String xmx ; private String maxPermSize ; private File pom ; private boolean alsoMake ; private boolean alsoMakeDependents ; private boolean debug ; private boolean nonRecursive ; private boolean failAtEnd ; private List < String > goals ; private Set < String > profiles ; private Set < String > projects ; private Set < String > mavenOpts ; private Map < String , String > sysProps ; private Set < String > params ; public Builder ( ) { } public MavenCli . Builder mavenHome ( File mavenHome ) { } public MavenCli . Builder javaHome ( File javaHome ) { } public MavenCli . Builder xms ( String xms ) { } public MavenCli . Builder xmx ( String xmx ) { } public MavenCli . Builder maxPermSize ( String maxPermSize ) { } public MavenCli . Builder alsoMake ( boolean alsoMake ) { } public MavenCli . Builder alsoMakeDependents ( boolean alsoMakeDependents ) { } public MavenCli . Builder debug ( boolean debug ) { } public MavenCli . Builder nonRecursive ( boolean nonRecursive ) { } public MavenCli . Builder failAtEnd ( boolean failAtEnd ) { } public MavenCli . Builder pom ( File pom ) { } public MavenCli . Builder pom ( String pom ) { } public MavenCli . Builder goals ( String ... goals ) { } public MavenCli . Builder goals ( Collection < String > goals ) { } public MavenCli . Builder profiles ( String ... profiles ) { } public MavenCli . Builder profiles ( Collection < String > profiles ) { } public MavenCli . Builder projects ( String ... projects ) { } public MavenCli . Builder projects ( Collection < String > projects ) { } public MavenCli . Builder mavenOpts ( String ... mavenOpts ) { } public MavenCli . Builder mavenOpts ( Collection < String > mavenOpts ) { } public MavenCli . Builder sysProp ( String key , String value ) { } public MavenCli . Builder params ( String ... params ) { } public MavenCli . Builder params ( Collection < String > params ) { } public MavenCli build ( ) { } } }

Fix:
processBuilder . environment ( ) . put ( "MAVEN_OPTS" , StringUtils . join ( mavenOpts , "<seq2seq4repair_space>" ) ) ;