微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

生成flink表项目不起作用

如何解决生成flink表项目不起作用

我正在使用以下 maven 命令使用 flink table api 及其 pom 文件生成一个项目,但不幸的是我遇到了以下错误.. 任何建议 谢谢。

mvn archetype:generate -DarchetypeGroupId=org.apache.flink     -DarchetypeArtifactId=flink-table-api-java-bridge_2.11    -DarchetypeVersion=1.12.0     -DgroupId=my-flink-project     -DartifactId=flink-project     -Dversion=0.1     -Dpackage=myflink     -DinteractiveMode=false

============
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] >>> maven-archetype-plugin:3.2.0:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO] 
[INFO] <<< maven-archetype-plugin:3.2.0:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO] 
[INFO] 
[INFO] --- maven-archetype-plugin:3.2.0:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Batch mode
[WARNING] Archetype not found in any catalog. Falling back to central repository.
[WARNING] Add a repository with id 'archetype' in your settings.xml if archetype's repository is elsewhere.
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/flink/flink-table-api-java-bridge_2.11/1.12.0/flink-table-api-java-bridge_2.11-1.12.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/flink/flink-table-api-java-bridge_2.11/1.12.0/flink-table-api-java-bridge_2.11-1.12.0.pom (5.8 kB at 21 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/flink/flink-table-api-java-bridge_2.11/1.12.0/flink-table-api-java-bridge_2.11-1.12.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/flink/flink-table-api-java-bridge_2.11/1.12.0/flink-table-api-java-bridge_2.11-1.12.0.jar (120 kB at 143 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:23 min
[INFO] Finished at: xxxxxxxxxx
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.0:generate (default-cli) on project standalone-pom: The defined artifact is not an archetype -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors,re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions,please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。