Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognised tag: 'snapshotPolicy' (position: START_TAG seen ...</layout> \n\t\t\t<snapshotPolicy>... @233:20) @ E:\apache-maven-3.6.1\conf\settings.xml, line 233, column 20 #34

Closed
arraycto opened this issue Oct 21, 2020 · 3 comments

Comments

@arraycto
Copy link

arraycto commented Oct 21, 2020

版本信息:

JDK 版本(必填) : 1.8.0
源码版本(必填):截止2020年10月21日最新版
MySQL(必填): 5.7.9
Nacos(必填):1.2.
mave:apache-maven-3.6.1

问题描述:

编译commons项目无法通过

报错截图

zui

Some problems were encountered while building the effective settings
Unrecognised tag: 'snapshotPolicy' (position: START_TAG seen ...</layout>  \n\t\t\t<snapshotPolicy>... @233:20)  @ E:\apache-maven-3.6.1\conf\settings.xml, line 233, column 20
Unrecognised tag: 'snapshotPolicy' (position: START_TAG seen ...</layout>  \n\t\t\t<snapshotPolicy>... @233:20)  @ E:\\apache-maven-3.6.1\conf\settings.xml, line 233, column 20

重现步骤

下载commons项目编译

@arraycto arraycto changed the title Unrecognised tag: 'snapshotPolicy' (position: START_TAG seen ...</layout> \n\t\t\t<snapshotPolicy>... @233:20) @ G:\devops\apache-maven-3.6.1\conf\settings.xml, line 233, column 20 Unrecognised tag: 'snapshotPolicy' (position: START_TAG seen ...</layout> \n\t\t\t<snapshotPolicy>... @233:20) @ E:\apache-maven-3.6.1\conf\settings.xml, line 233, column 20 Oct 21, 2020
@tyunh
Copy link
Collaborator

tyunh commented Oct 21, 2020

Uploading image.png…

加QQ群, 下载群文件里面的maven setting.xml , 然后:

  1. 将 zuihou-commons/zuihou-dependencies/pom.xml 导入IDEA
  2. 编译zuihou-dependencies/pom.xml:mvn clean install -Dmaven.javadoc.skip=true -Dgpg.skip=true -Dmaven.source.skip=true -DskipTests=true
  3. 将 zuihou-commons/pom.xml 导入IDEA
  4. 编译zuihou-commons/pom.xml: mvn clean install -Dmaven.javadoc.skip=true -Dgpg.skip=true -Dmaven.source.skip=true -DskipTests=true

@arraycto
Copy link
Author

arraycto commented Oct 21, 2020

已经添加,衍生处理的问题,

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.612 s
[INFO] Finished at: 2020-10-21T23:37:15+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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] `

对了按照您上面所说的进行操作的仍旧这个问题。依旧编译commons项目的时候出问题

@arraycto
Copy link
Author

请问大佬为何直接用aliyun的仓库不可以,不能满足,是楼主用的jar较特殊吗?新手哈,感谢

@zuihou zuihou closed this as completed Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants