Disable Maven SCM

廉价感情. 提交于 2019-12-10 17:15:36

问题


Could I disable SCM integration option in Maven? I want it to build a local checked-out project without SCM integration ?

is there some settings or some how??

thanx in advance


回答1:


SCM integration is only used when you want to release a new version of software or generate changelog. When build a local checked-out project SCM integration is "ignored".

There is also scm-plugin but it isn't binded to none of the default lifecycles.

EDIT
According pom reference if you declare scm section it must be valid otherwise remove scm section.
Please paste your scm section or maybe scm plugin is used in pom.




回答2:


You should check if you're using Buildnumber Maven plugin.

By default and recommended configuration it is set to be invoked on "validate" phase of every build and will fail the build with this message.

If it is the case you have two options:

  1. Disable the use of this plugin (by removing it from POM or moving it into special profile)
  2. Add scm section as described above.

Hope this helps!



来源:https://stackoverflow.com/questions/1751987/disable-maven-scm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!