Any reason you are using the p4maven dependency and not the default
perforce integration documented on the scm site?

http://maven.apache.org/scm/perforce.html

I would use that since it has full support according to the matrix ...

manfred

On Fri, August 17, 2012 1:30 pm, Eric Kolotyluk wrote:
> Hmmm, I have been struggling with scm using perforce for days. I finally
> got it working this morning (or so I thought). Here is my POM, can you see
> anything obviously wrong?
>
> Cheers, Eric
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
> http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>
>   <modelVersion>4.0.0</modelVersion>
>
>    <!--
>        No parent for this POM! This is parent of all Kodak projects.
>
>        Do not include a file reference to this POM, for example the
> following is sufficient
>        in the parent POM of your projects, provided you have the correct
> settings.xml file:
>
>        <parent>
>          <groupId>com</groupId>
>          <artifactId>kodak</artifactId>
>          <version>0.0.1-SNAPSHOT</version>
>        </parent>
>    -->
>
>   <groupId>com</groupId>
>   <artifactId>kodak</artifactId>
>   <version>0.0.3</version>
>   <packaging>pom</packaging>
>
>   <name>Kodak Corporate POM</name>
>   <description>Corporate Project Object Module for standard conventions
> and
> rules.</description>
>
>   <prerequisites>
>     <!-- <maven>2.2.1</maven> -->
>     <maven>3.0.3</maven>
>   </prerequisites>
>
>   <!--
>        Root properties for all Kodak projects.
>   -->
>
>   <properties>
>     <com.kodak.repository>http://repository.ca.kodak.com:8082
> </com.kodak.repository>
>     <maven.version>3.0.3</maven.version>
>       <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>   </properties>
>
>   <organization>
>       <name>Kodak</name>
>       <url>http://kodak.com</url>
>   </organization>
>
>   <licenses>
>     <license>
>       <name>Kodak Intersystem</name>
>       <url>
> https://collaborate.kodak.com/sites/SoftwareStandardsAndGuidelines/Intersystem/default.aspx
> </url>
>       <distribution>manual</distribution>
>       <!-- <distribution>repo</distribution> -->
>       <comments>Currently a propietary license</comments>
>     </license>
>   </licenses>
>
> <!--
>   <contributors>
>     <contributor>
>       <name>Noelle</name>
>       <email>[email protected]</email>
>       <url>http://noellemarie.com</url>
>       <organization>Noelle Marie</organization>
>       <organizationUrl>http://noellemarie.com</organizationUrl>
>       <roles>
>         <role>tester</role>
>       </roles>
>       <timezone>-5</timezone>
>       <properties>
>         <gtalk>[email protected]</gtalk>
>       </properties>
>     </contributor>
>   </contributors>
> -->
>
>   <developers>
>       <developer>
>           <id>10069959</id>
>           <name>Eric Kolotyluk</name>
>           <email>[email protected]</email>
>           <organization>Kodak, UW, Custom Development</organization>
>           <timezone>Vancouver PDT</timezone>
>           <roles>
>               <role>Software Architect</role>
>               <role>Software Developer</role>
>           </roles>
>           <properties>
>         <picUrl>
> https://lh4.googleusercontent.com/-XIb_QjJueR8/UCttSm-K2tI/AAAAAAAAE3E/4yEB30rW478/w661-h795-p-k/Eric%2B2008.jpg
> </picUrl>
>       </properties>
>       </developer>
>   </developers>
>
>   <distributionManagement>
>
> <downloadUrl>${com.kodak.repository}/nexus/content/groups/public</downloadUrl>
>     <repository>
>       <id>nexus</id>
>       <name>Kodak Release Repository</name>
>       <url>${com.kodak.repository}/nexus/content/repositories/releases</url>
>       <layout>default</layout>
>       <uniqueVersion>false</uniqueVersion>
>     </repository>
>     <snapshotRepository>
>       <id>nexus</id>
>       <name>Kodak Snapshot Repository</name>
>
> <url>${com.kodak.repository}/nexus/content/repositories/snapshots</url>
>       <layout>default</layout>
>     </snapshotRepository>
>   </distributionManagement>
>
>   <build>
>     <pluginManagement>
>       <!-- Default versions of Maven Plugins -->
>       <plugins>
>         <!-- keep in alphabetical order please -->
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-clean-plugin</artifactId>
>           <version>2.5</version>
>         </plugin>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-checkstyle-plugin</artifactId>
>           <version>2.9.1</version>
>         </plugin>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-deploy-plugin</artifactId>
>           <version>2.7</version>
>         </plugin>
>         <plugin>
>             <groupId>org.apache.maven.plugins</groupId>
>             <artifactId>maven-enforcer-plugin</artifactId>
>             <version>1.1.1</version>
>         </plugin>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-install-plugin</artifactId>
>           <version>2.3.1</version>
>         </plugin>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-release-plugin</artifactId>
>           <version>2.3.2</version>
>         </plugin>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-scm-plugin</artifactId>
>           <version>1.7</version>
>         </plugin>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-site-plugin</artifactId>
>           <version>3.1</version>
>         </plugin>
>         <plugin>
>             <groupId>org.codehaus.mojo</groupId>
>             <artifactId>versions-maven-plugin</artifactId>
>             <version>1.3.1</version>
>         </plugin>
>       </plugins>
>     </pluginManagement>
>
>     <plugins>
>
>       <!-- P4Maven Mojo -->
>       <plugin>
>         <!--
> http://www.perforce.com/perforce/doc.current/manuals/p4maven/index.html
> -->
>         <groupId>com.perforce</groupId>
>         <artifactId>p4maven-mojo</artifactId>
>         <version>2011.1.297684</version>
>         <configuration>
>           <connectionType>connection</connectionType>
>           <username>${com.perforce.p4maven.username}</username>
>           <password>${com.perforce.p4maven.password}</password>
>           <includes>**</includes>
>         </configuration>
>       </plugin>
>
>       <plugin>
>         <!--
> http://www.perforce.com/perforce/doc.current/manuals/p4maven/index.html
> -->
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-compiler-plugin</artifactId>
>         <version>2.5.1</version>
>         <configuration>
>           <source>1.5</source>
>           <target>1.5</target>
>         </configuration>
>       </plugin>
>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-enforcer-plugin</artifactId>
>         <executions>
>           <execution>
>             <id>enforce-maven</id>
>             <goals>
>               <goal>enforce</goal>
>             </goals>
>             <configuration>
>               <rules>
>                 <requireMavenVersion>
>                   <version>[${maven.version},)</version>
>                   <message>Check for Maven version &gt;=${maven.version}
> failed. Update your Maven install.</message>
>                 </requireMavenVersion>
>               </rules>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-release-plugin</artifactId>
>         <dependencies>
>           <!-- P4Maven -->
>           <dependency>
>             <groupId>com.perforce</groupId>
>             <artifactId>p4maven</artifactId>
>             <version>2011.1.297684</version>
>           </dependency>
>         </dependencies>
>         <configuration>
>           <!-- defined in ${user.home}/.m2/settings.xml -->
>
> <username>${org.apache.maven.plugins.maven-release-plugin.username}</username>
>
> <password>${org.apache.maven.plugins.maven-release-plugin.password}</password>
>         </configuration>
>       </plugin>
>
>       <plugin>
>         <!--
> http://www.perforce.com/perforce/doc.current/manuals/p4maven/index.html
> -->
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-scm-plugin</artifactId>
>         <dependencies>
>           <!-- P4Maven -->
>           <dependency>
>             <groupId>com.perforce</groupId>
>             <artifactId>p4maven</artifactId>
>             <version>2011.1.297684</version>
>           </dependency>
>         </dependencies>
>         <configuration>
>           <connectionType>connection</connectionType>
>           <!-- defined in ${user.home}/.m2/settings.xml -->
>           <username>${com.perforce.p4maven.username}</username>
>           <password>${com.perforce.p4maven.password}</password>
>           <includes>**</includes>
>         </configuration>
>       </plugin>
>
>       <!--
>           the versions plugin can be used to check for new plugin versions
> like this:
>           mvn versions:display-plugin-updates
>        -->
>       <plugin>
>         <groupId>org.codehaus.mojo</groupId>
>         <artifactId>versions-maven-plugin</artifactId>
>       </plugin>
>     </plugins>
>   </build>
>
>   <scm>
>     <connection>scm:p4:cscperf1.ekc1.ekc.kodak.com:1666
> ://depot/Maven/corporate-pom/trunk</connection>
>     <developerConnection>scm:p4:cscperf1.ekc1.ekc.kodak.com:1666
> ://depot/Maven/corporate-pom/trunk</developerConnection>
>   </scm>
>
>   <dependencyManagement>
>   </dependencyManagement>
>
>   <dependencies>
>     <dependency>
>       <groupId>com.perforce</groupId>
>       <artifactId>p4maven</artifactId>
>       <version>2011.1.297684</version>
>       <scope>runtime</scope>
>     </dependency>
>   </dependencies>
>
>   <reporting>
>       <plugins>
>       </plugins>
>   </reporting>
>
> </project>
>
> On Fri, Aug 17, 2012 at 1:24 PM, Manfred Moser <[email protected]>
> wrote:
>
>> On Fri, August 17, 2012 1:22 pm, Eric Kolotyluk wrote:
>>
>> > "mvn release:prepare" creates the directory
>> > P:\Maven\corporate-pom\trunk\target\checkout but it is empty. Am I
>> > supposed
>> > to do "mvn release:perform" from the same directory I do "mvn
>> > release:prepare" ?
>>
>> Yes. The perform goal will do the checkout into that folder. If that is
>> not happening something with your scm setup is wrong.
>>
>> manfred
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to