Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
gUYS ,
iam facing the issue with ojdbc dependency , how can i resolve this issue, iam sharing the build failure log and pom.xml , plz do thru t his and give me the solution, i need urgent.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building OnlineAppointmentSystem Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.oracle:ojdbc14:jar:10.2.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.093s
[INFO] Finished at: Tue Mar 26 15:53:01 IST 2013
[INFO] Final Memory: 9M/119M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project OnlineAppointmentSystem: Could not resolve dependencies for project OnlineAppointmentSystem:OnlineAppointmentSystem:war:0.0.1-SNAPSHOT: Failure to find com.oracle:ojdbc14:jar:10.2.0 in http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of org.springframework.maven.release has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

This is my Pom.XML, i already added oracle dependency
XML
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelversion>4.0.0</modelversion>
  <groupid>OnlineAppointmentSystem</groupid>
  <artifactid>OnlineAppointmentSystem</artifactid>
  <packaging>war</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <name>OnlineAppointmentSystem Maven Webapp</name>
  <url>http://maven.apache.org</url>
  
  <properties>
    <project.build.sourceencoding>UTF-8</project.build.sourceencoding>
    <spring.core.version>3.1.2.RELEASE</spring.core.version>
    <spring.data.jpa.version>1.1.0.RELEASE</spring.data.jpa.version>
    <hibernate.version>4.1.6.Final</hibernate.version>
    <c3p0.version>0.9.1.2</c3p0.version>
    <slf4j.version>1.6.1</slf4j.version>
    <log4j.version>1.2.14</log4j.version>
    <cglib.version>2.2.2</cglib.version>
    <aspectj.version>1.6.12</aspectj.version>
  </properties>
  
  <dependencies>
  
    <dependency>
      <groupid>junit</groupid>
      <artifactid>junit</artifactid>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    
    <!-- Spring Core -->
        <dependency>
            <groupid>org.springframework</groupid>
            <artifactid>spring-core</artifactid>
            <version>${spring.core.version}</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupid>org.springframework</groupid>
            <artifactid>spring-web</artifactid>
            <version>${spring.core.version}</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupid>org.springframework</groupid>
            <artifactid>spring-tx</artifactid>
            <version>${spring.core.version}</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupid>org.springframework</groupid>
            <artifactid>spring-webmvc</artifactid>
            <version>${spring.core.version}</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupid>org.springframework</groupid>
            <artifactid>spring-jdbc</artifactid>
            <version>${spring.core.version}</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupid>org.springframework</groupid>
            <artifactid>spring-oxm</artifactid>
            <version>${spring.core.version}</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupid>org.springframework</groupid>
            <artifactid>spring-aspects</artifactid>
            <version>${spring.core.version}</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
    
    <dependency>
        <groupid>org.testng</groupid>
        <artifactid>testng</artifactid>
        <version>6.8</version>
    </dependency>
    
    <dependency>
        <groupid>log4j</groupid>
        <artifactid>log4j</artifactid>
        <version>1.2.16</version>
    </dependency>
    
    <dependency>
        <groupid>javax.validation</groupid>
        <artifactid>validation-api</artifactid>
        <version>1.0.0.GA</version>
    </dependency>
    
    <dependency>
        <groupid>org.hibernate</groupid>
        <artifactid>hibernate-validator</artifactid>
        <version>4.3.1.Final</version>
    </dependency>
            
    <!-- Spring Data JPA -->
    <dependency>
        <groupid>org.springframework.data</groupid>
        <artifactid>spring-data-jpa</artifactid>
        <version>${spring.data.jpa.version}</version>
    </dependency>
    <dependency>
        <groupid>org.springframework</groupid>
        <artifactid>spring-orm</artifactid>
        <version>${spring.core.version}</version>
    </dependency>
    
    <!-- A seamless aspect-oriented extension to the Java programming language -->
        <dependency>
            <groupid>org.aspectj</groupid>
            <artifactid>aspectjrt</artifactid>
            <version>${aspectj.version}</version>
        </dependency>
        <dependency>
            <groupid>org.aspectj</groupid>
            <artifactid>aspectjweaver</artifactid>
            <version>${aspectj.version}</version>
        </dependency>
        
        <!-- Cglib is a powerful, high performance and quality Code Generation 
            Library, It is used to extend JAVA classes and implements interfaces at runtime. -->
        <dependency>
            <groupid>cglib</groupid>
            <artifactid>cglib-nodep</artifactid>
            <version>${cglib.version}</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        
        <!-- The Simple Logging Facade for Java or (SLF4J) serves as a simple facade 
            or abstraction for various logging frameworks, e.g. java.util.logging, log4j 
            and logback, allowing the end user to plug in the desired logging framework 
            at deployment time. -->
        <dependency>
            <groupid>org.slf4j</groupid>
            <artifactid>slf4j-api</artifactid>
            <version>${slf4j.version}</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupid>org.slf4j</groupid>
            <artifactid>slf4j-log4j12</artifactid>
            <version>${slf4j.version}</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupid>org.slf4j</groupid>
            <artifactid>jcl-over-slf4j</artifactid>
            <version>${slf4j.version}</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        
        <!-- Database pooling -->
        <dependency>
            <groupid>c3p0</groupid>
            <artifactid>c3p0</artifactid>
            <version>${c3p0.version}</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <!-- oRACLE Connector -->
    
        
        <dependency>
            <groupid>com.oracle</groupid>
            <artifactid>ojdbc14</artifactid>
            <version>10.2.0</version>
            <type>jar</type>
        </dependency>
            
                <!-- Hibernate and JPA -->
        <dependency>
            <groupid>org.hibernate</groupid>
            <artifactid>hibernate-core</artifactid>
            <version>${hibernate.version}</version>
        </dependency>
        <dependency>
            <groupid>org.hibernate</groupid>
            <artifactid>hibernate-entitymanager</artifactid>
            <version>${hibernate.version}</version>
        </dependency>
        <dependency>
            <groupid>org.hibernate</groupid>
            <artifactid>hibernate-ehcache</artifactid>
            <version>${hibernate.version}</version>
        </dependency>
        
    
  </dependencies>
  <build>
    <finalname>OnlineAppointmentSystem</finalname>
  </build>
  
  <repositories>
        <!-- For main Spring releases -->
        <repository>
            <id>org.springframework.maven.release</id>
            <name>Spring Maven Release Repository</name>
            <url>http://maven.springframework.org/release</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <!-- For testing against latest Spring snapshots -->
        <repository>
            <id>org.springframework.maven.snapshot</id>
            <name>Spring Maven Snapshot Repository</name>
            <url>http://maven.springframework.org/snapshot</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <!-- For developing against latest Spring milestones -->
        <repository>
            <id>org.springframework.maven.milestone</id>
            <name>Spring Maven Milestone Repository</name>
            <url>http://maven.springframework.org/milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>jboss</id>
            <name>JBoss repository</name>
            <url>https://repository.jboss.org/nexus/content/repositories/releases</url>
        </repository>
        
        <repository>
        <id>maven2-repository.dev.java.net</id>
        <name>Java.net Repository for Maven</name>
        <url>http://download.java.net/maven/2/</url>
        <layout>default</layout>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
        <releases>
            <enabled>true</enabled>
        </releases>
    </repository>
    </repositories>
</project>
Posted
Updated 26-Mar-13 2:39am
v3
Comments
Prasad Khandekar 26-Mar-13 7:33am    
com.oracle:ojdbc14:jar:10.2.0 is a propritary library and won't be available in maven repository. Try installing this jar in your local maven repository. You can use following command to do this.

mvn install:install-file -DcreateChecksum=true -Dfile=FULL PATH TO OJDBC14 JAR -DgroupId=com.oracle -DartifactId=ojdbc -Dversion=10.2.0 -DlocalRepositoryPath=PATH TO YOUR LOCAL MAVEN REPOSITORY

Regards,
tekskills 26-Mar-13 8:08am    
i already tried but still showing the same error.

[INFO] Finished at: Tue Mar 26 15:37:54 IST 2013
[INFO] Final Memory: 9M/119M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project OnlineAppointmentSystem: Could not res
olve dependencies for project OnlineAppointmentSystem:OnlineAppointmentSystem:wa
r:0.0.1-SNAPSHOT: Failure to find com.oracle:ojdbc14:jar:10.2.0 in http://maven.
springframework.org/release was cached in the local repository, resolution will
not be reattempted until the update interval of org.springframework.maven.releas
e has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException
C:\Users\200313\Desktop\OnlineAppointmentSystem> mvn install:install-file -Dcrea
teChecksum=true -Dfile=C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojd
bc14.jar -DgroupId=com.oracle -DartifactId=ojdbc -Dversion=10.2.0 -DlocalReposit
oryPath=C:\Users\200313\.m2
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building OnlineAppointmentSystem Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ OnlineAppoint
mentSystem ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.388s
[INFO] Finished at: Tue Mar 26 17:34:47 IST 2013
[INFO] Final Memory: 7M/86M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3
.1:install-file (default-cli) on project OnlineAppointmentSystem: The artifact i
nformation is incomplete or not valid:
[ERROR] [0] 'packaging' is missing.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
C:\Users\200313\Desktop\OnlineAppointmentSystem>


Prasad Khandekar 26-Mar-13 8:51am    
Do you have local repository definition in maven's settings.xml file. You can also try using maven in offline mode. (mvn -o)
<localRepository>/path/to/local/repo</localRepository>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900