Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Work in progress. Times are just guesses and some information may be missing.

Prerequisites

// TODO MDD

Tasks that need to be performed for each release

The example below uses 1.2.x as the new branch and 1.2.0 as the new release.

Still may need some work...

  1. You should read the OpenJPA Release Policy to decide on the name of the new release, based on the content.
  2. You should read the Apache Release FAQ
  3. You must have shell access to people.apache.org
  4. You must have the following utilities installed on your local machine and available in your path:
    • JDK 1.4 / 5.0 (prefer Sun JDK over IBM JDK)
    • Maven 2 (at least version 2.0.8)
    • ssh (cygwin covers this on Windows)
    • gnupg (cygwin covers this on Windows)
  5. For Windows users, install Cygwin in addition to the above utilities
    • Make sure the Net/openssh and Utils/gnupg packages are installed that come with Cygwin installation.

Tasks that need to be performed for each release

The example below uses 1.2.x as the new branch and 1.2.0 as the new release.

Create a sub-branch off of the parent branch from which to make the release. Releasing from a branch will allow any cosmetic changes that need to be made for the release to be approved to be done without preventing other more disruptive advances in the trunk from potentially causing problems with the release. A branch can be made by running:

Checkout the branch

Commit these changes back to the branch

Do a dry run of the release plugin. The dry run will not commit any changes back to SVN and gives you the opportunity to verify that the release process will complete as expected. You will be prompted for the following information :

  • The new release number (default 1.2.0)
  • The SCM tag (default apache-openjpa-1.2.0) *this should be changed to just 1.2.0
  • The new development version (default 1.2.1)
  • optional if you have not specified a GPG passphrase in settings.xml you will be prompted for it.

    Validate that the release process completed as expected. The release plugin will create pom.xml.tag files which contain the changes that would have been committed to SVN. The only differences between pom.xml.tag and it's corresponding pom.xml file should be the version number. If other formatting changes have been made you should rollback the release and commit the changes manually.

    Prepare the release. You'll be prompted for the version information and optionally your GPG passphrase again.

    Perform the release. This step will create a maven repository for use in testing on people.apache.org:/home/userName/public_html/openjpa/newVersion. You will may be prompted for your people.apache.org password several times if you have not added a ssh key to .authorized_keys. One time setup.

    Copy the distribution files to dist on people.apache.org.

    Make a news announcement on the OpenJPA wiki.

    Monday, 12:00

    Make sure the #One time setup steps have been performed.

    • set MAVEN_OPTS=-Xmx512m (for documentation creation)
    • Use Sun JDK (if possible)
      • If using IBM JDK, then also set MAVEN_OPTS=-Xdump:none (Avoids OOM heap dumps on selected tests. These extra files throw off the rat:check processing.)
    • On Windows, use a cygwin window (vs a standard DOS prompt window).

    Monday, 12:01

    Create a sub-branch off of the parent branch from which to make the release. Releasing from a branch will allow any cosmetic changes that need to be made for the release to be approved to be done without preventing other more disruptive advances in the trunk from potentially causing problems with the release. A branch can be made by running:

    Code Block
    none
    none
    
    $ mvn release:branch -DbranchName=1.2.x
    

    Monday, 12:02

    Checkout the branch using command line svn.

    • Do not use Eclipse to do the checkout. The extra dot (.) files created by Eclipse throws off the rat:check processing.
      Code Block
      none
      none
       $ svn checkout https://svn.apache.org/repos/asf/openjpa/branches/1.2.x 1.2.x
      $ cd 1.2.x 

    Monday, 12:04

    Update the text files which are included in the release. See instructions at Update release text files for details.

    Monday, 12:10

    Commit these changes back to the branch

    Code Block
    none
    none
     $ svn commit -m "updating text files for 1.2.0 release"
    

    Monday, 12:11

    Do a dry run of the release plugin. The dry run will not commit any changes back to SVN and gives you the opportunity to verify that the release process will complete as expected. You will be prompted for the following information :

    1. The new release number (default 1.2.0)
    2. The SCM tag (default apache-openjpa-1.2.0) *this should be changed to just 1.2.0
    3. The new development version (default 1.2.1)
    4. optional if you have not specified a GPG passphrase in settings.xml you will be prompted for it.
      Code Block
      none
      none
      $ mvn -Prelease,docbook-profile release:prepare -DdryRun=true  
          <snip>
          [INFO] [release:prepare]
          [INFO] Verifying that there are no local modifications...
          [INFO] Executing: svn --non-interactive status
          [INFO] Working directory: /home/mikedd/workspaces/temp/jpadev/branches/1.0.x
          [INFO] Checking dependencies and plugins for snapshots ...
          What is the release version for "OpenJPA"? (org.apache.openjpa:openjpa-parent) 1.2.0: : 
          What is SCM release tag or label for "OpenJPA"? (org.apache.openjpa:openjpa-parent) openjpa-parent-1.2.0: : 1.2.0
          What is the new development version for "OpenJPA"? (org.apache.openjpa:openjpa-parent) 1.2.1-SNAPSHOT: : 
          

    Monday, 12:30

    Validate that the release process completed as expected. The release plugin will create pom.xml.tag files which contain the changes that would have been committed to SVN. The only differences between pom.xml.tag and it's corresponding pom.xml file should be the version number. If other formatting changes have been made you should rollback the release and commit the changes manually.

    Code Block
    none
    none

    Monday, 12:00

    Make sure the One time setup steps have been performed

    Monday, 12:01

    Code Block
    nonenone
    
    $ mvn release:branch -DbranchName=1.2.x
    

    Monday, 12:02

    Code Block
    nonenone
     $ svn checkout https://svn.apache.org/repos/asf/openjpa/branches/1.2.x 1.2.x
    $ cd 1.2.x 

    Monday, 12:04

    Update the text files which are included in the release. See instructions at Update release text files for details.

    Monday, 12:10

    Code Block
    nonenone
     $ svn commit -m "updating text files for 1.2.0 release"
    

    Monday, 12:11

    Code Block
    nonenone
    $ mvn -Prelease,docbook-profile release:prepare -DdryRun=true  
        <snip>
        [INFO] [release:prepare]
        [INFO] Verifying that there are no local modifications...
        [INFO] Executing: svn --non-interactive status
        [INFO] Working directory: /home/mikedd/workspaces/temp/jpadev/branches/1.0.x
        [INFO] Checking dependencies and plugins for snapshots ...
        What is the release version for "OpenJPA"? (org.apache.openjpa:openjpa-parent) 1.2.0: : 
        What is SCM release tag or label for "OpenJPA"? (org.apache.openjpa:openjpa-parent) openjpa-parent-1.2.0: : 1.2.0
        What is the new development version for "OpenJPA"? (org.apache.openjpa:openjpa-parent) 1.2.1-SNAPSHOT: : 
        

    Monday, 12:30

    Code Block
    nonenone
    $ mvn -Prelease,docbook-profile release:rollback 
    # make changes
    $ svn commit -m "fixing formatting for 1.2.0 release" 

    Monday, 12:31

    Assuming the .tag files look OK you may proceed and do any other validation you feel necessary. The following list may be helpful

    Monday, 12:52

    Code Block
    nonenone
     $ mvn -Prelease release:prepare 

    Monday, 13:15

    Code Block
    nonenone
    $ mvn -Prelease,docbook-profile release:perform 

    Monday, 13:40

    Create and upload the site. This step also uploads data to people.apache.org.

    Code Block
    nonenone
     
    $ cd target/checkout 
    $ mvn -Prelease,docbook-profile site siterelease:deploy 

    Monday, 13,40

    Unzip the binary archive the staging site directory

    Code Block
    nonenone
    
    # ssh to people.apache.org 
    $ cd ~/public_html/openjpa/rollback 
    # make changes
    $ svn commit -m "fixing formatting for 1.2.0/staging-site
    $ unzip -qq apache-openjpa/downloads/apache-openjpa-1.2.0-binary.zip 
     release" 

    Monday, 1312:41

    Send an email to dev@openjpa.apache.org requesting a vote. Vote email example

    Tuesday, Wednesday, Thursday

    A -1 vote does not necessarily mean that the vote must be redone however it is usually a good idea to rollback the release if a -1 vote is received. Recovering from a vetoed release

    31

    Assuming the .tag files look OK you may proceed and do any other validation you feel necessary. The following list may be helpful

    Monday, 12:52

    Prepare the release. You'll be prompted for the version information and optionally your GPG passphrase again

    Thursday, 13:41

    If the vote passes copy the release artifacts from your home directory to the ibiblio-rsync-repository using the maven stage plugin.

    Code Block
    none
    none
     $ mvn stage:copy -Dsource="http://people.apache.org/~mikedd/openjpa/1.2.0/staging-repo" \
      -Dtarget="scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository" \
      -Dversion=1.2.0 \
      -DtargetRepositoryId=apache.releases
    

    After the stage plugin completes it's a good idea to check the permissions on the file system.

    Code Block
    
    $ ssh people.apache.org
    $ cd /www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/openjpa/
    $ ls -l openjpa-examples/1.2.0
    
    # if you see something like the following you probably need to change the permissions.
    # *-rw-r--r--*  1 mikedd  apcvs  59162 Jul 23 09:34 openjpa-examples-1.2.0-javadoc.jar
    
    $ for file in `find /www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/openjpa/ -type d -iname '1.2.0'`\
      do \
      chmod -R g+w ${file} \ 
      done
    
    $ ls -l openjpa-examples/1.2.0
    
    # Now it should look something like this
    # *-rw-rw--r--*  1 mikedd  apcvs  59162 Jul 23 09:34 openjpa-examples-1.2.0-javadoc.jar
    
    -Prelease release:prepare 

    Monday, 13:15

    Perform the release. This step will create a maven repository for use in testing on people.apache.org:/home/userName/public_html/openjpa/newVersion. You will may be prompted for your people.apache.org password several times if you have not added a ssh key to .authorized_keys. One time setup.

    Code Block
    none
    none
    $ mvn -Prelease,docbook-profile release:perform 

    Monday, 13:40

    Create and upload the site. This step also uploads data to people.apache.org.

    Code Block
    none
    none
     
    $ cd target/checkout 
    $ mvn -Prelease,docbook-profile site site:deploy 

    Monday, 13:40

    Unzip the binary archive the staging site directory

    Code Block
    none
    none
    
    # ssh to people.apache.org 
    $ cd ~/public_html/openjpa/1.2.0/staging-site
    $ unzip -qq apache-openjpa/downloads/apache-openjpa-1.2.0-binary.zip 
    

    Monday, 13:41

    Send an email to dev@openjpa.apache.org requesting a vote. Vote email example

    Tuesday, Wednesday, Thursday

    A -1 vote does not necessarily mean that the vote must be redone however it is usually a good idea to rollback the release if a -1 vote is received. Recovering from a vetoed release

    Thursday, 13:41

    If the vote passes copy the release artifacts from your home directory to the ibiblio-rsync-repository using the maven stage plugin.

    Code Block
    none
    none
     $ mvn stage:copy -Dsource="http://people.apache.org/~mikedd/openjpa/1.2.0/staging-repo" \
      -Dtarget="scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository" \
      -Dversion=1.2.0 \
      -DtargetRepositoryId=apache.releases
    

    After the stage plugin completes it's a good idea to check the permissions on the file system.

    Code Block
    
    $ ssh

    Thursday, 14:00

    Copy build artifacts to the openjpa/builds location on people.apache.org.

    Code Block
    nonenone
    # ssh to people.apache.org
    $ cpcd -r ~/public_html/openjpa/1.2.0/staging-site/ /www/openjpa.apache.org/builds/1.2.0
    $ chmod -R g+w /www/openjpa.apache.org/builds/www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/openjpa/
    $ ls -l openjpa-examples/1.2.0
    
    # verifyif that /www/openjpa.apache.org/builds/1.2.0/docs/manual is populated correctly by comparing it to a previous release. 
    $ rm /www/openjpa.apache.org/docs/latest
    $ ln -fvs ../builds/1.2.0/apache-openjpa/docs/ /www/openjpa.apache.org/docs/latest 

    Thursday, 14:10

    Code Block
    nonenone
     
    # ssh to people.apache.org
    
    # verify that md5 and sha1 files were generated for the download artifacts
    $ ls /www/openjpa.apache.org/builds/1.2.0/apache-openjpa/downloads/*.md5
    $ ls /www/openjpa.apache.org/builds/1.2.0/apache-openjpa/downloads/*.sha1
    
    # if no md5 and sha1 files are present, generate them. 
    # Alternatively you can copy the artifacts from the staging-repo directory the checksums are generated there.
    $ md5 -q apache-openjpa-1.2.0-binary.zip > apache-openjpa-1.2.0-binary.zip.md5
    $ md5 -q apache-openjpa-1.2.0-source.zip > apache-openjpa-1.2.0-source.zip.md5
    $ sha1 -q apache-openjpa-1.2.0-source.zip > apache-openjpa-1.2.0-source.zip.sha1
    $ sha1 -q apache-openjpa-1.2.0-binary.zip > apache-openjpa-1.2.0-binary.zip.sha1
    
    $ mkdir /www/www.apache.org/dist/openjpa/1.2.0
    $ cp -r /www/openjpa.apache.org/builds/1.2.0/apache-openjpa/downloads/* /www/www.apache.org/dist/openjpa/1.2.0
    $ chgrp -R openjpa /www/www.apache.org/dist/openjpa/1.2.0
    $ chmod -R g+w /www/www.apache.org/dist/openjpa/1.2.0
    

    Thursday, 14:15

    Update the JIRA versions page to mark the version as "released", and set the date to the date that the release was approved. You may also need to make a new release entry for the subsequent release.

    Friday, 14:15

    After the mirrors have had time to update (24 hours to be on the safe side) update the downloads page with the new release

    Friday, 14:15

    Note

    Once the news item is made, it won't show up on the front page unless you make some minor edit to the containing page (e.g., adding a newline somewhere).

    Friday, 14:15

    Make an announcement about the release on the users@openjpa.apache.org list (and, for major releases, on the announce@apache.org list as per the Apache Announcement Mailing Lists page). The announcement might look something like this.

    Friday, 14:20

    Make an announcement for the freshmeat.net OpenJPA project (optional)

    Friday, 14:30

    Have a beer and enjoy your weekend while the world's grateful programmers revel in yet another high-quality release of Apache OpenJPA!
    you see something like the following you probably need to change the permissions.
    # *-rw-r--r--*  1 mikedd  apcvs  59162 Jul 23 09:34 openjpa-examples-1.2.0-javadoc.jar
    
    $ for file in `find /www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/openjpa/ -type d -iname '1.2.0'`\
      do \
      chmod -R g+w ${file} \ 
      done
    
    $ ls -l openjpa-examples/1.2.0
    
    # Now it should look something like this
    # *-rw-rw--r--*  1 mikedd  apcvs  59162 Jul 23 09:34 openjpa-examples-1.2.0-javadoc.jar
    

    Thursday, 14:00

    Copy build artifacts to the openjpa/builds location on people.apache.org.

    Code Block
    none
    none
    # ssh to people.apache.org
    $ cp -r ~/public_html/openjpa/1.2.0/staging-site/ /www/openjpa.apache.org/builds/1.2.0
    $ chmod -R g+w /www/openjpa.apache.org/builds/1.2.0
    # verify that /www/openjpa.apache.org/builds/1.2.0/docs/manual is populated correctly by comparing it to a previous release. 
    $ rm /www/openjpa.apache.org/docs/latest
    $ ln -fvs ../builds/1.2.0/apache-openjpa/docs/ /www/openjpa.apache.org/docs/latest 

    Thursday, 14:10

    Copy the distribution files to dist on people.apache.org.

    Code Block
    none
    none
     
    # ssh to people.apache.org
    
    # verify that md5 and sha1 files were generated for the download artifacts
    $ ls /www/openjpa.apache.org/builds/1.2.0/apache-openjpa/downloads/*.md5
    $ ls /www/openjpa.apache.org/builds/1.2.0/apache-openjpa/downloads/*.sha1
    
    # if no md5 and sha1 files are present, generate them. 
    # Alternatively you can copy the artifacts from the staging-repo directory the checksums are generated there.
    $ md5 -q apache-openjpa-1.2.0-binary.zip > apache-openjpa-1.2.0-binary.zip.md5
    $ md5 -q apache-openjpa-1.2.0-source.zip > apache-openjpa-1.2.0-source.zip.md5
    $ sha1 -q apache-openjpa-1.2.0-source.zip > apache-openjpa-1.2.0-source.zip.sha1
    $ sha1 -q apache-openjpa-1.2.0-binary.zip > apache-openjpa-1.2.0-binary.zip.sha1
    
    $ mkdir /www/www.apache.org/dist/openjpa/1.2.0
    $ cp -r /www/openjpa.apache.org/builds/1.2.0/apache-openjpa/downloads/* /www/www.apache.org/dist/openjpa/1.2.0
    $ chgrp -R openjpa /www/www.apache.org/dist/openjpa/1.2.0
    $ chmod -R g+w /www/www.apache.org/dist/openjpa/1.2.0
    

    Thursday, 14:15

    Update the JIRA versions page to mark the version as "released", and set the date to the date that the release was approved. You may also need to make a new release entry for the subsequent release.

    Friday, 14:15

    After the mirrors have had time to update (24 hours to be on the safe side) update the downloads page with the new release

    Friday, 14:15

    Make a news announcement on the OpenJPA wiki.

    Note

    Once the news item is made, it won't show up on the front page unless you make some minor edit to the containing page (e.g., adding a newline somewhere).

    Friday, 14:15

    Make an announcement about the release on the users@openjpa.apache.org list (and, for major releases, on the announce@apache.org list as per the Apache Announcement Mailing Lists page). The announcement might look something like this.

    Friday, 14:20

    Make an announcement for the freshmeat.net OpenJPA project (optional)

    Friday, 14:30

    Have a beer and enjoy your weekend while the world's grateful programmers revel in yet another high-quality release of Apache OpenJPA!

    One time setup

    These setup steps only need to be performed on a particular machine once.

    Info

    Developers using Linux workstations can skip over the references to PuTTY and Cygwin

    Create and install a SSH key

    1

    Install PuTTY

    2a

    Use ssh-keygen to create a SSH key.

    Info

    See Authenticating By Public Key (OpenSSH) for a good description on why and how to perform this task.

    2b

    In Windows platform, use PuttyGen to create a SSH key (see Putty help for details).

    Info
    • Use "SSH-2 DSA" key type and 1024-bit key size.
    • Copy the content of the "Public key for pasting...." and save it to a file named authorized_keys for later use.
    • The private key saved by PuTTYGen can only be used in Putty configuration.

    3

    pscp your SSH public key authorized_keys saved in last step to ~/authorized_keys

    4

    Use PuTTY to login to people.apache.org

    5

    Create a ~\.ssh folder and change its file mode to 700.

    6

    Move or append ~/authorized_keys to ~/.ssh/authorized_keys and change its file mode to 600.

    Info
    • Each public key in the authorized_keys spans only one line.
      • For example: "ssh-dss AAAAB3NzaC1kc3MAAA ..... agBmmfZ9uAbSqA== dsa-key-20071107"
    • '#' in the first column is a comment line.

    7

    Configure putty to use your private key and save the session

    Info

    Specify your private key in the "Connection -> SSH -> Auth" category in Putty configuration.

    Create a PGP key

    1

    Install cgywin, including Utils/gnupg and Net/openssh packages, or install gpg from http://www.gnupg.org/(en)/download/index.html

    2

    Generate a key-pair with $ gpg --gen-key using default key kind ("DSA and Elgamal") and ELG-E keys size (2048).

    Info
    • The generated keys are stored in $HOME/.gnupg or %HOME%\Application Data\gnupg subdirectory.
    • Save the content in this subdirectory to a safe media. This contains your private key used to sign all the OpenJPA release materials.

    3

    Backup your cygwin home directory to another media

    4

    Add your public key to https://svn.apache.org/repos/asf/openjpa/site/docs/KEYS and /www/www.apache.org/dist/openjpa/KEYS. See the commands describe at the beginning of this KEYS file to perform this task. The gpg key-pair is used to sign the published artifacts for the OpenJPA releases.

    5

    Following the instructions in http://people.apache.org/~henkp/trust/ and ask someone in the OpenJPA project to sign your public key.

    6

    Submit your public key to a key server. E.g. http://pgp.surfnet.nl:11371/ or http://pgp.mit.edu/

    Update Maven settings for our servers

    1

    Create a settings.xml under .m2 (in your Document and Settings folder in Windows)

     

    Code Block
    xml
    xml
    titlesettings.xml
    borderStylesolid
    
    <settings 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/settings-1.0.0.xsd">
        <servers>
           <server>
              <id>people.apache.org</id>
              <username>$USERNAME</username>
              <privateKey>$PATH_TO_PRIVATE_KEY</privateKey>
              <directoryPermissions>775</directoryPermissions>
              <filePermissions>644</filePermissions>
           </server>
        </servers>    
    </settings>
    
    Info

    $PATH_TO_PRIVATE_KEY is the path to the private key generated for ssh. E.g. /home/yourLocalUserId/.ssh/id_dsa.

    Expose a copy of known hosts to Maven

    1

    From cygwin, ssh to people.apache.org, save the public key if prompted, and exit

     

    cygwin will save the known hosts to your ~/.ssh folder, but the script cannot access it there (from Windows)

    2

    From cygwin (not Windows) create another .ssh folder at (question)

    3

    Copy the known_hosts file to the new .ssh folder

    Troubleshooting

    Space Character in Build Root Path

    Description

    If there are spaces in the path to the build root subdirectory, the maven task uses to generate the revision number for the org.apache.openjpa.revision.properties yields incorrect data. For example:

    Code Block
    titleorg.apache.openjpa.revision.properties
    borderStylesolid
    
    revision.number=Type 'svnversion --help' for usage.
    openjpa.version=1.0.1
    

    Solution

    Rename the path and remove all spaces.

    Merging local repository to remote repository in Cygwin/Windows

    Description

    The "maven-stage-plugin" is very sensitive to the parameters being passed to it, i.e. the source and target URL properties. When this plugin is used under Cygwin, make sure the following practices are used:

    • Use absolute path in the find command's root directory.
      Problem symptom:
      Code Block
      
      $ find . -name m2-repository -not -path "*openjpa-project*" \
          -exec mvn -f "c:/tmp/maven-stage-plugin/pom.xml" stage:copy \
          -Dsource=file://{} -Dtarget=scp://allee8285@people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository \
          -Dversion=1.0.1 \;
      [INFO] Scanning for projects...
      [INFO] Searching repository for plugin with prefix: 'stage'.
      ........
      [INFO] Downloading file from the source repository:
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error copying repository from file://./openjpa-all/target/site/m2-repository to \
             scp://allee8285@people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository
      
    • Quote and use the drive name in the path.
      Problem symptom:
      Code Block
      
      $ find /cygdrive/c/OpenJPA.1.0.1.Release/1.0.1 -name m2-repository -not -path "*openjpa-project*" \
          -exec mvn -f /cygwin/c/tmp/maven-stage-plugin/pom.xml stage:copy \
          -Dsource=file://{} -Dtarget=scp://allee8285@people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository \
          -Dversion=1.0.1 \;
      [INFO] Scanning for projects...
      [INFO] Searching repository for plugin with prefix: 'stage'.
      ........
      [INFO] Downloading file from the source repository:
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error copying repository from file:///cygdrive/c/OpenJPA.1.0.1.Release/1.0.1/openjpa-all/target/site/m2-repository to
             scp://allee8285@people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository
      
      Embedded error: Could not read from file: c:\cygdrive\c\OpenJPA.1.0.1.Release\1.0.1\openjpa-all\target\site\m2-repository
      \cygdrive\c\OpenJPA.1.0.1.Release\1.0.1\openjpa-all\target\site\m2-repository (Access is denied.)
      
    • Specify the people.apache.org user id in the target property.
      Problem symptom:
      Code Block
      
      $ find "c:/OpenJPA.1.0.1.Release/1.0.1" -name m2-repository -not -path "*openjpa-project*" \
         -exec mvn -f "c:/tmp/maven-stage-plugin/pom.xml" stage:copy 
         -Dsource=file://{} -Dtarget=scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository \
         -Dversion=1.0.1 \;
      [INFO] Scanning for projects...
      [INFO] Searching repository for plugin with prefix: 'stage'.
      [INFO] ----------------------------------------------------------------------------
      ........
      [INFO] Downloading file from the source repository: /org/apache/openjpa/openjpa/maven-metadata.xml.sha1
      [INFO] Downloading metadata from the target repository.
      Password:: *********
      ........
      Password:: *********
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error copying repository from file://c:/OpenJPA.1.0.1.Release/1.0.1/openjpa-all/target/site/m2-repository to \
             scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository
      

    Solution

    As recommended in the descriptions.

    Note

    For example:

    Code Block
    
    find "c:/OpenJPA.1.0.1.Release/1.0.1" -name m2-repository -not -path "*openjpa-project*" \
        -exec mvn -f "c:/tmp/maven-stage-plugin/pom.xml" stage:copy \
        -Dsource=file://{} \
        -Dtarget=scp://allee8285@people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository \
        -Dversion=1.0.1 \;
    

    Cygwin/Windows File Path

    Description

    For Cygwin/Windows user: file and folder path names using drive identifier (e.g. C:\OpenJPA Release\1.0.1 ) in commands can be expressed as /cygwin/c/OpenJPA Release/1.0.1/. This form of path name specification may have inconsistent and undesirable behaviors.

    Solution

    Consistently use the following naming conventions:

    • Continue to use the Windows form of path name, e.g. C:\a\b\c
    • Use '/' instead of '\' character as file separator, e.g. C:/a/b/c
    • Quote all path name using '"' character, e.g. "C:/a/b/c"
    • Avoid using space characters in path name, e.g. "C:/OpenJPA.Release/1.0.1"

    "Too many unapproved licenses:"

    Description

    Encounter the "Too many unapproved licenses:" message while running the "license-verify-profile" profile in "mvn deploy site..." step. This is caused by extra artifacts in the build tree that the license verification plugin does not recognized. Examples of these artifacts are:

    1. Eclipse control files, .classpath, .project
    2. User created log files

    Solution

    Avoid the followings:

    1. Don't use Eclipse's svn plugin to "Check out" files to a Eclipse project. Simply use the svn command, as described in the release instructions.
    2. Don't create, directly or indirectly, any files under the release build tree.
    3. Don't use the IBM JDK. By default, the IBM JDK will create heap dumps when hitting the OOM condition in some of our tests. These extra files throw off the rat:check processing. If you must use the IBM JDK, then also set MAVEN_OPTS=-Xdump:none.

    Resources