mirror of https://github.com/sbt/sbt.git
PomGenerator never emitted <type> for dependencies with explicit artifacts, so a WAR dependency would appear in the POM without <type>war</type>. Maven then treats it as a JAR dependency, resolving the wrong artifact. Uses the primary (non-classifier) artifact to determine the type, so .withSources()/.withJavadoc() classifier artifacts don't produce spurious <type>doc</type> or <type>src</type> elements. Fixes #1979 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| main | ||
| test | ||