Skip to content

Commit

Permalink
The aetherUtils.isOptional() wasn't taking into account the actual …
Browse files Browse the repository at this point in the history
…optional state of the maven artifact (#113)
  • Loading branch information
quintesse committed Feb 4, 2015
1 parent 01b9303 commit 65e7d3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ MavenArtifactInfo[] getDependencies(InputStream pomXml) {
}

static boolean isOptional(MavenArtifactInfo info) {
return !(info.getScope() == ScopeType.COMPILE || info.getScope() == ScopeType.RUNTIME);
return info.isOptional() || !(info.getScope() == ScopeType.COMPILE || info.getScope() == ScopeType.RUNTIME);
}

void overrideSettingsXml(String settingsXml) {
Expand Down

0 comments on commit 65e7d3c

Please sign in to comment.