Where placed the scm tag?

落花浮王杯 提交于 2019-12-11 05:46:26
问题 I have a little probleme with the scm tag in my pom.xml file. My project architecture is like this: Parent Submodule1 Submodule2 reactor Parent is the project which hold all maven plugins configuration, librairies version ect. It's the parent of reactor project which is the parent of all submodules. Reactor is a pom.xml which contains tags to compile all submodules. I would like put the scm tag on the parent pom.xml because it's the higher pom.xml. But I get an error when I want to do a "mvn

Commit multiple files with maven scm plugin

喜欢而已 提交于 2019-12-11 05:23:45
问题 I want to git commit two files in different folders with maven scm plugin (v1.9.4). Eg: abc/p.json and xyz\p.json . I dont want to commit any other files such as other/p.json According to the documentation for the chekin goal, a comma separated list such as abc/p.json,xyz/p.json should work. But it ends up commiting all the files. I am using the scm:checkin goal with the maven release plugin's <preparationGoals> configuration. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId

How to configure maven-release to use Perforce as SCM provider?

…衆ロ難τιáo~ 提交于 2019-12-11 02:59:58
问题 I am trying to use the maven release plugin to create a released version of a Java project having Perforce as the SCM. My pom scm section is: <scm> <connection>scm:p4:myperforcehostname:1666://mydepot/mycomponent</connection> <developerConnection>scm:p4:myperforcehostname:1666://mydepot/mycomponent</developerConnection> <url>http://myperforcehostname:1666</url> </scm> Also I use the P4Maven plugin and the Maven Release Plugin: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId

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

Unable to deploy using SVN as Maven repo

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 15:39:16
问题 I'm trying to use Subversion as Maven repo utilizing Maven wagon. If I declare snapshot location using http as protocol I get 409 error back from server when trying to deploy (mvn clean deploy) <snapshotRepository> <uniqueVersion>false</uniqueVersion> <id>engtools_snapshots</id> <name>EngTools Maven Repository</name> <url></url> </snapshotRepository> When I change protocol to scm:svn:http things are getting even more weird - I get several

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:</connection> <developerConnection>scm:git:</developerConnection> <url></url> </scm> vs <scm> <connection></connection> <developerConnection><

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:</connection> <developerConnection>scm:git:</developerConnection> <url></url> </scm> vs <scm> <connection></connection> <developerConnection></developerConnection> <url></url> </scm> I haven't been able to find any

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

≡放荡痞女 提交于 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 ). 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