Start Maven by Using intellij idea

来源:互联网 发布:扫描需要什么软件 编辑:程序博客网 时间:2024/06/11 22:17

1. download "intellij idea", maven and JDK.

2. Before run the interllij idea, "export" the M2_HOME to indicat the installed maven path and JAVA_HOME to specify the installed jdk path.

3. start the "interllij idea" by using "nohup ./bin/idea.sh &", close the termial now.

4. pom.xml

artifactId means the jar filename

groupID means the "package" name.

package org.apache.hadoop.examples;import java.io.IOException;import java.util.StringTokenizer;

5. Select the archetype: maven-archetype-quickstart not using default maven-archetype.


原创粉丝点击