错误日志:
Project build error: Non-resolvable parent POM for com.alibaba.otter:canal:1.1.4: Failure to find org.sonatype.oss:oss- parent:pom:7 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM
运行mvn exec:java -Dexec.mainClass="com.alibaba.otter.canal.example.SimpleCanalClientTest"
出错:
[INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for com.alibaba.otter:canal:1.1.5-SNAPSHOT: Could not transfer artifact org.sonatype.oss:oss-parent:pom:7 from/to central (http://repo1.maven.org/maven2): Failed to transfer file: http://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. and 'parent.relativePath' points at wrong local POM @ com.alibaba.otter:canal:1.1.5-SNAPSHOT, /home/lin/Desktop/canal-canal-1.1.5-alpha-1/pom.xml, line 9, column 13 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.alibaba.otter:canal.example:[unknown-version] (/home/lin/Desktop/canal-canal-1.1.5-alpha-1/example/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for com.alibaba.otter:canal:1.1.5-SNAPSHOT: Could not transfer artifact org.sonatype.oss:oss-parent:pom:7 from/to central (http://repo1.maven.org/maven2): Failed to transfer file: http://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. and 'parent.relativePath' points at wrong local POM @ com.alibaba.otter:canal:1.1.5-SNAPSHOT, /home/lin/Desktop/canal-canal-1.1.5-alpha-1/pom.xml, line 9, column 13 -> [Help 2] [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.
每次打开工程文件example(canal1.1.4)出错。不知道该怎么改
原提问者GitHub用户LIN-ALOHA
mvn clean install eclipse:eclipse -Dmaven.test.skip=true
原回答者GitHub用户agapple
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。