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包依赖的对应版本拉取不到


				com.googlecode.fmpp-maven-plugin
				fmpp-maven-plugin
				1.0
				
					
						org.freemarker
						freemarker
						2.3.28
					
					
						net.sourceforge.fmpp
						fmpp
						0.9.16
					
				
				
					
						generate-fmpp-sources
						generate-sources
						
							generate
						
						
							${project.build.directory}/codegen/config.fmpp
							target/generated-sources
							${project.build.directory}/codegen/templates
						
					
				
			

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

					
						net.sourceforge.fmpp
						fmpp
						0.9.16
					

你可能感兴趣的:(实时数仓,FlinkSQL,flink,java,数据库)