| <!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 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"> | |
| download relevant jars, if not available and compile and run tests of | |
| the system.</div> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td>maven clean</td> | |
| <td>Clean all the stuff build so far, that are 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"> | |
| run only the tests. Will do automatic compilation of 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"> | |
| Clean up and run all off line and on line 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 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"> | |
| List down all the commands available with maven</div> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| <div align="left"> | |
| maven multiproject</div> | |
| </td> | |
| <td> | |
| <div align="left"> | |
| generate this site</div> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| <div align="left"> | |
| maven idea:multiproject</div> | |
| </td> | |
| <td> | |
| <div align="left"> | |
| generate 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>It seems that maven 1.1 doesn't come bundled with the required itest | |
| plugin and artifact plugin. Run followings to get it updated<br> | |
| 1. 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 | |
| <br> | |
| 2. maven plugin:Download -DgroupId=maven -DartifactId=maven-artifact-plugin | |
| -Dversion=1.6</p> | |
| <p align="left"> </p> | |
| <p align="left"> </p> | |
| </body> | |
| </html> |