diff --git a/src/main/java/org/codehaus/mojo/exec/ExecMojo.java b/src/main/java/org/codehaus/mojo/exec/ExecMojo.java index 557392e6..06c5fe1b 100644 --- a/src/main/java/org/codehaus/mojo/exec/ExecMojo.java +++ b/src/main/java/org/codehaus/mojo/exec/ExecMojo.java @@ -460,6 +460,10 @@ else if ( args[i].contains( CLASSPATH_TOKEN ) ) { commandArguments.add( args[i].replace( CLASSPATH_TOKEN, computeClasspathString( null ) ) ); } + else if ( args[i].contains( MODULEPATH_TOKEN ) ) + { + commandArguments.add( args[i].replace( MODULEPATH_TOKEN, computeClasspathString( null ) ) ); + } else { commandArguments.add( args[i] );