(In case download file is tar ball)
$ tar xzvf <download file>
Item | Description | Example |
MAVEN_HOME | Maven Home path | "C:\apache-maven-3.2.2" |
Path | Maven executable path | "%MAVEN_HOME%\bin" |
$ mvn --version
(If you installed Eclipse for Java EE, Maven plugin, m2e is installed by default. Here, I use Eclipse 4.3 (Kepler) for explanation.)
Parameter | Value | Example |
Name | Name for plugin | "m2e" |
Location | The location of plugin | "http://download.eclipse.org/technology/m2e/releases " |
$ mvn archetype:create \ -DgroupId=<Group ID> \ -DartifactId=<Artifact ID>
Argument | Description | Example |
archetype | ArcheType | "create" |
group ID | Java Package name | "org.apache" |
artifact ID | Project name for Maven | "project1" |
(Example: Selenium plugin)
<dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>LATEST</version> </dependency>
$ mvn compile
$ mvn test
(Eclipse) Choose "Run" -> "Run As" -> "maven test"
$ mvn archetype:create \ -DgroupId=<Group ID> \ -DartifactId=<Artifact ID>
Argument | Description | Example |
archetype | ArcheType | "create" |
group ID | Java Package name | "org.apache" |
artifact ID | Project name for Maven | "project1" |
#ref(): File not found: "JavaEE_fig1.png" at page "HowToUse/Maven/3.2"
$ mvn compile
$ mvn test
(Launch Tomcat7)
$ mvn run:tomcat7
S.Yatsuzuka
If you have questions or comments, please share them below. We will improve the above information referring to your posting.