diff --git a/src/main/java/com/akathist/maven/plugins/launch4j/Launch4jMojo.java b/src/main/java/com/akathist/maven/plugins/launch4j/Launch4jMojo.java index d3e4da2..77d08b2 100644 --- a/src/main/java/com/akathist/maven/plugins/launch4j/Launch4jMojo.java +++ b/src/main/java/com/akathist/maven/plugins/launch4j/Launch4jMojo.java @@ -357,7 +357,11 @@ public void execute() throws MojoExecutionException { c.setHeaderType(headerType); c.setOutfile(outfile); - c.setJar(getJar()); + + if(!dontWrapJar){ + c.setJar(getJar()); + } + c.setDontWrapJar(dontWrapJar); c.setErrTitle(errTitle); c.setDownloadUrl(downloadUrl);