[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:01 h [INFO] Finished at: 2021-12-05T21:19:38+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project simple-project: Could not resolve dependencies for project cn.edu.xmu:simple-project:jar:1.0: Could not transfer artifact org.apache.flink:flink-rpc-akka-loader:jar:1.14.0 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [jboss (http://repository.jboss.com/maven2/, default, releases+snapshots)] -> [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/DependencyResolutionException
Solution:
My flink is flink-1.14.0-bin-scala_2.12.tgz
The above error is basically the pom.xml file messing up
So in the pom.xml file
version should correspond to 1.14.0
flink-streaming-java_ also followed by 2.12
version should correspond to 1.14.0
filnk-clients_ followed by 2.12
version should correspond to 1.14.0
Changed these three places, basically it’s ok
The error that appears is basically that there is no corresponding good version, change it and save it, and then execute
/usr/local/maven/bin/mvn package
That’s it
The following is the pom.xml file that I ran successfully, and the corresponding flink is flink-1.14.0-bin-scala_2.12.tgz
<project> <groupId>cn.edu.xmu</groupId> <artifactId>simple-project</artifactId> <modelVersion>4.0.0</modelVersion> <name>Simple Project</name> <packaging>jar</packaging> <version>1.0</version> <repositories> <repository> <id>jboss</id> <name>JBoss Repository</name> <url>http://repository.jboss.com/maven2/</url> </repository> </repositories> <dependencies> <dependency> <groupId>org.apache.flink</groupId> <artifactId>flink-java</artifactId> <version>1.14.0</version> </dependency> <dependency> <groupId>org.apache.flink</groupId> <artifactId>flink-streaming-java_2.12</artifactId> <version>1.14.0</version> </dependency> <dependency> <groupId>org.apache.flink</groupId> <artifactId>flink-clients_2.12</artifactId> <version>1.14.0</version> </dependency> </dependencies> </project>
Read More:
- Springboot Project Error: Failed to execute goal org.apache.maven.plugins
- [Solved] SpringBoot Pack Project: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
- [Solved] MVN Build Project Error: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test
- Maven Project Right-Click -update project Error [How to Solve]
- [Solved] SpringBoot Create Project and Failed to Access localhost:8080 Error
- [Fixed] Disgusting bug Error:Failed to Load project configuration: cannot parse filemessage: content is not allowed in the preface.
- [Solved] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.1:analyze-only
- IDEA Create Web Project with maven Error: The desired archetype does not exista…
- [Solved] Mybatis.generator error: Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2
- [Solved] Spring Boot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0
- [Solved] O2oa compile error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin
- [Solved] Idea Failed to recognize Maven and Project Error
- [Solved] IDEA Import springboot Project Error: Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin:<unknown>
- Springboot Project: How to Introduces Local Jar Package
- [Solved] Maven Project Packaging Error: Unable to find main class
- MVN compile Error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin…
- [Solved] the resource is not on the build path of a java project
- Spring project import @Resource Annotation Error [How to Solve]
- [Solved] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-cli) on