| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
| "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html> | |
| <head> | |
| <title>Quick Guide to Maven for Axis 2.0</title> | |
| <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> | |
| <link href="css/axis-docs.css" rel="stylesheet" type="text/css" media="all"> | |
| </head> | |
| <body lang="en"> | |
| <h1 align="center">Quick Guide to Maven for Axis 2.0</h1> | |
| <h2 align="left">Introduction</h2> | |
| <p align="left"><a href="http://maven.apache.org">Maven</a> is used as the | |
| build tool of Axis 2.0. This document will provide a quick guide on how to | |
| use Maven with your developments.</p> | |
| <h2 align="left">Commands</h2> | |
| <table border="1" align="center"> | |
| <tbody> | |
| <tr> | |
| <th scope="col"> | |
| <div align="left"> | |
| Command</div> | |
| </th> | |
| <th scope="col"> | |
| <div align="left"> | |
| Description</div> | |
| </th> | |
| </tr> | |
| <tr> | |
| <td> | |
| <div align="left"> | |
| maven</div> | |
| </td> | |
| <td> | |
| <div align="left"> | |
| Downloads relevant jars if not available, and compiles and runs the | |
| tests in the system.</div> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td>maven clean</td> | |
| <td>Cleans all the content built so far in the target folder. This will | |
| not clean the jar repository.</td> | |
| </tr> | |
| <tr> | |
| <td> | |
| <div align="left"> | |
| maven test</div> | |
| </td> | |
| <td> | |
| <div align="left"> | |
| Runs only the tests. Performs automatic compilation of the changed | |
| sources as well. This will not run SOAP interop tests</div> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| <div align="left"> | |
| maven clean all-tests</div> | |
| </td> | |
| <td> | |
| <div align="left"> | |
| Cleans up and runs all offline and online tests</div> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| <div align="left"> | |
| maven itest</div> | |
| </td> | |
| <td> | |
| <div align="left"> | |
| To run the online-mode tests for say the modules/integration, run | |
| "maven itest" from modules/integration</div> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| <div align="left"> | |
| maven test itest</div> | |
| </td> | |
| <td> | |
| <div align="left"> | |
| To run all the tests for say the modules/integration, run "maven test | |
| itest" from modules/integration</div> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| <div align="left"> | |
| maven -g</div> | |
| </td> | |
| <td> | |
| <div align="left"> | |
| Lists down all the commands available with Maven.</div> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| <div align="left"> | |
| maven multiproject</div> | |
| </td> | |
| <td> | |
| <div align="left"> | |
| Generates the site.</div> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| <div align="left"> | |
| maven idea:multiproject</div> | |
| </td> | |
| <td> | |
| <div align="left"> | |
| Generates IDEA .ipr, .iml and .iws project files.</div> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| <div align="left"> | |
| maven -Dmaven.test.skip=true</div> | |
| </td> | |
| <td> | |
| <div align="left"> | |
| </div> | |
| Builds Axis2 and skips all the tests.</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| <br> | |
| <h2 align="left">Maven FAQ</h2> | |
| <p><i>1. I have problems with Maven 1.1</i></p> | |
| <p style="text-indent: 10pt">It seems that Maven 1.1 doesn't come bundled | |
| with the required itest plug-in and artifact plug-in. Run the following to | |
| get it updated.<br> | |
| </p> | |
| <ol> | |
| <li>maven plugin:download -DgroupId=maven-itest-plugin | |
| -DartifactId=maven-itest-plugin -Dversion=1.0 | |
| -Dmaven.repo.remote=http://www.openejb.org/maven,http://www.ibiblio.org/maven</li> | |
| <li>maven plugin:Download -DgroupId=maven | |
| -DartifactId=maven-artifact-plugin -Dversion=1.6</li> | |
| </ol> | |
| <p align="left"> </p> | |
| <p align="left"> </p> | |
| </body> | |
| </html> |