1. Flink Could not resolve substitution to a value: ${akka.stream.materializer}

报错现象:
“**Exception in thread “main” com.typesafe.config.ConfigException$UnresolvedSubstitution: reference.conf @ jar:file:/bigdata/app/flink-1.0-SNAPSHOT-jar-with-dependencies.jar!/reference.conf: 804: Could not resolve substitution to a value: ${akka.stream.materializer}”Flink-编译错误 - 图1

解决方案:

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <!--******************* 略 *******************-->
  6. <properties>
  7. <!--******************* 略 *******************-->
  8. </properties>
  9. <dependencies>
  10. <!--******************* 略 *******************-->
  11. </dependencies>
  12. <build>
  13. <plugins>
  14. <!--******************* 略 *******************-->
  15. <plugin>
  16. <groupId>org.apache.maven.plugins</groupId>
  17. <artifactId>maven-shade-plugin</artifactId>
  18. <version>2.3</version>
  19. <executions>
  20. <execution>
  21. <phase>package</phase>
  22. <goals>
  23. <goal>shade</goal>
  24. </goals>
  25. <configuration>
  26. <transformers>
  27. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  28. <mainClass>flink.xxx</mainClass>
  29. </transformer>
  30. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  31. <resource>reference.conf</resource>
  32. </transformer>
  33. </transformers>
  34. </configuration>
  35. </execution>
  36. </executions>
  37. </plugin>
  38. </plugins>
  39. </build>
  40. </project>