摘要: Maven 安装 JAR 包的命令是:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->mvninstall:install-file-Dfile=jar包的位置-DgroupId=上面的groupId-DartifactId=上面的artifactId-Dversion=上面的version-Dpackaging=jar 阅读全文
posted @ 2013-01-14 13:12 Java_user 阅读(90) 评论(0) 推荐(0)
摘要: maven 仓库地址:共有的仓库http://repo1.maven.org/maven2/http://repository.jboss.com/maven2/http://repository.sonatype.org/content/groups/public/http://mirrors.ibiblio.org/pub/mirrors/maven2/org/acegisecurity/私有的仓库http://repository.codehaus.org/http://snapshots.repository.codehaus.org/http://people.apache.org/ 阅读全文
posted @ 2013-01-14 13:08 Java_user 阅读(110) 评论(0) 推荐(0)
摘要: 公司需要设置代理才能上网,而运行Maven时需要下载依赖的库。原来Maven也像IE一样,可以设置代理的。步骤如下:编辑~/.m2/setting.xml文件。如果该目录下没有该文件,复制$M2_HOME/conf/setting.xml。找到<proxies>节点。去掉相应的注释,设置代理信息。<proxy><id>optional</id><active>true</active><protocol>http</protocol><username>proxyuser</use 阅读全文
posted @ 2013-01-10 15:19 Java_user 阅读(192) 评论(0) 推荐(0)