code: protected void copyDependencies(String outputSubdirectory)
              throws MojoExecutionException {
  
          outputDirectory = project.getBuild().getDirectory();
          baseDirectory = project.getBasedir().getAbsolutePath();
  
          String outputDirectory = outputSubdirectory == null
                  ? this.outputDirectory + "/dependency"
                  : this.outputDirectory + "/" + outputSubdirectory;
  
          executeMojo(
                  plugin(
                          groupId("org.apache.maven.plugins"),
                          artifactId("maven-dependency-plugin"),
                          version(MojoConstants.MAVEN_DEPENDENCY_PLUGIN_VERSION)
                  ),
                  goal("copy-dependencies"),
                  configuration(
                          element("includeScope", "runtime"),
                          element("overWriteSnapshots", "true"),
                          element("excludeArtifactIds", "kumuluzee-loader"),
                          element("outputDirectory", outputDirectory)
                  ),
                  executionEnvironment(project, session, buildPluginManager)
          );
  
          copyOrCreateWebapp();
      }
docs: Copies dependencies to /target/dependency or to target/{outputSubdirectory} if the outputSubdirectory parameter is
  provided