Flink Get Start MVN 命令执行报错

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

mvn archetype:generate                \
  -DarchetypeGroupId=org.apache.flink   \
  -DarchetypeArtifactId=flink-quickstart-java \
  -DarchetypeVersion=1.19.0
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. 命令中存在不必要的空格,比如等号两边存在空格

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

mvn archetype:generate  "-DarchetypeGroupId=org.apache.flink" "-DarchetypeArtifactId=flink-quickstart-java" "-DarchetypeVersion=1.19.0"

相关推荐

  1. Flink Get Start MVN 命令执行

    2024-04-10 08:12:06       39 阅读
  2. yum命令解决

    2024-04-10 08:12:06       67 阅读
  3. mac执行python3 --version

    2024-04-10 08:12:06       30 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-10 08:12:06       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-10 08:12:06       106 阅读
  3. 在Django里面运行非项目文件

    2024-04-10 08:12:06       87 阅读
  4. Python语言-面向对象

    2024-04-10 08:12:06       96 阅读

热门阅读

  1. HiveQL-DDL总览

    2024-04-10 08:12:06       27 阅读
  2. flinksql

    2024-04-10 08:12:06       36 阅读
  3. SpringBoot使用Zxing生成二维码

    2024-04-10 08:12:06       34 阅读
  4. 对文件内容特殊关键字做高亮处理

    2024-04-10 08:12:06       27 阅读
  5. 【Linux】libgpiod使用方法

    2024-04-10 08:12:06       41 阅读
  6. 遗传算法matlab程序

    2024-04-10 08:12:06       40 阅读
  7. Swoole简单入门教程聊天系统

    2024-04-10 08:12:06       31 阅读