Maven: Plugin 'org.apache.avro:avro-maven-plugin:1.8.2' not found

by Nick Ryan   Last Updated July 12, 2019 08:26 AM

I want to use avro-maven-plugin to generate classes from *.avsc files. Using this tutorial: https://avro.apache.org/docs/1.8.2/gettingstartedjava.html i added avro-maven-plugin in m Plugin 'org.apache.avro:avro-maven-plugin:1.8.2' not found. I tried to change version but result was the same.

pom.xml:

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.avro</groupId>
            <artifactId>avro-maven-plugin</artifactId>
            <version>1.8.2</version>
            <executions>
                <execution>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>schema</goal>
                    </goals>
                    <configuration>
                        <sourceDirectory>${project.basedir}/src/main/avro/</sourceDirectory>
                        <outputDirectory>${project.basedir}/src/main/java/</outputDirectory>
                    </configuration>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
            </configuration>
        </plugin>
    </plugins>
</build>

<dependencies>
    <dependency>
        <groupId>org.apache.avro</groupId>
        <artifactId>avro</artifactId>
        <version>1.8.2</version>
    </dependency>
</dependencies>
Tags : maven plugins avro


Related Questions


Updated July 27, 2018 06:26 AM

Updated February 19, 2018 02:26 AM

Updated March 26, 2015 13:08 PM

Updated December 28, 2017 11:26 AM

Updated August 27, 2017 05:26 AM