Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import Apache Flink SNAPSHOT artifacts?

I want to add the documents of Gelly to my project, but it gives me this error:

Sources not found for: org.apache.flink:flink-gelly_2.10:1.2-SNAPSHOT

This is in my pom.xml

<dependency>
    <groupId>org.apache.flink</groupId>
    <artifactId>flink-gelly_2.10</artifactId>
    <version>1.2-SNAPSHOT</version>
</dependency>

I tried looking for a different version of gelly to solve this issue but couldn't find any. is there any other way to get the documentation?

like image 504
Wouter Ligtenberg Avatar asked Sep 26 '16 12:09

Wouter Ligtenberg


1 Answers

Apache publishes SNAPSHOT artifacts only to a dedicated Maven repository. Note that these artifacts are only meant for development purposes. They are not part of an official Apache Flink release!

You have to add the following repository configuration to your pom.xml to receive SNAPSHOT artifacts:

<repositories>
    <repository>
      <id>apache.snapshots</id>
      <name>Apache Development Snapshot Repository</name>
      <url>https://repository.apache.org/content/repositories/snapshots/</url>
      <releases><enabled>false</enabled></releases>
      <snapshots><enabled>true</enabled></snapshots>
   </repository>
</repositories>

Alternatively, you can download the latest Flink code and build it on your local machine.

like image 160
Fabian Hueske Avatar answered Oct 28 '22 19:10

Fabian Hueske