I am using the following maven command to generate a project using flink table api along with its pom file, but unfortunately I am having the following error..
any suggestion
thank you.
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
question from:
https://stackoverflow.com/questions/66057178/generating-a-flink-table-project-does-not-work 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…