It looks like flink-gelly did not get into your jar file. The most obvious cause of this problem is the lack of a maven dependency in the pom project file. But I assume that there is a dependency, otherwise development of work in the IDE would be impossible.
Most likely, the jar file was created by maven-jar-plugin , which does not include dependencies. Try adding the following snippet to pom.xml :
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>2.3</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <filters> <filter> <artifact>org.apache.flink:*</artifact> <excludes> <exclude>org/apache/flink/shaded/**</exclude> <exclude>web-docs/**</exclude> </excludes> </filter> </filters> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <mainClass>YOURMAINCLASS</mainClass> </transformer> </transformers> <createDependencyReducedPom>false</createDependencyReducedPom> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>build-jar</id> <activation> <activeByDefault>false</activeByDefault> </activation> <dependencies> <dependency> <groupId>org.apache.flink</groupId> <artifactId>flink-java</artifactId> <version>0.9-SNAPSHOT</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.flink</groupId> <artifactId>flink-streaming-core</artifactId> <version>0.9-SNAPSHOT</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.flink</groupId> <artifactId>flink-clients</artifactId> <version>0.9-SNAPSHOT</version> <scope>provided</scope> </dependency> </dependencies> </profile> </profiles>
Now you can create the jar using mvn clean package -Pbuild-jar . Now the jar file will be in the target/ directory.
You can manually check if the jar (zip) file contains class files in /org/apache/flink/graph/
source share