Developing Apache Axis2
This document will give you information on how to use SVN in order to get
an SVN checkout/update and making commits to repository etc in the process of
contributing to Apache projects (specifically Axis2). Instructions on
configuring IDEs for development and using Maven to build the project is also
included here.
Content
Working with Subversion (SVN)
The Axis2 development team uses Subversion (SVN) for source control.
Subversion is a compelling replacement for CVS, developed under the auspices
of the Tigris community and is licensed under an Apache compatible license.
To learn more about Subversion or to download the latest distribution, visit
the Subversion
project site. If you are looking for guidance on setting up and
installing Subversion, please read the ASF Source
Code Repositories page.
Checkout Axis2 From Subversion
When checking out the latest version of Axis2 from the Foundation's
Subversion repository you must use one of the following URLs depending on
your level of access to the Axis2 source code:
If you are a committer, make sure that you have selected an svnpasswd. To do
this you must log into svn.apache.org. For more information, please read the
ASF Source Code Repositories page.
Once you have successfully installed Subversion, you can check out Axis2
trunk by following these steps:
- Run svn co <repository URL> axis2 where
repository URL is one of the URLs from the previous list.
- This step will check out the latest version of the Axis2 Java codebase
to a directory named "axis2". The second parameter to the svn co selects
a directory to create on your local machine. If you want to checkout
Axis2 to a different directory, feel free to change axis2 to any other
directory name.
- To update your working copy to the latest version from the repository.
Execute the svn update command.
- If you would like to submit a patch, you can execute svn
diff to create a unified diff for submission to the Axis2 JIRA
issue tracker.
Installing Maven 1
Axis2's build is based on Maven 1. Maven is a build system that allows
for the reuse of common build projects across multiple projects. For
information about obtaining, installing, and configuring Maven 1, please see
the Maven project page.
To use Maven to build the Axis2 project, follow these simple steps:
- Install Maven1. See here for instructions.
- Create a MAVEN_HOME environment variable.
- Add MAVEN_HOME/bin to your PATH
- Go to the axis2 folder in the command prompt and type
maven.
- Maven will then automatically download all the jars, compile, test and
build the Axis2 deliverables.
Configuring your IDE
The Axis2 development team uses a variety of development tools from vi to
emacs to eclipse to Intellij/IDEA. The following section is not an
endorsement of a specific set of tools, it is simply meant as a pointer to
ease the process of getting started with Axis2 development.
- Intellij IDEA- type maven
idea:multiproject. This will generate the necessary IDEA .ipr,
.iml and .iws project files
- eclipse- type
maven multiproject:goal -Dgoal=eclipse
Then in Eclipse, setup a Classpath Variable for MAVEN_REPO, and select
File > Import > Existing Projects into Workspace > Select root directory.
Selecting the root of the Axis source discovers all of the modules and allows
all to be imported as individual projects at once.