Resolve maven cannot download "Oracle, Aspectjweaver, Com.springsource.net.sf.cglib" jar

Source: Internet
Author: User
Tags sonatype

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.