Maven之应用

来源:互联网 发布:程序员soho 编辑:程序博客网 时间:2024/05/22 18:23


Maven 异常记录

Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from http://repo1.maven.org/maven2was cached in the local repository, 
 resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact 
 org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from/to central (http://repo1.maven.org/maven2): null to http://repo1.maven.org/maven2/org/
 apache/maven/plugins/maven-resources-plugin/2.4.3/maven-resources-plugin-2.4.3.pom

 

解决方法:
在Maven的本地仓库的目录下删除 .lastUpdated结尾的文件,然后clean就可以了


Maven安装oracle jdbc驱动

mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.1.0 -Dpackaging=jar -Dfile=...../ojdbc14.jar

mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar -Dfile=....../ojdbc6.jar    

0 0
原创粉丝点击