flink-sql-parser Could not transfer artifact org.freemarker:freemarker:pom:2.3.26.jbossorg-1 f

Flink 1.15编译报错

Failed to execute goal com.googlecode.fmpp-maven-plugin:fmpp-maven-plugin:1.0:generate (generate-fmpp-sources) on project flink-sql-parser: Execution generate-fmpp-sources of goal com.googlecode.fmpp-maven-plugin:fmpp-maven-plugin:1.0:generate failed: Plugin com.googlecode.fmpp-maven-plugin:fmpp-maven-plugin:1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at com.googlecode.fmpp-maven-plugin:fmpp-maven-plugin:jar:1.0 -> net.sourceforge.fmpp:fmpp:jar:0.9.14 -> org.freemarker:freemarker:jar:2.3.26.jbossorg-1: Failed to read artifact descriptor for org.freemarker:freemarker:jar:2.3.26.jbossorg-1: Could not transfer artifact org.freemarker:freemarker:pom:2.3.26.jbossorg-1 from/to repo1.maven.org (http://repo1.maven.org/maven2/): Transfer failed for http://repo1.maven.org/maven2/org/freemarker/freemarker/2.3.26.jbossorg-1/freemarker-2.3.26.jbossorg-1.pom 501 HTTPS Required -> [Help 1]

原因是flink-sql-parser和flink-sql-parser-hive依赖的

fmpp-maven-plugin包依赖的对应版本拉取不到

<plugin>
				<groupId>com.googlecode.fmpp-maven-plugin</groupId>
				<artifactId>fmpp-maven-plugin</artifactId>
				<version>1.0</version>
				<dependencies>
					<dependency>
						<groupId>org.freemarker</groupId>
						<artifactId>freemarker</artifactId>
						<version>2.3.28</version>
					</dependency>
					<dependency>
						<groupId>net.sourceforge.fmpp</groupId>
						<artifactId>fmpp</artifactId>
						<version>0.9.16</version>
					</dependency>
				</dependencies>
				<executions>
					<execution>
						<id>generate-fmpp-sources</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>generate</goal>
						</goals>
						<configuration>
							<cfgFile>${project.build.directory}/codegen/config.fmpp</cfgFile>
							<outputDirectory>target/generated-sources</outputDirectory>
							<templateDirectory>${project.build.directory}/codegen/templates</templateDirectory>
						</configuration>
					</execution>
				</executions>
			</plugin>

1.0版本依赖的是,这里看仓库只有0.9.16 直接改成

					<dependency>
						<groupId>net.sourceforge.fmpp</groupId>
						<artifactId>fmpp</artifactId>
						<version>0.9.16</version>
					</dependency>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值