Use an item <classifier>. how
<dependency>
<groupId>org.apache.avro</groupId>
<artifactId>avro-mapred</artifactId>
<version>1.7.7</version>
<classifier>hadoop2</classifier>
</dependency>
Beyond this: Usually using an IDE (e.g. Eclipse), when you try to add a dependency with the gui dialog box, it displays a list of different ones that you can choose from

source
share