创建Maven的Web项目:mvn archetype:generate -DgroupId=packageName -DartifactId=webappName -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeGroupId=org.apache.maven.archetypes -DinteractiveMode=false
创建Maven的普通java项目:mvn archetype:generate -DgroupId=packageName -DartifactId=projectName -DinteractiveMode=false
mvn eclipse:eclipse

mvn eclipse:clean
mvn eclipse:m2eclipse

 

--src
   -----main
      ----------java
      ----------resources
  -----test
     ---------java
     ---------resources

--target

--pom.xml

 

src/main/java application library sources - java源代码文件
src/main/resources application library resources - 资源库,会自动复制到classes文件夹下
src/main/filters resources filter files - 资源过滤文件
src/main/assembly assembly descriptor - 组件的描述配置,如何打包
src/main/config configuration files - 配置文件
src/main/webapp web application sources - web应用的目录,WEB-INF,js,css等
src/main/bin 脚本库
src/test/java 单元测试java源代码文件
src/test/resources 测试需要的资源库
src/test/filters 测试资源过滤库
src/site 一些文档
target/ 存放项目构建后的文件和目录,jar包,war包,编译的class文件等;Maven构建时生成的
pom.xml 工程描述文件
LICENSE.txt license
README.txt read me

相关文章:

  • 2021-08-28
  • 2021-04-06
  • 2021-08-01
  • 2022-01-09
  • 2021-07-02
  • 2021-06-19
  • 2022-12-23
猜你喜欢
  • 2021-05-09
  • 2021-07-28
  • 2022-01-02
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案