flink 项目打包成jar包使用java -jar运行异常
java -jar错误信息如下:
Exception in thread "main" com.typesafe.config.ConfigException$UnresolvedSubstitution: reference.conf @ jar:file:flinkdemo-1.0-SNAPSHOT-jar-with-dependencies.jar!/reference.conf: 875: Could not resolve substitution to a value: ${akka.stream.materializer}
解决方法
pom.xml的maven-shade-plugin插件的executions->execution->configuration->transformers节点中增加
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> <resource>reference.conf</resource> </transformer>
欢迎关注微信公众号:大数据从业者