摘要: 如果你的项目中使用Maven Integration for Eclipse插件当你更改了.m2/settings.xml文件中的<localRepository>E:\MavenRepository\.m2\repository</localRepository>可能会造成以下问题:02/01/09 21:51:11 CET: Unsupported existing index local; The existing index has no NexusIndexer descriptor解决办法:找到你的工程目录,例如workspace\.metadata/.pl 阅读全文
posted @ 2011-08-03 11:33 大陶陶 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 从eclipse中增加了maven2的插件之后,maven默认的本地库的路径是${user}/.m2/repository/下,一般windows用户的操作系统都安装在C盘,所以这个目录 下的jar包比较危险。我尝试从myeclipse->preferences->java->build path->classpath variables中查找M2_REPO这个变量,发现其路径指向的是“C:/Documents and Settings/lvxda/.m2/repository/”,我想修改其路径为:d:/m2/repository,可是这个变量的编辑按钮是灰色的,不可 阅读全文
posted @ 2011-08-03 11:33 大陶陶 阅读(3616) 评论(0) 推荐(0) 编辑
摘要: importjava.util.Scanner;publicclassnew_io{publicstaticvoidmain(String[]args){System.out.println("请输入:");Scanneraaa=newScanner(System.in);//1Scannerbbb=newScanner(System.in);//2System.out.printf("bbb="+"%s",bbb.next());//3System.out.printf("aaa="+"%s" 阅读全文
posted @ 2011-08-03 10:14 大陶陶 阅读(207) 评论(0) 推荐(0) 编辑
摘要: M2_REPO是一个用来定义 maven 2仓库在硬盘中的存储位置,windows默认是C:\Users\机器名\.m2\repository.按道理安装了m2eclipse插件就会在eclipse有了相应的设置。如果没有安装m2eclipse插件,eclipse打开maven工程,可能就会报Unbound classpath variable: 'M2_REPO/**/***/***.jar'错误,这个时候就需要手动设置M2_REPO。设置方式:Eclipse->Windows->Preferences->java->Build Path->Cl 阅读全文
posted @ 2011-08-03 09:15 大陶陶 阅读(1912) 评论(0) 推荐(0) 编辑