摘要: 若要使用org.restlet包,则需在maven 的配置文件pom.xml中,单独配置获取仓库: <repositories> <repository> <id>maven-restlet</id> <name>Public online Restlet repository</name> <ur 阅读全文
posted @ 2016-08-31 15:39 hongweigg 阅读(35) 评论(0) 推荐(0)
摘要: 问题 在使用maven进行一个工程的编译,已加入junit包的依赖,编译的时候却总是报“junit.framework不存在”错误。 pom.xml中junit包加入如下: <dependency> <groupId>junit</groupId> <artifactId>junit</artifa 阅读全文
posted @ 2016-08-31 14:27 hongweigg 阅读(47) 评论(0) 推荐(0)
摘要: 问题 maven在处理带BOM文件头(UTF-8格式标记)时会报错,错误消息为:非法字符: \65279。 解决 使用UltraEdit等工具另存为“不带BOM”的UTF-8格式。 参考 关于javac编译时出现“非法字符:\65279”的解决方法 在Eclipse里 点击工程右键 Export - 阅读全文
posted @ 2016-08-31 12:00 hongweigg 阅读(22) 评论(0) 推荐(0)