It is assumed that you already have Maven 3.2.x, Eclipse Kepler SR2 with P4Eclipse and AnyEdit installed. Run the following command under a directory thats host your eclipse workspace (which must on under the same directory of P4Maven source tree)
mvn com.perforce.p4maven:p4maven-dev:configure-eclipse-workspace
This hooks up your eclipse workspace with our local Maven and proper Java/XML code styles.
Run the following Maven command line goal to setup P4IGNORE files under P4Maven source tree
mvn com.perforce.p4maven:p4maven-dev:configure-p4ignore
The following contains one time setup of a local/personal Perforce server (P4D) in order to run P4Maven's TCK and integration test suites
Install the {{{http://info.perforce.com/software-version-control.html}free Perforce server P4D}}.
Create a Perforce account with username/password as admin/admin. You can create this user on the first access using P4Admin at localhost:1666
Create new depot and named it as <scmtck>
Configure your local's settings.xml to contain the following \<server> element
<server> <id>localhost:1666</id> <username>admin</username> <password>admin</password> </server>
Add initial data to test server by running the following IT test under p4maven-provider module.
mvn clean install -Prun-its -Dinvoker.pom=src/it/initial-data
The TCK suite will take longer to run after many runs with many committs. To speed up the test, obliterate <scmtck> depot's contents, and run this step again.
To invoke TCK suite
mvn -Prun-tck
To invoke Integration (IT) suite
mvn -Prun-its
To invoke both test suites
mvn -Prun-tck,run-its
Prior to cutting P4Maven release, you must have the following configured.
Add your workshop.perforce.com credential into local settings.xml. No need to configure password since p4tickets is used
<server> <id>workshop.perforce.com:1666</id> <username>your.workshop.perforce.com.user.name</username> </server>
Install your gpg key using the {{{http://mojo.codehaus.org/development/performing-a-release.html#Making_GPG_Keys}following instructions}} as your guideline
Add your gpg private key's credential to your local settings.xml
<server> <id>gpg-passphrase</id> <passphrase>clear/encrypted passphrase</passphrase> </server>
Add your Sonatype's deploy Maven repository credential into local settings.xml
<server> <id>sonatype-nexus-staging</id> <username>your sonatype user name</username> <password>clear or encrypted password</password> </server>
<server> <id>sonatype-nexus-snapshots</id> <username>your sonatype user name</username> <password>clear or encrypted password</password> </server>
Run all TCK and IT test suites mentioned in this doc
Run the release plugin
mvn -B release:prepare release:perform
When this fails, carefully revert all the changelist and run
mvn -B release:clean
#Eclipse IDE Setup It is assumed that you already have Maven 3.2.x, Eclipse Kepler SR2 with P4Eclipse and AnyEdit installed. Run the following command under a directory thats host your eclipse workspace (which must on under the same directory of P4Maven source tree) mvn com.perforce.p4maven:p4maven-dev:configure-eclipse-workspace This hooks up your eclipse workspace with our local Maven and proper Java/XML code styles. # P4IGNORE Setup Run the following Maven command line goal to setup P4IGNORE files under P4Maven source tree mvn com.perforce.p4maven:p4maven-dev:configure-p4ignore # Test Setup The following contains one time setup of a local/personal Perforce server (P4D) in order to run P4Maven's TCK and integration test suites * Install the {{{http://info.perforce.com/software-version-control.html}free Perforce server P4D}}. * Create a Perforce account with username/password as admin/admin. You can create this user on the first access using P4Admin at localhost:1666 * Create new depot and named it as <scmtck> * Configure your local's settings.xml to contain the following \<server\> element <server> <id>localhost:1666</id> <username>admin</username> <password>admin</password> </server> * Add initial data to test server by running the following IT test under p4maven-provider module. mvn clean install -Prun-its -Dinvoker.pom=src/it/initial-data The TCK suite will take longer to run after many runs with many committs. To speed up the test, obliterate <scmtck> depot's contents, and run this step again. # Test Suites * To invoke TCK suite mvn -Prun-tck * To invoke Integration (IT) suite mvn -Prun-its * To invoke both test suites mvn -Prun-tck,run-its # Setting up Release Automation Prior to cutting P4Maven release, you must have the following configured. * Add your workshop.perforce.com credential into local settings.xml. No need to configure password since p4tickets is used <server> <id>workshop.perforce.com:1666</id> <username>your.workshop.perforce.com.user.name</username> </server> * Install your gpg key using the {{{http://mojo.codehaus.org/development/performing-a-release.html#Making_GPG_Keys}following instructions}} as your guideline * Add your gpg private key's credential to your local settings.xml <server> <id>gpg-passphrase</id> <passphrase>clear/encrypted passphrase</passphrase> </server> * Add your Sonatype's deploy Maven repository credential into local settings.xml <server> <id>sonatype-nexus-staging</id> <username>your sonatype user name</username> <password>clear or encrypted password</password> </server> <server> <id>sonatype-nexus-snapshots</id> <username>your sonatype user name</username> <password>clear or encrypted password</password> </server> # Releasing P4Maven * Run all TCK and IT test suites mentioned in this doc * Run the release plugin mvn -B release:prepare release:perform * When this fails, carefully revert all the changelist and run mvn -B release:clean
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 11424 | dantran |
- P4Java logs are no under debug mode to reduce verbosity. To enable, pass in -X into mvn command - Info command now supports tag - Add p4java into export extension - Use BSD for license name - Update doc |
||
#1 | 11406 | dantran | Remote Maven site, place important user and dev doc at root level instead |