教程:http://www.cnblogs.com/dcba1112/archive/2011/05/01/2033788.html
pom.xml,配置文件 ,该文件内容如下:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.jianxi.tutorials</groupId> <!--项目的顶级包名-->
<artifactId>numopers</artifactId> <!--项目名称-->
<version>1.0</version> <!--项目的版本号-->
<packaging>jar</packaging> <!--项目的发布包类型-->
<name>numopers</name> <!--项目名称-->
<url>http://maven.apache.org</url> <!--项目主页-->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>