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>

 

posted @ 2022-11-04 21:45  大数据从业者FelixZh  阅读(398)  评论(0编辑  收藏  举报