|
If you get hung up during release:perform because Maven can't verify the authenticity of a host, then there could be one of two Maven doesn't appear to understand hashed known_hosts files. There is some information here - known_hosts file Hashing. |
mkdir ~/.ssh chmod 700 ~/.ssh ssh-keygen -q -f ~/.ssh/id_rsa -t rsa #Enter a passphrase chmod go-rwx ~/.ssh/* #copy the public key to people.apache.org scp ~/.ssh/id_rsa.pub people.apache.org:/home/$USERNAME # next, setup the public key on server ssh people.apache.org mkdir ~/.ssh chmod 700 ~/.ssh cat ~/id_rsa.pub >> ~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys rm ~/id_rsa.pub |
svn co https://svn.apache.org/repos/asf/struts/maven/trunk/build struts-maven-build cd struts-maven-build (gpg --fingerprint --list-sigs <your name> && gpg --armor --export <your name>) >> KEYS scp KEYS people.apache.org:/www/www.apache.org/dist/struts svn commit KEYS -m "Add public key" |
Create a settings.xml under ~/.m2 and follow below instructions:
<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>
<!-- To publish a snapshot of some part of Maven -->
<server>
<id>apache.snapshots.https</id>
<username> <!-- YOUR APACHE LDAP USERNAME --> </username>
<password> <!-- YOUR APACHE LDAP PASSWORD --> </password>
</server>
<!-- To publish a website of some part of Maven -->
<server>
<id>apache.website</id>
<username> <!-- YOUR APACHE LDAP USERNAME --> </username>
<filePermissions>664</filePermissions>
<directoryPermissions>775</directoryPermissions>
</server>
<!-- To stage a release of some part of Maven -->
<server>
<id>apache.releases.https</id>
<username> <!-- YOUR APACHE LDAP USERNAME --> </username>
<password> <!-- YOUR APACHE LDAP PASSWORD --> </password>
</server>
<!-- To stage a website of some part of Maven -->
<server>
<id>stagingSite</id> <!-- must match hard-coded repository identifier in site:stage-deploy -->
<username> <!-- YOUR APACHE LDAP USERNAME --> </username>
<filePermissions>664</filePermissions>
<directoryPermissions>775</directoryPermissions>
</server>
</servers>
<profiles>
<profile>
<id>apache-release</id>
<properties>
<gpg.passphrase> <!-- YOUR KEY PASSPHRASE --> </gpg.passphrase>
</properties>
</profile>
</profiles>
</settings>
|
To complete a full build and all the tests, it may be neccesary to increase the amount of memory available to Maven. The simplest thing is to set an environment variable.
MAVEN_OPTS=-Xmx512m or even MAVEN_OPTS=-Xmx1024mIf a tagged build needs to be retagged, be sure to delete the old tag first.
svn delete https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_#_#_# -m "WW-### Removing first try at 2.#.#." |
If the commit was fine, but the log was wrong, updating the log entry is easy. For example,
> svn propset --revprop -r 504523 svn:log "WW-1715 Branch for 2.0.x at Struts 2.0.6-SNAPSHOT r504196" > property 'svn:log' set on repository revision 504523 |
See svn help propset for more.