Fight With Me!!!

导航

随笔分类 -  Maven

上一页 1 2

-Dmaven.multiModuleProjectDirectory system propery is not set.
摘要:eclipse中使用maven插件的时候,运行run as maven build的时候报错-Dmaven.multiModuleProjectDirectory system propery is not set.Check $M2_HOME environment variable and mv... 阅读全文

posted @ 2015-06-25 16:01 nickTimer

maven打包
摘要:直接右击项目,Run as -> Maven install 阅读全文

posted @ 2015-06-24 12:38 nickTimer

java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
摘要:如果你是maven项目,tomcat在发布项目的时候没有同时发布maven依赖所添加的jar包,你需要设置一下eclipse:项目 —> 属性 -> Deployment Assembly -> Add -> Java Build Path Entries -> 选择Maven Dependenci... 阅读全文

posted @ 2015-02-10 16:23 nickTimer

Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4
摘要:Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from http://uk.maven.org/maven2 was cached in the local repository, reso... 阅读全文

posted @ 2015-02-02 11:16 nickTimer

改成maven工程
摘要:configure->converttoMavenProject 阅读全文

posted @ 2015-01-19 21:44 nickTimer

maven的pom报plugins缺失的解决方法
摘要:maven的pom报plugins却是的解决方法.引用Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from http://repo1.maven.org/maven2 was cached ... 阅读全文

posted @ 2015-01-19 17:52 nickTimer

Maven学习 (一) 搭建Maven环境
摘要:有两种方式可以配置maven的环境配置,本人推荐使用第二种,即使用本地的maven安装文件,个人感觉这样可以方便管理下载jar包的存放位置,错误信息的输出等,可以在dos窗口中可以清晰看到,虽然比较麻烦,每次都要敲dos命令,但可以写批处理文件来解决.方式一:不使用本地的maven安装文件环境配置(... 阅读全文

posted @ 2015-01-13 00:01 nickTimer

maven基础知识
摘要:简单点来说,repository就是个仓库。maven里有两种仓库,本地仓库和远程仓库。远程仓库相当于公共的仓库,大家都能看到。本地仓库是 你本地的一个山寨版,只有你看的到,主要起缓存作用。当你向仓库请求插件或依赖的时候,会先检查本地仓库里是否有。如果有则直接返回,否则会向远程仓库请 求,并做缓存。... 阅读全文

posted @ 2015-01-12 23:59 nickTimer

Maven镜像配置
摘要:参考:许晓斌的《Maven实战》镜像是为了提供更快的服务如图:X就认为是Y的一个镜像。编辑settings.xml配置中央仓库镜像:[html] view plaincopyprint?...maven.net.cnoneofthecentralmirrorsinchinahttp://maven.... 阅读全文

posted @ 2015-01-12 23:34 nickTimer

更改Eclipse里的Classpath Variables M2_REPO
摘要:M2_REPO这个classpath variable 是不能改变的。为什么 Eclipse 里的 Classpath Variables M2_REPO 无法修改(non modifiable),并且指向 User Home 里的一个位置,如下图:最后在下图里找到答案:原来 Eclipse 里的 ... 阅读全文

posted @ 2015-01-12 23:09 nickTimer

运行Maven是报错:No goals have been specified for this build
摘要:pom.xml文件标签后面加上compile即可 compile 阅读全文

posted @ 2015-01-12 22:56 nickTimer

上一页 1 2