Flink Get Start MVN 命令执行报错

执行新建工程命令后报错:

powershell 复制代码
mvn archetype:generate                \
  -DarchetypeGroupId=org.apache.flink   \
  -DarchetypeArtifactId=flink-quickstart-java \
  -DarchetypeVersion=1.19.0
bash 复制代码
org.apache.maven.lifecycle.MissingProjectException: 
The goal you specified requires a project to execute but there is no  POM in this directory. 
Please verify you invoked Maven from the correct directory.

可能由以下三个原因引起:

  1. 命令不能换行,需要放在一行;
  2. cmd命令行或PowerShell,需要用引号包装参数(某些机器不需要)
  3. 命令中存在不必要的空格,比如等号两边存在空格

根据以上修改后的命令运行正常:

powershell 复制代码
mvn archetype:generate  "-DarchetypeGroupId=org.apache.flink" "-DarchetypeArtifactId=flink-quickstart-java" "-DarchetypeVersion=1.19.0"
相关推荐
大勇任卷舒7 小时前
【紧急招聘·短期驻场】HDP大数据工程师(郑州·4个月·包驻场补贴)
大数据
Elastic 中国社区官方博客8 小时前
在 Elasticsearch 中使用原生 PromQL 支持查询 Prometheus 指标
大数据·elasticsearch·搜索引擎·信息可视化·全文检索·prometheus
AC赳赳老秦9 小时前
政企内网落地:OpenClaw 离线环境深度适配方案,无外网场景下本地化模型对接与全功能使用
java·大数据·运维·python·自动化·deepseek·openclaw
ITyunwei09879 小时前
团队管理与人才发展:如何打造一支“召之即来,来之能战”的铁军?
大数据·运维·人工智能
喜欢流萤吖~9 小时前
Elasticsearch集群:高可用与水平扩展的基石
大数据·elasticsearch·搜索引擎
我是发哥哈11 小时前
跨AI模型生成视频的五大维度对比:选型避坑指南
大数据·人工智能·学习·机器学习·chatgpt·音视频
逸Y 仙X11 小时前
Elasticsearch时间类型实战
java·大数据·elasticsearch·搜索引擎·全文检索
Dxy123931021613 小时前
Python如何处理树状分类数据
大数据·python·分类
凡人AI录14 小时前
小红书商业变现 100 个关键词:从流量逻辑到长期复利
大数据
zhongerzixunshi14 小时前
筑牢国家安全防线,赋能企业合规发展
大数据·人工智能·安全