ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

maven安装

2020-10-24 08:00:34  阅读:18  来源: 互联网

标签:spring commons springframework maven version org 安装


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

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

2.配置本地仓库路径

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

line:46

E:\MavenRepository

line:160

alimaven aliyun maven http://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-8 1.8 1.8 4.0.2.RELEASE 3.2.6 1.7.7 1.2.17 junit junit 3.8.1 test javax javaee-api 7.0 junit junit 4.11 test org.springframework spring-core ${spring.version} org.springframework spring-web ${spring.version} org.springframework spring-oxm ${spring.version} org.springframework spring-tx ${spring.version} org.springframework spring-jdbc ${spring.version} org.springframework spring-webmvc ${spring.version} org.springframework spring-aop ${spring.version} org.springframework spring-context-support ${spring.version} org.springframework spring-test ${spring.version} org.mybatis mybatis ${mybatis.version} org.mybatis mybatis-spring 1.2.2 mysql mysql-connector-java 5.1.30 commons-dbcp commons-dbcp 1.2.2 jstl jstl 1.2 log4j log4j ${log4j.version} com.alibaba fastjson 1.1.41 org.slf4j slf4j-api ${slf4j.version} org.slf4j slf4j-log4j12 ${slf4j.version} org.codehaus.jackson jackson-mapper-asl 1.9.13 commons-fileupload commons-fileupload 1.3.1 commons-io commons-io 2.4 commons-codec commons-codec 1.9 com.alibaba druid 1.0.9 neusoft src/main/java **/*.xml src/main/resources maven-clean-plugin 3.0.0 maven-resources-plugin 3.0.2 maven-compiler-plugin 3.7.0 maven-surefire-plugin 2.20.1 maven-war-plugin 3.2.0 maven-install-plugin 2.5.2 maven-deploy-plugin 2.8.2

标签:spring,commons,springframework,maven,version,org,安装
来源: https://www.cnblogs.com/jiang2/p/13867143.html

专注分享技术,共同学习,共同进步。侵权联系[admin#icode9.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有