maven安装

  1. 下载Maven
    官方地址:http://maven.apache.org/download.cgi

解压并新建一个本地仓库文件夹

2.配置本地仓库路径

C:\apache-maven-3.5.2\conf\settings.xml

line:46

E:\MavenRepository

line:160

alimavenaliyun mavenhttp://maven.aliyun.com/nexus/content/groups/public/central

新建本地仓库目录E:\MavenRepository
3.配置maven环境变量

4.在IntelliJ IDEA中配置maven
打开-File-Settings

5.新建maven WEB项目
打开-File-New-Project
点击NEXT

点击NEXT

添加的配置为 archetypeCatalog=internal

点击NEXT

点击NEXT

点击Finish后项目开始创建
点击右下角查看进去

6.maven web模板项目结构

7.配置依赖jar包

jar包配置搜索
官方地址:http://mvnrepository.com/

SSM pom文件配置


4.0.0

neusoft
neusoft
1.0-SNAPSHOT
war

neusoft Maven Webapp

http://www.example.com

UTF-81.81.84.0.2.RELEASE3.2.61.7.71.2.17junitjunit3.8.1testjavaxjavaee-api7.0junitjunit4.11testorg.springframeworkspring-core${spring.version}org.springframeworkspring-web${spring.version}org.springframeworkspring-oxm${spring.version}org.springframeworkspring-tx${spring.version}org.springframeworkspring-jdbc${spring.version}org.springframeworkspring-webmvc${spring.version}org.springframeworkspring-aop${spring.version}org.springframeworkspring-context-support${spring.version}org.springframeworkspring-test${spring.version}org.mybatismybatis${mybatis.version}org.mybatismybatis-spring1.2.2mysqlmysql-connector-java5.1.30commons-dbcpcommons-dbcp1.2.2jstljstl1.2log4jlog4j${log4j.version}com.alibabafastjson1.1.41org.slf4jslf4j-api${slf4j.version}org.slf4jslf4j-log4j12${slf4j.version}org.codehaus.jacksonjackson-mapper-asl1.9.13commons-fileuploadcommons-fileupload1.3.1commons-iocommons-io2.4commons-codeccommons-codec1.9com.alibabadruid1.0.9neusoftsrc/main/java**/*.xmlsrc/main/resourcesmaven-clean-plugin3.0.0maven-resources-plugin3.0.2maven-compiler-plugin3.7.0maven-surefire-plugin2.20.1maven-war-plugin3.2.0maven-install-plugin2.5.2maven-deploy-plugin2.8.2
上一篇:The (Tuna) Tragedy of the Commons


下一篇:Commons-dbutils组件应用