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:
|
Problem symptom:
$ 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:
$ 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:
$ 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:
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
1. 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.
1. Don't create, directly or indirectly, any files under the release build
tree.
||
## Resources
* Apache Apache [Release FAQ](http://www.apache.org/dev/release.html)
* [Signing Releases](http://apache.org/dev/release-signing.html)
* [Wendy's notes on Release Signing](http://wiki.wsmoak.net/cgi-bin/wiki.pl?ReleaseSigning)
* Apache [Mirroring Guidelines](http://apache.org/dev/mirrors.html)
* Struts [Release Instructions](http://cwiki.apache.org/WW/creating-and-signing-a-distribution.html)
(upon which these instructions are based)