`
丁树同
  • 浏览: 9148 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

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

  

   
 

 

 

  • 大小: 2.7 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics