您的位置:首页 > 编程语言 > Java开发

Start Maven by Using intellij idea

2013-09-12 14:07 435 查看
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  intellij idea maven jdk