问题: 最近在Eclipse里面装了maven之后,启动或者在运行项目时存在如下的警告: Eclipse is rinning in a JRE,but a JDK is require, Some Maven plugins may not work when importing projucts or updating source folders. 或者是: You need to run build with JDK or have tools.jar on the classpath.
当使用mvn package打包项目的时候,抛出下面这个错误: [ERROR] Unable to locate the Javac Compiler in: D:\jdk\..\lib\tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases you can change the loca
step1:默认会放在~/.m2/repository目录下 (“~”代表用户的目录,比如windows下一般都是C:\Documents and Settings\[你的用户名]\), step2:修改配置文件,位置为%MAVEN_HOME%/conf/setting.xml, <!-- localRepository | The path to the local repository maven will use to store artifacts. | | Default: