
- 本 质
- 项目对象模型
- 定 义
- 项目构建管理
- 分 类
- java
- 中文名
- 麦文
- 外文名
- Maven
-
使用IntelliJ IDEA 配置Maven(入门)
2016-05-20 13:56:271. 下载Maven 官方地址:http://maven.apache.org/download.cgi解压并新建一个本地仓库文件夹 2.配置本地仓库路径 3.配置maven环境变量 4.在IntelliJ IDEA中配置maven 打开-File-Settings 5.新建...1. 下载Maven
官方地址:http://maven.apache.org/download.cgi解压并新建一个本地仓库文件夹
2.配置本地仓库路径
3.配置maven环境变量
4.在IntelliJ IDEA中配置maven
打开-File-Settings5.新建maven WEB项目
打开-File-New-Project
点击NEXT
点击NEXT
添加的配置为 archetypeCatalog=internal
点击NEXT
点击NEXT
点击Finish后项目开始创建
点击右下角查看进去6.maven web模板项目结构
同样在main下新建test测试文件夹,再在此文件夹下新建java测试源码文件夹和resource测试资源文件夹
也可以右键项目-选择Open Module Settings打开项目配置页面更改7.配置依赖jar包
jar包配置搜索
官方地址:http://mvnrepository.com/其它推荐
Vue表单设计器 -
Maven的安装与配置
2019-09-04 19:48:17Maven超详细的安装与配置步骤一、安装本地Maven
tips: 官网为外网,下载速度较慢,这里提供3.6.3版本的三方链接下载Maven下载
-
无视下载速度以及需要其他版本的伙伴点此进入Maven官网下载
-
选择左侧Download
-
点击箭头所指的链接进行下载
-
下载完成后,选择一个路径进行解压
-
然后配置path环境变量,如图
- 系统变量:MAVEN_HOME = F:\dev\apache-maven-3.6.1
- 系统变量:path = %MAVEN_HOME%\bin
MAVEN_HOME:
path:
- 然后win+R 运行cmd 输入 mvn -version,如图所示则配置成功
二、配置settings文件
-
在F:\dev\apache-maven-3.6.1\conf下可以找到settings文件,打开(嫌麻烦的直接看最后一步)
-
找到第52行,这里是maven默认的仓库
-
我们复制第53行
<localRepository>/path/to/local/repo</localRepository>
将它拿到注释外并将中间的内容改成你需要的路径,如图
<localRepository>F:/repository</localRepository>
这里的路径随便设置,注意这里是正斜杠
- 因为国外的服务器下载jar包很慢所以我们改为阿里云服务器(大约在150行左右),这两个仓库只用选一个(根据大家反馈建议使用第一个,第二个在有的版本可能会出现warning)
<!-- 阿里云仓库 --> <mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/repositories/central/</url> </mirror> 或者 <mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>
-
如图,要夹在两个mirrors标签之间
-
在最后配置jdk,也要夹在两个profiles标签之间(我这里使用的为jdk8)
<!-- java版本 --> <profile> <id>jdk-1.8</id> <activation> <activeByDefault>true</activeByDefault> <jdk>1.8</jdk> </activation> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion> </properties> </profile>
-
配置完成,在命令行输入mvn help:system测试,看到下载链接里面是ailiyun的链接表示配置成功
-
嫌麻烦的直接复制配置文件的内容即可,不过路径还是要改(参考第3步)
<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!-- | This is the configuration file for Maven. It can be specified at two levels: | | 1. User Level. This settings.xml file provides configuration for a single user, | and is normally provided in ${user.home}/.m2/settings.xml. | | NOTE: This location can be overridden with the CLI option: | | -s /path/to/user/settings.xml | | 2. Global Level. This settings.xml file provides configuration for all Maven | users on a machine (assuming they're all using the same Maven | installation). It's normally provided in | ${maven.conf}/settings.xml. | | NOTE: This location can be overridden with the CLI option: | | -gs /path/to/global/settings.xml | | The sections in this sample file are intended to give you a running start at | getting the most out of your Maven installation. Where appropriate, the default | values (values used when the setting is not specified) are provided. | |--> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <!-- localRepository | The path to the local repository maven will use to store artifacts. | | Default: ${user.home}/.m2/repository <localRepository>/path/to/local/repo</localRepository> --> <localRepository>F:/repository</localRepository> <!-- interactiveMode | This will determine whether maven prompts you when it needs input. If set to false, | maven will use a sensible default value, perhaps based on some other setting, for | the parameter in question. | | Default: true <interactiveMode>true</interactiveMode> --> <!-- offline | Determines whether maven should attempt to connect to the network when executing a build. | This will have an effect on artifact downloads, artifact deployment, and others. | | Default: false <offline>false</offline> --> <!-- pluginGroups | This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e. | when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers | "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list. |--> <pluginGroups> <!-- pluginGroup | Specifies a further group identifier to use for plugin lookup. <pluginGroup>com.your.plugins</pluginGroup> --> </pluginGroups> <!-- proxies | This is a list of proxies which can be used on this machine to connect to the network. | Unless otherwise specified (by system property or command-line switch), the first proxy | specification in this list marked as active will be used. |--> <proxies> <!-- proxy | Specification for one proxy, to be used in connecting to the network. | <proxy> <id>optional</id> <active>true</active> <protocol>http</protocol> <username>proxyuser</username> <password>proxypass</password> <host>proxy.host.net</host> <port>80</port> <nonProxyHosts>local.net|some.host.com</nonProxyHosts> </proxy> --> </proxies> <!-- servers | This is a list of authentication profiles, keyed by the server-id used within the system. | Authentication profiles can be used whenever maven must make a connection to a remote server. |--> <servers> <!-- server | Specifies the authentication information to use when connecting to a particular server, identified by | a unique name within the system (referred to by the 'id' attribute below). | | NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are | used together. | <server> <id>deploymentRepo</id> <username>repouser</username> <password>repopwd</password> </server> --> <!-- Another sample, using keys to authenticate. <server> <id>siteServer</id> <privateKey>/path/to/private/key</privateKey> <passphrase>optional; leave empty if not used.</passphrase> </server> --> </servers> <!-- mirrors | This is a list of mirrors to be used in downloading artifacts from remote repositories. | | It works like this: a POM may declare a repository to use in resolving certain artifacts. | However, this repository may have problems with heavy traffic at times, so people have mirrored | it to several places. | | That repository definition will have a unique id, so we can create a mirror reference for that | repository, to be used as an alternate download site. The mirror site will be the preferred | server for that repository. |--> <!-- mirror <mirrors> | Specifies a repository mirror site to use instead of a given repository. The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used | for inheritance and direct lookup purposes, and must be unique across the set of mirrors. | <mirror> <id>mirrorId</id> <mirrorOf>repositoryId</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://my.repository.com/repo/path</url> </mirror> </mirrors> --> <!-- 阿里云仓库 --> <mirrors> <mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror> </mirrors> <!-- profiles | This is a list of profiles which can be activated in a variety of ways, and which can modify | the build process. Profiles provided in the settings.xml are intended to provide local machine- | specific paths and repository locations which allow the build to work in the local environment. | | For example, if you have an integration testing plugin - like cactus - that needs to know where | your Tomcat instance is installed, you can provide a variable here such that the variable is | dereferenced during the build process to configure the cactus plugin. | | As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles | section of this document (settings.xml) - will be discussed later. Another way essentially | relies on the detection of a system property, either matching a particular value for the property, | or merely testing its existence. Profiles can also be activated by JDK version prefix, where a | value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'. | Finally, the list of active profiles can be specified directly from the command line. | | NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact | repositories, plugin repositories, and free-form properties to be used as configuration | variables for plugins in the POM. | |--> <!-- profile <profiles> | Specifies a set of introductions to the build process, to be activated using one or more of the | mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/> | or the command line, profiles have to have an ID that is unique. | | An encouraged best practice for profile identification is to use a consistent naming convention | for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc. | This will make it more intuitive to understand what the set of introduced profiles is attempting | to accomplish, particularly when you only have a list of profile id's for debug. | | This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo. <profile> <id>jdk-1.4</id> <activation> <jdk>1.4</jdk> </activation> <repositories> <repository> <id>jdk14</id> <name>Repository for JDK 1.4 builds</name> <url>http://www.myhost.com/maven/jdk14</url> <layout>default</layout> <snapshotPolicy>always</snapshotPolicy> </repository> </repositories> </profile> --> <!-- | Here is another profile, activated by the system property 'target-env' with a value of 'dev', | which provides a specific path to the Tomcat instance. To use this, your plugin configuration | might hypothetically look like: | | ... | <plugin> | <groupId>org.myco.myplugins</groupId> | <artifactId>myplugin</artifactId> | | <configuration> | <tomcatLocation>${tomcatPath}</tomcatLocation> | </configuration> | </plugin> | ... | | NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to | anything, you could just leave off the <value/> inside the activation-property. | <profile> <id>env-dev</id> <activation> <property> <name>target-env</name> <value>dev</value> </property> </activation> <properties> <tomcatPath>/path/to/tomcat/instance</tomcatPath> </properties> </profile> --> <profiles> <profile> <id>jdk-1.8</id> <activation> <activeByDefault>true</activeByDefault> <jdk>1.8</jdk> </activation> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion> </properties> </profile> </profiles> <!-- activeProfiles | List of profiles that are active for all builds. | <activeProfiles> <activeProfile>alwaysActiveProfile</activeProfile> <activeProfile>anotherAlwaysActiveProfile</activeProfile> </activeProfiles> --> </settings>
-
-
Maven
2019-09-10 16:49:14文章目录Maven1.Maven简介2、下载安装Maven3、配置环境变量4、阿里云镜像5、本地仓库6、在IEDA中使用Maven7、创建一个普通的Maven项目8、pom文件9、Maven仓库的使用 Maven 1.Maven简介 Maven项目对象模型(POM),...文章目录
Maven
1.Maven简介
Maven项目对象模型(POM),可以通过一小段描述信息来管理项目的构建,报告和文档的项目管理工具软件。
Maven 除了以程序构建能力为特色之外,还提供高级项目管理工具。由于 Maven 的缺省构建规则有较高的可重用性,所以常常用两三行 Maven 构建脚本就可以构建简单的项目。由于 Maven 的面向项目的方法,许多 Apache Jakarta 项目发文时使用 Maven,而且公司项目采用 Maven 的比例在持续增长。
- 核心思想:约定大于配置
2、下载安装Maven
官网:https://maven.apache.org/
下载完成后,解压即可。3、配置环境变量
配置如下配置:
- M2_HOME maven目录下的bin目录
- MAVEN_HOME maven的目录
- 在系统的path中配置 %MAVEN_HOME%\bin
测试是否安装成功:
4、阿里云镜像
- 镜像:mirrors
- 作用:加速下载
- 国内建议使用阿里云的镜像
<mirror> <id>nexus-aliyun</id> <mirrorOf>*,!jeecg,!jeecg-snapshots</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>
5、本地仓库
建立一个本地仓库:localRepository
- 在maven目录下创建maven-repo文件夹
<localRepository>D:\Environment\apache-maven-3.6.2\maven-repo</localRepository>
6、在IEDA中使用Maven
1、创建一个MavenWeb项目
2、等待项目加载完成
3、IDEA中的Maven设置
4、在src/main下创建java和resources文件夹- 标记文件夹功能
或者:
7、创建一个普通的Maven项目
8、pom文件
pom.xml 是Maven的核心配置文件
maven由于他的约定大于配置,我们之后可能遇到我们写的配置文件,无法被导出或者生效的问题,解决方案:<!--在build中配置resources,来防止我们资源导出失败的问题--> <build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>true</filtering> </resource> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>true</filtering> </resource> </resources> </build>
9、Maven仓库的使用
地址:https://mvnrepository.com/
-
IDEA中Maven依赖下载失败解决方案
2019-09-24 21:05:20使用IDEA进行Maven项目开发时,时不时会遇到pom.xml报错的情况,其中很大概率是因为Maven依赖的jar包下载失败,找来找去也没有找到是什么问题,困扰了很多程序猿,这里给出IDEA中Maven依赖下载失败解决方案,给大家...使用IDEA进行Maven项目开发时,时不时会遇到pom.xml报错的情况,其中很大概率是因为Maven依赖的jar包下载失败,找来找去也没有找到是什么问题,困扰了很多程序猿,这里给出IDEA中Maven依赖下载失败解决方案,给大家参考,实测有用。
文章目录
首先检查网络有没有问题,确定网络没有问题,请看下一步
多次点击重新导入Maven依赖的按钮
重新导入Maven依赖有两种方式,如上图所示。如果多次点击重新导入依赖按钮依然报错,请看下一步设置自动导入Maven依赖
Settings -> Build,Execution,Deployment -> Build Tools -> Maven -> Importing,如下图
这样设置后,如果Maven仓库存在依赖的话,IDEA会自动导入到项目中,如果没有用,看下一步在IDEA中找到Maven的配置文件的地址,然后检查配置的远程仓库或者镜像有没有问题
如上图所示,我的配置在C:\develop\Maven\apache-maven-3.5.3\conf\settings.xml
我配置的是阿里云仓库,没有什么问题,如果配置的是Maven私服Nexus的话,需要检查配置的路径和私服网络有没有问题
<!-- 配置阿里云仓库 --> <mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>
如果上面几步都没有解决问题,可以使用以下脚本删除Mvaen中的lastUpdated文件
如果你的电脑是Windows系统,新建cleanLastUpdated.bat文件
注意:记得将脚本cleanLastUpdated.bat文件的仓库路径改为自己Maven仓库的路径
@echo off rem 这里写你的仓库路径 set REPOSITORY_PATH=C:\develop\Maven\apache-maven-3.5.3\respository rem 正在搜索... for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do ( del /s /q %%i ) rem 搜索完毕 pause
保存,然后双击执行脚本就可以删除lastUpdated文件,然后点击重新导入Maven依赖的按钮
Maven仓库依赖存在依旧报错
我的依赖问题到这一步才得到解决,好累,不过问题终于解决了!有两种解决方式:
-
把pom.xml中对应的依赖先删除,然后刷新右侧,之后再把依赖粘贴到pom.xml中,再次刷新右侧就好了
-
从本地仓库将对应的包删除掉,然后让maven重新下载
比如你要删除spring-boot-starter-web-2.1.8.RELEASE.jar,你要进入Maven仓库路径C:\develop\Maven\apache-maven-3.5.3\respository\org\springframework\boot\spring-boot-starter-web\2.1.8.RELEASE\spring-boot-starter-web-2.1.8.RELEASE.jar,然后进行删除
-
-
IntelliJ IDEA创建maven web项目(IDEA新手适用)
2018-05-14 11:21:48PS:从eclipse刚转到IDEA,对于这个陌生的工具我表示无言,但听说很好用,也就试试,结果我几乎花了一晚上的时间才搭起来maven web项目,觉得在此给各位一个搭建maven web项目的教程,指出我踩过的各种坑!... -
针对Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1的解决方案
2016-07-13 09:59:02背景:本项目使用JDK...Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1 pom中如下配置maven插件,配置中声明使用JDK1.8: org.apache.maven.plugins maven-compiler-plugin 3 -
解决Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
2018-06-30 14:22:42mvn clean package -Dmaven.test.skip=true 今天项目用maven命令...Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project springbootdemo: Fata... -
IDEA Unable to import maven project: See logs for details (maven的坑)
2019-06-03 00:13:12系统重装之后,Idea的配置是之前就认为没什么问题,就没去过多注意,但是后来发现建SpringBoot项目默认的版本太高,pom.xml每次都会报错,因为是maven本地库没有相应的包,我就手动设置一下版本,混过过去就算了,没... -
十分钟快速Maven下载和安装说明
2018-01-25 10:58:23注意:安装Maven3之前需要安装jdk1.7以上版本,下面介绍的是最新版Maven官网下载并安装, 每个人使用的编辑器不同,在这里我就不介绍了,可以去网上查对应编辑器Maven配置方法。 第一步,Maven官网下载地址... -
理解maven命令package、install、deploy的联系与区别
2018-05-15 16:15:39我们在用maven构建java项目时,最常用的打包命令有mvn package、mvn install、deploy,这三个命令都可完成打jar包或war(当然也可以是其它形式的包)的功能,但这三个命令还是有区别的。下面通过分别执行这三个命令... -
maven编译 Process terminated【已解决】
2020-04-22 22:22:20maven项目编译报错如下: 点击【项目名】提示 点击蓝色报错的链接,在idea中打开了settings文件,找到提示的报错位置 最后发现是缩进或者空格不对导致该问题,建议在notepa++中复制粘贴过来就好了 ... -
idea创建第一个maven项目报错:Cannot resolve plugin org.apache.maven.plugins:maven-clean-plugin:2.5
2019-07-30 15:44:38主要原因是本地maven的配置文件和仓库地址不一致。 参考该博文来配置:https://www.cnblogs.com/phpdragon/p/7216626.html -
eclipse使用maven教程
2017-12-27 20:41:36eclipse使用maven教程eclipse使用maven教程 什么是maven maven下载与安装与配置 1下载 2安装 3配置环境变量 在eclipse中配置 1 m2eclipse安装 2配置eclipse 3创建一个maven项目 1项目的结构 2Eclipse中maven常用的命... -
idea创建Maven工程后提示Maven projects need to be imported
2020-05-05 18:40:32学习时,使用IDEA创建maven工程完成后,出现 Maven projects need to be imported 提示,下面说说如何选择。 IDEA提示 Maven工程创建完成后,在idea窗口下方出现提示 Maven projects need to be imported 提示意思... -
Maven下载及安装
2019-09-16 12:54:56第一步,官网下载地址 ...1.创建MAVEN_HOME环境变量,指向maven的安装目录。 2.并将%MAVEN_HOME%\bin追加到PATH路径中。 3.调试是否安装成功,在cmd中输入 mvn -version *第四步,将本地仓库配置到指定路径(可... -
Maven入门指南 :Maven 快速入门及简单使用
2016-05-01 09:45:23Maven入门指南 :Maven 快速入门及简单使用前言 Maven是一个Java语言编写的开源项目管理工具,是Apache软件基金会的顶级项目。主要用于项目构建,依赖管理,项目信息管理。 maven项目在编译、测试、打包里,会需要从... -
超级详细的Maven使用教程
2018-08-13 13:05:40什么是Maven? 如今我们构建一个项目需要用到很多第三方的类库,如写一个使用Spring的Web项目就需要引入大量的jar包。一个项目Jar包的数量之多往往让我们瞠目结舌,并且Jar包之间的关系错综复杂,一个Jar包往往又会... -
IDEA+Maven 打jar包
2018-04-13 10:08:28IDEA+Maven 打jar包 (包涵依赖jar) 写在前面: 这两天一直在整(gu)理(dao)IDEA 用Maven打jar包,网上的教程是各式各样,但是都不能满足我的需求(或者 还没有找个正确的),因此 综合网上的内容 自己整理... -
Maven安装与配置
2019-06-03 10:47:20一、需要准备的东西 JDK ...Maven程序包 ...前往https://maven.apache.org/download.cgi下载最新版的Maven程序: ...将文件解压到D:\Program Files\...新建环境变量MAVEN_HOME,赋值D:\Program Files\Apache\mave... -
Maven 仓库国内镜像源收藏
2020-09-19 18:59:15今天写项目的时候需要导入Swagger3,从Maven官网上找的依赖如下,复制到 pom.xml 文件夹下后Maven一直无法下载对应的依赖包,思考了一会,发现是 本地Maven的 settings.xml 配置文件的镜像源只配了一个阿里源的public... -
Maven安装配置操作方法
2020-04-29 18:13:21Maven教程目录一、 Maven的安装下载1.1 安装Maven1.2 选择安装路径二、 Maven环境变量的配置2.1 配置环境变量2.2 测试环境变量是否配置成功三、 配置settings.xml四、 配置IDEA中Maven的相关参数 一、 Maven的安装... -
常用Maven库,镜像库及maven/gradle配置
2020-04-14 15:13:44平时用到的库 仓库名 地址 备注 mavenCentral ...全区最大的maven库,第二个为apache的镜像库, gradle默认地址 jcenter https://jcenter.bintray.com/anverus/tools/ b... -
成功解决maven打war包报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:...
2018-02-05 11:51:18今天使用eclipse通过maven install打war包的时候,出现了下图所示的错误 二、问题分析: 不能执行依赖包maven-compiler-plugin:2.3.2,判断原因是缺少这个jar包 三、问题解决: 打开pom.xml文件,在适当位置... -
使用maven创建web项目
2014-07-18 09:36:08目前做的项目使用的是MAVEN来管理jar包,这也是我第一次接触maven,感觉非常好,再也不用一个一个去添加和下载jar包了,直接在maven配置文件中配置就可以了,maven可以帮助我们自动下载。非常方便。之前比较忙没时间... -
配置创建Maven工程的默认JDK版本
2020-04-25 17:08:47配置Maven创建工程的默认JDK版本 在eclipse中创建maven项目时,默认的JDK运行版本是jdk1.5,可以通过右键项目 -> Build Path -> Configure Build Path,Remove掉旧版本jdk,然后Add Library -> 在JRE ... -
Eclipse使用Maven创建Web时错误:Could not resolve archetype org.apache.maven.archetypes:maven-...
2013-10-15 22:22:16问题描述: 使用Eclipse自带的Maven插件创建Web...Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:RELEASE from any of the configured repositories. Could not resolve artifa -
maven配置多仓库镜像
2017-06-02 11:12:581、国内访问maven默认远程中央镜像特别慢 2、用阿里的镜像替代远程中央镜像 3、大部分jar包都可以在阿里镜像中找到,部分jar包在阿里镜像中没有,需要单独配置镜像 我想达到的目标: 在maven中配置一主一副两个... -
maven配置报错以及The JAVA_HOME environment variable is not defined correctly的解决方法
2018-10-20 15:23:35maven配置报错以及The JAVA_HOME environment variable is not defined correctly的解决方法 1、什么是Maven Maven是一个项目管理和整合的工具。Maven为开发者提供了一套完整的构建生命周期框... -
idea创建maven项目
2019-01-05 16:20:341.修改maven主题:file-->settings-->appearance-->theme 2.首先打开IDEA后点击settings ,然后在VM Options内添加-DarchetypeCatalog=internal 运行参数 (不做上面操作的话会... -
IntelliJ IDEA 构建maven多模块工程项目(详细多图)
2018-01-17 01:15:31先简单讲一下maven的一些特点 继承 这个可以理解为java中的继承类似,父类定义的东西,子类如果你想用就拿过来用就可以; 依赖 依赖就相当于我们java中的导包,二者有着异曲同工之妙; 你想用的东西只需要告诉maven...
-
【数据分析-随到随学】数据分析基础及方法论
-
pytorch进阶
-
Unity游戏开发之数字华容道
-
2021-01-21
-
Camera Shading介绍
-
Word‘由于宏安全设置 无法找到宏’问题解决
-
poi导入excel中的数据格式(日期类型)
-
【2021】UI自动化测试Selenium3
-
内网穿透工具
-
【数据分析-随到随学】Python语法强化与数据处理
-
云计算基础-Linux系统管理员
-
2021-01-21
-
转行做IT-第1章 计算机基础
-
P45-前端基础CSS-Position绝对定位介绍
-
简单实现SQLServer转MYSQL的方法
-
认识数据结构与算法
-
隐藏状态栏小技巧
-
网页综合系统模板(Servlet、JSP)
-
PHP支付宝微信支付配置教程
-
mysql数据库优化必会的几个参数中文解释