Set<Artifact> dependencyArtifacts = mavenParameters.getMavenProject().getArtifacts();
Set<String> classPathEntries = new HashSet<>();
for (Artifact artifact : dependencyArtifacts) {
String scope = artifact.getScope();
if (!"test".equals(scope) && !artifact.isOptional()) {
<BUG>Set<Artifact> artifacts = resolveArtifact(artifact, mavenParameters, false, pluginParameters);
</BUG>
for (Artifact resolvedArtifact : artifacts) {
File resolvedFile = resolvedArtifact.getFile();
if (resolvedFile != null) {

Set<Artifact> dependencyArtifacts = mavenParameters.getMavenProject().getArtifacts();
Set<String> classPathEntries = new HashSet<>();
for (Artifact artifact : dependencyArtifacts) {
String scope = artifact.getScope();
if (!"test".equals(scope) && !artifact.isOptional()) {
Set<Artifact> artifacts = resolveArtifact(artifact, mavenParameters, false, pluginParameters, configurationVersion);
for (Artifact resolvedArtifact : artifacts) {
File resolvedFile = resolvedArtifact.getFile();
if (resolvedFile != null) {
