I tried to setup flink locally as mentioned in the link https://ci.apache.org/projects/flink/flink-docs-stable/dev/projectsetup/java_api_quickstart.html. I ended getting the following error [INFO] Generating project in Interactive mode [WARNING] No archetype found in remote catalog. Defaulting to internal catalog [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: http://repo.maven.apache.org/maven2/org/apache/flink/flink-quickstart-java/1.10.0/flink-quickstart-java-1.10.0.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 49.262 s [INFO] Finished at: 2020-05-18T10:28:08+05:30 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.apache.flink:flink-quickstart-java:1.10.0) -> [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 This is my settings.xml in my .m2/ directory. <profile> <id>myown</id> <repositories> <repository> <snapshots /> <url> http://repo.maven.apache.org/maven2/</url> <id>central</id> </repository> </repositories> </profile> </profiles> <activeProfiles> <activeProfile>myown</activeProfile> </activeProfiles> Tried to run using second option
Still ended up getting same error. Thanks Prasanna. |
This looks like a connectivity issue to
maven central.
If you follow the http address you also
get a 501 HTTPS required error, so maybe adjust the URL in your
settings.xml to use https.
On 18/05/2020 07:12, Prasanna kumar
wrote:
|
Free forum by Nabble | Edit this page |