maven-scm

Syntax of the pom.xml scm connection string

巧了我就是萌 提交于 2019-12-07 12:30:33
问题 I'm cleaning up pom files in my project and find out I use two slightly different scm records: <scm> <connection>scm:git:https://github.com/jadler-mocking/jadler.git</connection> <developerConnection>scm:git:https://github.com/jadler-mocking/jadler.git</developerConnection> <url>https://github.com/jadler-mocking/jadler</url> </scm> vs <scm> <connection>scm:git:git@github.com:jadler-mocking/jadler.git</connection> <developerConnection>scm:git:git@github.com:jadler-mocking/jadler.git<

Getting dependencies licenses

回眸只為那壹抹淺笑 提交于 2019-12-07 08:58:23
问题 We need to get all the licenses of the dependencies of our services. While it's easy to get them from the report plugin (or mojohaus' license-maven-plugin) our lawyers want us to actually go to the source of each dependency and grab the license file. Do you know how we can achieve this? As an alternative - how can I get the scm connection URL of an artifact? I can use this information to automate such process myself. 回答1: To get things right you would need first to collect all the binary and

Syntax of the pom.xml scm connection string

孤街醉人 提交于 2019-12-05 14:35:14
I'm cleaning up pom files in my project and find out I use two slightly different scm records: <scm> <connection>scm:git:https://github.com/jadler-mocking/jadler.git</connection> <developerConnection>scm:git:https://github.com/jadler-mocking/jadler.git</developerConnection> <url>https://github.com/jadler-mocking/jadler</url> </scm> vs <scm> <connection>scm:git:git@github.com:jadler-mocking/jadler.git</connection> <developerConnection>scm:git:git@github.com:jadler-mocking/jadler.git</developerConnection> <url>https://github.com/jadler-mocking/jadler</url> </scm> I haven't been able to find any

Using maven-release-plugin with GitHub “You can't push to git://github.com/…”

≡放荡痞女 提交于 2019-12-04 03:37:51
Recently having switched source code repository for a project to GitHub from SourceForge I need to update the maven release process to match. I followed this link for configuring the "scm" section of the pom. The GitHub repository is shown here . Everything else is as it was when using SVN (for publishing to https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-4.MavenRepositories ). So then I invoke mvn clean release:clean release:prepare release:perform and the output is as follows [INFO] --- maven-release-plugin:2.1

Maven Buildnumber plugin - Git

流过昼夜 提交于 2019-12-03 07:01:10
问题 The Maven Buildnumber plugin doesn't appear to work with GIT yet. Is there a workaround for the time being? I recently switched from SVN to GIT and have found it to be an easy transition, but this is the only thing that I don't have working presently. Walter 回答1: Well, there is MOJO-1199 about the buildnumber plugin and GIT support but the patches haven't been applied yet. However, it seems that Antony Stubbs did some work around this and made it available in this git mirror. Have a look at

Maven Buildnumber plugin - Git

徘徊边缘 提交于 2019-12-02 20:37:29
The Maven Buildnumber plugin doesn't appear to work with GIT yet. Is there a workaround for the time being? I recently switched from SVN to GIT and have found it to be an easy transition, but this is the only thing that I don't have working presently. Walter Pascal Thivent Well, there is MOJO-1199 about the buildnumber plugin and GIT support but the patches haven't been applied yet. However, it seems that Antony Stubbs did some work around this and made it available in this git mirror . Have a look at it. I use this Maven plugin: https://github.com/ktoso/maven-git-commit-id-plugin and have it

Maven SCM Plugin: Git SSH provider not found

拜拜、爱过 提交于 2019-12-01 03:07:32
I'm having a problem using the Maven SCM plugin with Git. I cannot get the plugin to work at all because it says the provider is not found. It gives me the following error when I run mvn scm:tag : [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-plugin:1.9:tag (default-cli) on project hello-world-service-minimal: Cannot run tag command : Can't load the scm provider. No such provider: 'git:ssh://git@git-eng.REDACTED.com' . -> [Help 1] My pom.xml looks like the following: <project> <modelVersion>4.0.0</modelVersion> <groupId>net.REDACTED</groupId> <artifactId>hello-world-service

What is the format of svn-settings.xml for use with Maven SCM plugin?

情到浓时终转凉″ 提交于 2019-12-01 00:05:57
I'm trying to externalize my username and password but it seems the format of svn-settings.xml is incorrect. I can't find any resources on the web except this post here and following that gives an error. In my pom.xml I got <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-scm-plugin</artifactId> <version>1.4</version> <executions> <execution> ... <configuration> <connectionUrl>scm:svn:http://my_hostname/im-tools-repos/trunk</connectionUrl> <checkoutDirectory>${project.build.directory}/checkout/im-tools</checkoutDirectory> </configuration> </execution> </executions> <

Not getting the coverage on new code in sonar dashboard

感情迁移 提交于 2019-11-30 23:38:40
I am trying to use scm activity plugin 1.8 for clearcase and using sonar 4.3.3 and got the blame information in the sonar but did not getting the coverage on new code in dashboard You should add Code Coverage Tool to your build process. If you use Maven, then you can add: <build> ... <plugins> ... <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.7.5.201505241946</version> <executions> <execution> <id>jacoco-initialize</id> <goals> <goal>prepare-agent</goal> </goals> </execution> </executions> <configuration> <rules> <rule> <element>CLASS</element>

Maven SCM Plugin: Git SSH provider not found

被刻印的时光 ゝ 提交于 2019-11-30 23:13:11
问题 I'm having a problem using the Maven SCM plugin with Git. I cannot get the plugin to work at all because it says the provider is not found. It gives me the following error when I run mvn scm:tag : [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-plugin:1.9:tag (default-cli) on project hello-world-service-minimal: Cannot run tag command : Can't load the scm provider. No such provider: 'git:ssh://git@git-eng.REDACTED.com' . -> [Help 1] My pom.xml looks like the following: