How to specify avoop2 avro-mapred version in maven?

For the jar version, I need avro-mapred-1.7.7-hadoop2.jar. Here is a list of assemblies on the maven central server. How to tell Maven to get hadoop2?

+4
source share
1 answer

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

enter image description here

+5
source

All Articles