You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Eric Kolotyluk <er...@gmail.com> on 2012/08/17 22:22:18 UTC

Struggling with my first release

I have never used mvn release before and I am struggling trying to get it
to work. When I do "mvn release:prepare" it succeeds and seems to do the
right things. However, when I do "mvn release:perform" it fails with

P:\Maven\corporate-pom\trunk>mvn release:perform
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Kodak Corporate POM 0.0.4-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-release-plugin:2.3.2:perform (default-cli) @ kodak ---
[INFO] Checking out the project to perform the release ...
[INFO] info
[INFO] Command completed in 307ms
[INFO] login
[INFO] Command completed in 197ms
[INFO] 'login' not necessary, no password set for this user.
[INFO] client -o Eric_Kolotyluk_ekolotyluk-3500
[INFO] Command completed in 200ms
[INFO] where P:\Maven\corporate-pom\trunk\pom.xml
[INFO] Command completed in 192ms
[INFO] login
[INFO] Command completed in 200ms
[INFO] 'login' not necessary, no password set for this user.
[INFO] login -s
[INFO] Command completed in 201ms
[INFO] 'login' not necessary, no password set for this user.
[INFO] info
[INFO] Command completed in 197ms
[INFO] login
[INFO] Command completed in 202ms
[INFO] 'login' not necessary, no password set for this user.
[INFO] client -o Eric_Kolotyluk_ekolotyluk-3500
[INFO] Command completed in 203ms
[INFO] where P:\Maven\corporate-pom\trunk\pom.xml
[INFO] Command completed in 200ms
[INFO] Checkout working directory:
P:\Maven\corporate-pom\trunk\target\checkout
[INFO] sync -f //depot/Maven/corporate-pom/trunk/...@kodak-0.0.3
[INFO] Command completed in 450ms
[INFO] [//depot/Maven/corporate-pom/trunk/pom.xml#12 updated
P:\Maven\corporate-pom\trunk\pom.xml:updated]
[INFO] Executing goals 'deploy'...
[WARNING] Maven will be executed in interactive mode, but no input stream
has been configured for this MavenInvoker instance.
[INFO] [INFO] Scanning for projects...
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] Total time: 0.082s
[INFO] [INFO] Finished at: Fri Aug 17 13:09:29 PDT 2012
[INFO] [INFO] Final Memory: 4M/368M
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [ERROR] The goal you specified requires a project to execute but
there is no POM in this directory
(P:\Maven\corporate-pom\trunk\target\checkout). Please verify you invoked
Maven from the correct directory. -> [Help 1]
[INFO] [ERROR]
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[INFO] [ERROR] Re-run Maven using the -X switch to enable full debug
logging.
[INFO] [ERROR]
[INFO] [ERROR] For more information about the errors and possible
solutions, please read the following articles:
[INFO] [ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5.041s
[INFO] Finished at: Fri Aug 17 13:09:29 PDT 2012
[INFO] Final Memory: 10M/368M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-release-plugin:2.3.2:perform (default-cli)
on project kodak: Maven execution failed, exit code: '1' -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

"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" ?

Am I missing something obvious somewhere?

Cheers, Eric

RE: Struggling with my first release

Posted by "Thiessen, Todd (Todd)" <tt...@avaya.com>.
The release plugin should checkout the tag you made during the prepare to that checkout folder. So check to make sure your pom has properly defined its SCM section. Do you see a tag in your SCM?

> -----Original Message-----
> From: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com]
> Sent: Friday, August 17, 2012 4:22 PM
> To: Maven Users List
> Subject: Struggling with my first release
> 
> I have never used mvn release before and I am struggling trying to get
> it
> to work. When I do "mvn release:prepare" it succeeds and seems to do
> the
> right things. However, when I do "mvn release:perform" it fails with
> 
> P:\Maven\corporate-pom\trunk>mvn release:perform
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> -----------------------------------------------------------------------
> -
> [INFO] Building Kodak Corporate POM 0.0.4-SNAPSHOT
> [INFO]
> -----------------------------------------------------------------------
> -
> [INFO]
> [INFO] --- maven-release-plugin:2.3.2:perform (default-cli) @ kodak ---
> [INFO] Checking out the project to perform the release ...
> [INFO] info
> [INFO] Command completed in 307ms
> [INFO] login
> [INFO] Command completed in 197ms
> [INFO] 'login' not necessary, no password set for this user.
> [INFO] client -o Eric_Kolotyluk_ekolotyluk-3500
> [INFO] Command completed in 200ms
> [INFO] where P:\Maven\corporate-pom\trunk\pom.xml
> [INFO] Command completed in 192ms
> [INFO] login
> [INFO] Command completed in 200ms
> [INFO] 'login' not necessary, no password set for this user.
> [INFO] login -s
> [INFO] Command completed in 201ms
> [INFO] 'login' not necessary, no password set for this user.
> [INFO] info
> [INFO] Command completed in 197ms
> [INFO] login
> [INFO] Command completed in 202ms
> [INFO] 'login' not necessary, no password set for this user.
> [INFO] client -o Eric_Kolotyluk_ekolotyluk-3500
> [INFO] Command completed in 203ms
> [INFO] where P:\Maven\corporate-pom\trunk\pom.xml
> [INFO] Command completed in 200ms
> [INFO] Checkout working directory:
> P:\Maven\corporate-pom\trunk\target\checkout
> [INFO] sync -f //depot/Maven/corporate-pom/trunk/...@kodak-0.0.3
> [INFO] Command completed in 450ms
> [INFO] [//depot/Maven/corporate-pom/trunk/pom.xml#12 updated
> P:\Maven\corporate-pom\trunk\pom.xml:updated]
> [INFO] Executing goals 'deploy'...
> [WARNING] Maven will be executed in interactive mode, but no input
> stream
> has been configured for this MavenInvoker instance.
> [INFO] [INFO] Scanning for projects...
> [INFO] [INFO]
> -----------------------------------------------------------------------
> -
> [INFO] [INFO] BUILD FAILURE
> [INFO] [INFO]
> -----------------------------------------------------------------------
> -
> [INFO] [INFO] Total time: 0.082s
> [INFO] [INFO] Finished at: Fri Aug 17 13:09:29 PDT 2012
> [INFO] [INFO] Final Memory: 4M/368M
> [INFO] [INFO]
> -----------------------------------------------------------------------
> -
> [INFO] [ERROR] The goal you specified requires a project to execute but
> there is no POM in this directory
> (P:\Maven\corporate-pom\trunk\target\checkout). Please verify you
> invoked
> Maven from the correct directory. -> [Help 1]
> [INFO] [ERROR]
> [INFO] [ERROR] To see the full stack trace of the errors, re-run Maven
> with
> the -e switch.
> [INFO] [ERROR] Re-run Maven using the -X switch to enable full debug
> logging.
> [INFO] [ERROR]
> [INFO] [ERROR] For more information about the errors and possible
> solutions, please read the following articles:
> [INFO] [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExceptio
> n
> [INFO]
> -----------------------------------------------------------------------
> -
> [INFO] BUILD FAILURE
> [INFO]
> -----------------------------------------------------------------------
> -
> [INFO] Total time: 5.041s
> [INFO] Finished at: Fri Aug 17 13:09:29 PDT 2012
> [INFO] Final Memory: 10M/368M
> [INFO]
> -----------------------------------------------------------------------
> -
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-release-plugin:2.3.2:perform (default-
> cli)
> on project kodak: Maven execution failed, exit code: '1' -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> 
> "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" ?
> 
> Am I missing something obvious somewhere?
> 
> Cheers, Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

Re: Struggling with my first release

Posted by Anders Hammar <an...@hammar.net>.
Also, do not use "com" as groupId. You should be using "com.kodak" as
groupId, and (if I may suggest) "kodak-parent" as artifactId for this
corporate pom.

/Anders

On Fri, Aug 17, 2012 at 11:14 PM, Manfred Moser <ma...@mosabuam.com> wrote:
> Haha. Just try the default one for starters. Oh and arguably the people
> that should fix the default integration work for Perforce.
>
> Maybe it is time to switch to git... ask them if you should do that ;-)
>
> manfred
>
>
>  On Fri, August 17, 2012 2:01 pm, Eric Kolotyluk wrote:
>> I guess it is out of the question to expect someone to fix the default
>> perforce integration ;-)
>>
>> Sorry, it's Friday and I have been struggling with this for too long. Then
>> again, maybe I am configuring the default perforce integration wrong.
>>
>> Cheers, Eric
>>
>> On Fri, Aug 17, 2012 at 1:55 PM, Manfred Moser <ma...@mosabuam.com>
>> wrote:
>>
>>> Well.. then get them to tell you how it works. I have no experience with
>>> perforce itself
>>>
>>> manfred
>>>
>>> On Fri, August 17, 2012 1:52 pm, Eric Kolotyluk wrote:
>>> > The default perforce integration does not work. It generates incorrect
>>> p4
>>> > commands. That is why I have been struggling with this for days.
>>> >
>>> > When I called Perforce support they said they only support the p4
>>> > integration.
>>> >
>>> > Cheers, Eric
>>> >
>>> > On Fri, Aug 17, 2012 at 1:49 PM, Manfred Moser <ma...@mosabuam.com>
>>> > wrote:
>>> >
>>> >> 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>some.name@gmail.com</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>some.name@gmail.com</gtalk>
>>> >> >       </properties>
>>> >> >     </contributor>
>>> >> >   </contributors>
>>> >> > -->
>>> >> >
>>> >> >   <developers>
>>> >> >       <developer>
>>> >> >           <id>10069959</id>
>>> >> >           <name>Eric Kolotyluk</name>
>>> >> >           <email>eric.kolotyluk@kodak.com</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
>>> <ma...@mosabuam.com>
>>> >> > 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Struggling with my first release

Posted by Manfred Moser <ma...@mosabuam.com>.
Haha. Just try the default one for starters. Oh and arguably the people
that should fix the default integration work for Perforce.

Maybe it is time to switch to git... ask them if you should do that ;-)

manfred


 On Fri, August 17, 2012 2:01 pm, Eric Kolotyluk wrote:
> I guess it is out of the question to expect someone to fix the default
> perforce integration ;-)
>
> Sorry, it's Friday and I have been struggling with this for too long. Then
> again, maybe I am configuring the default perforce integration wrong.
>
> Cheers, Eric
>
> On Fri, Aug 17, 2012 at 1:55 PM, Manfred Moser <ma...@mosabuam.com>
> wrote:
>
>> Well.. then get them to tell you how it works. I have no experience with
>> perforce itself
>>
>> manfred
>>
>> On Fri, August 17, 2012 1:52 pm, Eric Kolotyluk wrote:
>> > The default perforce integration does not work. It generates incorrect
>> p4
>> > commands. That is why I have been struggling with this for days.
>> >
>> > When I called Perforce support they said they only support the p4
>> > integration.
>> >
>> > Cheers, Eric
>> >
>> > On Fri, Aug 17, 2012 at 1:49 PM, Manfred Moser <ma...@mosabuam.com>
>> > wrote:
>> >
>> >> 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>some.name@gmail.com</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>some.name@gmail.com</gtalk>
>> >> >       </properties>
>> >> >     </contributor>
>> >> >   </contributors>
>> >> > -->
>> >> >
>> >> >   <developers>
>> >> >       <developer>
>> >> >           <id>10069959</id>
>> >> >           <name>Eric Kolotyluk</name>
>> >> >           <email>eric.kolotyluk@kodak.com</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
>> <ma...@mosabuam.com>
>> >> > 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Struggling with my first release

Posted by Eric Kolotyluk <er...@gmail.com>.
I guess it is out of the question to expect someone to fix the default
perforce integration ;-)

Sorry, it's Friday and I have been struggling with this for too long. Then
again, maybe I am configuring the default perforce integration wrong.

Cheers, Eric

On Fri, Aug 17, 2012 at 1:55 PM, Manfred Moser <ma...@mosabuam.com> wrote:

> Well.. then get them to tell you how it works. I have no experience with
> perforce itself
>
> manfred
>
> On Fri, August 17, 2012 1:52 pm, Eric Kolotyluk wrote:
> > The default perforce integration does not work. It generates incorrect p4
> > commands. That is why I have been struggling with this for days.
> >
> > When I called Perforce support they said they only support the p4
> > integration.
> >
> > Cheers, Eric
> >
> > On Fri, Aug 17, 2012 at 1:49 PM, Manfred Moser <ma...@mosabuam.com>
> > wrote:
> >
> >> 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>some.name@gmail.com</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>some.name@gmail.com</gtalk>
> >> >       </properties>
> >> >     </contributor>
> >> >   </contributors>
> >> > -->
> >> >
> >> >   <developers>
> >> >       <developer>
> >> >           <id>10069959</id>
> >> >           <name>Eric Kolotyluk</name>
> >> >           <email>eric.kolotyluk@kodak.com</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 <ma...@mosabuam.com>
> >> > 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
> >> >>
> >> >
> >>
> >
>
>

Re: Struggling with my first release

Posted by Manfred Moser <ma...@mosabuam.com>.
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>some.name@gmail.com</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>some.name@gmail.com</gtalk>
>       </properties>
>     </contributor>
>   </contributors>
> -->
>
>   <developers>
>       <developer>
>           <id>10069959</id>
>           <name>Eric Kolotyluk</name>
>           <email>eric.kolotyluk@kodak.com</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 <ma...@mosabuam.com>
> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Struggling with my first release

Posted by Eric Kolotyluk <er...@gmail.com>.
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>some.name@gmail.com</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>some.name@gmail.com</gtalk>
      </properties>
    </contributor>
  </contributors>
-->

  <developers>
      <developer>
          <id>10069959</id>
          <name>Eric Kolotyluk</name>
          <email>eric.kolotyluk@kodak.com</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 <ma...@mosabuam.com> 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
>

Re: Struggling with my first release

Posted by Manfred Moser <ma...@mosabuam.com>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org