sbt / sbt-pom-reader

Translates xml -> awesome. Maven-ish support for sbt.
Other
76 stars 27 forks source link

Dependencies not pulled when they have classifiers. #37

Closed varuns-zetaris closed 8 months ago

varuns-zetaris commented 9 years ago

pom reader fails to resolve dependencies when they are of the format :

    <dependency>
        <groupId>org.apache.spark</groupId>
        <artifactId>spark-sql_2.10</artifactId>
        <version>${spark.version}</version>
        <type>test-jar</type>
        <scope>test</scope>
    </dependency>

When you add a classifier - the plugin fails to load the dependency

metasim commented 9 years ago

@varuns-zetaris I'm not sure this is a bug. In my understanding of Maven coordinates <type>test-jar</type> wouldn't be considered (by default) a classpath-loaded dependency. If you change type to jar does it work?

metasim commented 9 years ago

@varuns-zetaris To be technically precise, your example isn't showing the use of a maven classifier coordinate. See here for details on the differences between classifier, type, and scope.