问题标签 [maven-scm]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
maven - 如何在声纳中使用 SCM Activity 插件进行 clearcase
将我的 scm 活动声纳从 3.7 更改为 sonarqube 5.1.1,因为它具有内置的 scm 插件。
没有得到运行它所需的配置以及传递什么
设置->一般设置->scm->sonar.scm.provider
我找到了这个链接 http://maven.apache.org/scm/clearcase.html 并创建了一个
URL:- scm:clearcase:baxi_view_4:clinical
错误
org.apache.maven.plugin.MojoExecutionException:SCM 提供程序设置为“scm:clearcase:baxi_view_4:clinical”,但未找到此密钥的 SCM 提供程序。支持的 SCM 提供程序是 git,svn
以及我的代码中需要哪些其他更改或配置,或者我必须在 pom.xml 中指定什么。
我正在使用 jenkins 和声纳集成进行 CI 和报告
jenkins - 未覆盖声纳仪表板中的新代码
我正在尝试将scm 活动插件 1.8用于 clearcase 并使用声纳 4.3.3并在声纳中获得了责备信息,但没有获得仪表板中新代码的覆盖范围
java - What's the difference between dependency:copy mojo used in command line and configured same pulgin in pom file as build plugin
I want to find all dependencies of io.airlift:node:0.112, with downloading minimum files:
Using command %M2_HOME%/bin/mvn dependency:copy -Dmdep.outputScope=true -DincludeScope=compile -DincludeParents=true -DoutputFile="F:\temp\mytemp5" -DexcludeTransitive=true -f "F:\maven-plugins\node-0.112.pom", it is downloading org.apache.maven.scm:maven-scm-provider-gitexe:1.8.1.
If I create a dummy pom and have dependency to node-0.112, and then run the same command on dummy pom, it doesn't download org.apache.maven.scm:maven-scm-provider-gitexe:1.8.1. Below is my pom file:
/li>
Also org.apache.maven.scm:maven-scm-provider-gitexe:1.8.1 is not even returned as dependencies for both methods.
Why is maven trying to download this extra plugin? What is the best way to find dependencies without downloading extra plugins?
git - Maven scm git tag 行为异常
我不是 Maven 专家,所以这可能很明显,但它违背了我所见所闻的一切。
我正在使用 git scm 提供程序来创建标签。我可以让它正常工作,但我必须在命令行上提供标签并将 scm 信息放在父 POM 中。
如果我不将 scm 信息移至父级,则会抱怨未定义 connectionUrl。在父 POM 中工作正常(我猜这没什么大不了的)。
接下来是标签的更多痛苦
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-plugin:1.9.4:tag (default-cli) on project mavenIRIS: The parameters 'tag' for goal org.apache.maven.plugins:maven-scm-plugin:1.9.4:tag are missing or invalid -> [Help 1]
这是我的 POM 信息:
谢谢
maven - maven scm CVS 插件 scm:diff
作为执行迁移脚本的软件发布的一部分,我正在尝试获取项目中 .sql 文件的修订版本之间的差异。当我执行以下命令时,我得到了空的输出文件,但我不确定如何指定获取差异所需的文件。
mvn scm:diff -Dbasedir=D:\build-tool\util -DconnectionUrl="scm:cvs:pserver:192.168.1.3://utils:/utils" -Dusername=xxxxxx -Dincludes=*.sql -Dpassword=****** -DendScmVersion=1.1 -DendScmVersionType=revision -DstartScmVersion=1.2 -DstartScmVersionType=revision -Dmaven.scm.provider.cvs.implementation=cvs_native
谁能告诉我我错过了哪里?
maven - 发布期间 maven-scm-provider-jgit 出现“身份验证失败”错误:准备
我在没有安装 git 命令行的 Windows 机器上。我已经安装了 GitExtensions 和一个 EGit,这对我来说已经足够了(直到现在)。
现在我想按照本指南对 BinTray 执行 maven 发布: 使用 Github、Bintray 和 maven-release-plugin 发布版本
跑步:
产生这个输出:
绝对公平,我从不使用 windows shell 中的 git 命令,也从不设置 pageant.exe 的东西。(有关详细信息,请参阅“为什么 git 在 Windows 下无法记住我的密码”问题的答案</a>)。
我的第二个想法是使用maven-scm-provider-jgit不依赖于git
命令行。
现在的输出是:
好多了,但仍然没有运气。
我的猜测是未加载私钥和密码。我应该如何配置它们?
这个答案表明,对于某些 SCM 提供商,可以<servers>
在settings.xml
. 存储库的域名应用作<id>
. 根据在 中scm:git:ssh://git@bitbucket.org/{account}/{project}
使用的最后一条评论<developerConnection>
,此条目在settings.xml
:
JGit SCM 提供程序是否支持此构造?
在搜索“Auth failed”错误时,我发现了这个相关问题(plain JGit,no maven plugin):
git - 如何使用 Maven scm:bootstrap 构建 git 分支
是否可以使用 scm 插件的 Maven scm:bootstrap 目标来构建特定的 git 分支而不在 POM 中指定它?
我知道我可以通过在 POM 中使用 <scmVersion> 和 <scmVersionType> 参数指定分支来做到这一点,但对我来说,以某种方式更改我可能想要构建的每个分支的 POM 似乎是错误的。
我发现即使我签出分支,引导目标也会构建主人。我如何在命令行上指定它?
jenkins - 复制 jenkins 中“干净发布”的现有工作
我创建了一个 Jenkins 作业并且工作正常,该作业连接到 GIT 存储库,之后 Build 任务为 'clean publish' 。现在我需要在同一个 Jenkins 中创建一个新工作,这个新工作连接到其他 GIT 存储库并运行构建但是这里这个工作不应该做一个“干净的发布”它应该执行一些其他任务而不是这个。除了“干净发布”之外,任何人都可以帮助我执行哪些任务。在这里,我将复制相同的现有作业,它工作正常,我只需要在 Build.xml 中修改 GIT url 和“任务”。
注意:这是必需的,因为我正在处理迁移项目,以确保新作业连接到不同的 GIT 存储库并成功执行构建。我需要的唯一更改是“干净发布”而不是干净发布我可以尝试什么?因为干净的发布将发布到一个预计不会完成的公共存档。
maven - pom.xml scm 连接字符串的语法
我正在清理项目中的 pom 文件,发现我使用了两个略有不同的 scm 记录:
对比
到目前为止,我还没有找到任何描述连接字符串语法的资源。这两者有什么区别?
maven - Maven scm 和 svn
我无法通过 Maven 访问 svn 修订号。我从 SCM 使用页面获得的唯一真正帮助如下:
这对我来说毫无意义,因为我无法弄清楚连接、developerConnection 和 url 的含义。我只是将所有 3 个元素的 url 插入到我的 repo 中。我也不知道为什么 Maven 不向我询问存储库的用户名和密码。
我对 Maven 非常陌生,可能会问一个非常基本的问题,但希望能得到关于我如何访问 svn 存储库的完整解释。