Search code examples
version-controlmaven-2perforcemaven-scm

using Maven SCM tag with Perforce


Does anyone have examples on how to configure the Maven SCM tag for perforce?


Solution

  • I just found this that has the answer.

    RE: mvn release with perforce

    <scm>
      <connection>scm:perforce://depot/simple</connection>
      <developerConnection>scm:perforce://depot/simple</developerConnection>
      <url>scm:perforce://depot/simple</url>
    </scm>
    

    I was also trying to use this with the release plugin and since my perforce needs a user Id I can specify that in the configuration section of the release plugin

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-release-plugin</artifactId>
      <version>2.0-beta-9</version>
      <configuration>
        <username>myUser</username>
      </configuration>
    </plugin>