You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Nandita LN (nln)" <nl...@cisco.com> on 2014/10/14 16:34:55 UTC
Maven SCM tag
Hi,
I am using Maven SCM with perforce. I need to specify the specific revision/changelist number to be used for SCM analysis.
Please let me know how to configure in POM.xml.Here is my current configuration ,but not working as expected:
<scm>
<connection>scm:perforce:username@server:2667://depot</connection>
<developerConnection>scm:perforce:username@server:2667://depot</developerConnection>
<url>scm:perforce:username@server:2667://depot</url>
<tag>559513</tag>
</scm>
Thanks,
Nandita
RE: Maven SCM tag
Posted by Martin Gainty <mg...@hotmail.com>.
> From: nln@cisco.com
> To: users@maven.apache.org
> Subject: Maven SCM tag
> Date: Tue, 14 Oct 2014 14:34:55 +0000
>
> Hi,
>
> I am using Maven SCM with perforce. I need to specify the specific revision/changelist number to be used for SCM analysis.
> Please let me know how to configure in POM.xml.Here is my current configuration ,but not working as expected:
> <scm>
> <connection>scm:perforce:username@server:2667://depot</connection>
> <developerConnection>scm:perforce:username@server:2667://depot</developerConnection>
> <url>scm:perforce:username@server:2667://depot</url>
> <tag>559513</tag>
> </scm>
MG>http://www.perforce.com/perforce/doc.current/manuals/p4maven/index.html#usecases
MG>apparently maven perforce provider does not expose tag so an alternative would be to hack up ant script with tag
MG>start at
MG>http://stackoverflow.com/questions/9885490/configuring-perforce-scm-into-maven-project-to-get-latest-changelist
MG>assuming p4.tag with value of each execution which requires 'tag' will require the arg value in config
MG>i.e. <arg value="-t${p4.tag}"/>
MG>for each <exec executable="p4" ....> (input or output execution of perforce referencing tag)
MG>Groet, Martin
> Thanks,
> Nandita