2)Maven命令

1)创建maven项目

   在命令行中,进入到项目所在的路径,比如:D:\MyProjects 运行如下命令:

mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

 

   groupId为包名,artifactId为项目名。

   命令运行成功后会在当前目录下建立你的maven项目。

   目录结构如下所示:
     

   The src/main/java directory contains the project source code, the src/test/java directory contains the test source, and the pom.xml file is the project's Project Object Model, or POM.maybe /src/main/resources contains the project config files.

2)将maven项目转换为eclipse项目

mvn eclipse:eclipse

  

   
 

猜你喜欢

转载自dingdong-uu-163-com.iteye.com/blog/2009343
今日推荐