Acknowledgement URL: http://www.cnblogs.com/dongyangbolg/p/3455422.html
Http://www.cnblogs.com/ysq0908/p/4737977.html
------------------------------------------------------------------
First, the problem description
Maven failed to download "Oracle14-10.2.0.1.0.jar", "Aspectjweaver-1.8.0.jar", "Com.springsource.net.sf.cglib-2.2.0.jar".
Second, solve the download "Oracle14-10.2.0.1.0.jar"
Because Oracle drivers require official authorization, the MAVEN official library does not have an Oracle JDBC driver package and cannot be downloaded directly from the pop.xml file configuration. You can resolve this issue by installing the driver package to the local MAVEN library. The specific steps are:
1. Go to http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html to download the Oraclejar package you need.
2. Create a new Oracle folder on the C drive and place the downloaded Oracle14.jar in the Oracle folder.
3. Run in cmd:
MVN Install:install-file-dgroupid=oracle.jdbc.driver-dartifactid=ojdbc14-dversion=10.2.0.1.0-dpackaging=jar- Dfile=c:/oracle/ojdbc14.jar
4. Add the following code to the Pom.xml:
<Dependency> <groupId>Oracle.jdbc.driver</groupId> <Artifactid>Ojdbc14</Artifactid> <version>10.2.0.1.0</version> </Dependency>
Download "Aspectjweaver-1.8.0.jar"
Solution Ibid. Download the address of this package: http://maven.outofmemory.cn/org.aspectj/aspectjweaver/1.8.0/
Download "Com.springsource.net.sf.cglib-2.2.0.jar"
This jar was not found in the MAVEN default official library (HTTP://REPO.MAVEN.APACHE.ORG/MAVEN2), but in http://repository.sonatype.org/content/groups/ Public/This jar is in this library, so add this library to eclipse, as follows:
<repositories> <Repository> <ID>Sonatype</ID> <name>Sonatype Repository</name> <URL>http://repository.sonatype.org/content/groups/public/</URL> <Layout>Default</Layout> <releases> <enabled>True</enabled> </releases> <Snapshots> <enabled>False</enabled> </Snapshots> </Repository> </repositories>
This way, MAVEN does not find the jar from the default repository and downloads it from the URL above.
PostScript: Resolve maven download failure can be resolved from two aspects, one is to download the jar locally, and then run the "mvn install" This command to install the jar to the local library, and the second is to set up an alternate remote repository in eclipse to download.
Resolve maven cannot download "Oracle, Aspectjweaver, Com.springsource.net.sf.cglib" jar