This document is intended to set up the Maven committer environment.
When editing source files, make sure you use the right file encoding. For the Maven project, UTF-8 has been chosen as the default file encoding. UTF-8 is an encoding scheme for the Unicode character set and as such allows to encode all characters that Java can handle. The source files should not contain the byte order mark (BOM). There can be exceptions to this general rule, e.g. properties files are usually encoded using ISO-8859-1 as per the JRE API, so please keep this in mind, too.
Before committing files in subversion repository, you need to read the Committer Subversion Access document and you must set your svn client with this properties file: svn-eol-style.txt
The following sections show how to set up the code style for Maven in IDEA and Eclipse. It is strongly preferred that patches use this style before they are supplied.
Download maven-idea-codestyle.xml and copy it to ~/.IntelliJIDEA/config/codestyles then restart IDEA. On Windows, try C:\Documents and Settings\<username>\.IntelliJIDEA\config\codestyles
After this, restart IDEA and open the settings to select the new code style.
Download maven-eclipse-codestyle.xml.
After this, select Window > Preferences, and open up the configuration for Java > Code Style > Code Formatter. Click on the button labeled Import... and select the file you downloaded. Give the style a name, and click OK.
By default, SSH (Secure Shell) asks you to enter your password each time, i.e.:
>ssh vsiveton@apache.org Password:
SSH can be set up with public/private key pairs so that you don't have to type the password each time. You need to execute the following on your development machine:
> ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (~/.ssh/id_dsa): (just type return) Enter passphrase (empty for no passphrase): (just type return) Enter same passphrase again: (just type return) Your identification has been saved in ~/.ssh/id_dsa Your public key has been saved in ~/.ssh/id_dsa.pub The key fingerprint is: ec:06:c7:44:9e:a6:2c:c0:8a:87:04:07:a0:5b:94:d2 YOUR_MACHINE_USERNAME @ YOUR_MACHINE_DOMAIN
Then, paste the content of the local ~/.ssh/id_dsa.pub file into the file /home/YOUR_APACHE_USERNAME/.ssh/authorized_keys on the Apache remote host.
Note: under Cygwin, it is located at {cygwin.install.path}\home\YOUR_MACHINE_USERNAME\.ssh. You need to copy the content of {cygwin.install.path}\home\YOUR_MACHINE_USERNAME\.ssh into C:\Documents and Settings\YOUR_MACHINE_USERNAME\.ssh for Maven.
To test the installation, try to log in again on Apache. You should not be asked for your password any more.
>ssh vsiveton@apache.org
Last login: Tue Oct 10 03:50:10 2006 from ipXXX-XXX-XXX-XXX
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 6.1-RELEASE (SMP-turbo) #0: Thu May 11 11:50:25 PDT 2006
This is an Apache Software Foundation server.
For more information, see http://www.apache.org/dev/
Time to change your password? Type "passwd" and follow the prompts.
-- Dru <genesis@istar.ca>
-bash-2.05b$
The Maven Team uses several software. Here is a partial list: