hi programmers i have a seriuos problem when i run and clean my codes there was a error.
and the problem is maven Dependencies which is ojdbc14.10.2.0.4.0.jar was not in the resperatory how to fix this?

TIA

Do you have this in your pom file?

<dependency>
    <groupId>com.oracle</groupId>
    <artifactId>ojdbc14</artifactId>
    <version>10.2.0.4.0</version>
</dependency>

If yes, then run your build with -e flag to get more info and post it back

Yeah sir but i dont have ojdbc14.10.2.0.4.0.jar in my resperatory of maven

I'm getting confused by your reply. Purpose of Maven is to solve dependencies and fetch stuff eaither from dedicated company Nexus server or from publicly available repos. What you mean "i dont have ojdbc14.10.2.0.4.0.jar in my resperatory of maven"?
A) You are talking about your local .m2 directory
B) You mean you have restriction in maven to use only your company nexus to fetch dependencies
C) You are working in offline mode(not connected to internet) and obviously maven can't fetch dependencies

Please be more descriptive of situation, I cannot see what is happening on your machine so you need to provide as much data as necessary to get to root of the problem

Edited 1 Year Ago by peter_budo

I mean sir when i transfer my project to my office and look at maven dependency jdbc14.10.2.0.4.0.jar was not installed. im new in java and i don't know what to do or how to fixed.

What you mean "transfer"? Copy amd paste from one machine to other? Downloading from github/svn or similar?

Whatever you do, you will need to to execute again mvn clean install on the other machine so this machine fetches dependencies.

Edited 1 Year Ago by peter_budo

Why does everybody who is new in Java assumes they need to start of using jdbc? It would be easier for you to understand if you first started with the basics of Java and the basics of Maven.

as Peter says: mvn clean install should do the trick. or, if you use an ide, maybe your ide is pointing to an embedded maven, which might have it's repository somewhere else.

hi i already solve my own problem my problem now in build in maven but once i clean it. there was a error

Some problems were encountered while building the effective model for com.vibetech.sss:SSS-Maven:war:1.0 - SNAPSHOT
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @line 17, column 12

Error is rather explicit org.apache.maven.plugins:maven-compiler-pluginis missing. Does your pom.xml on the line 17 looks something like

<dependency>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.2</version>
</dependency>

hi sir this is my pom.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>com.vibetech.sss</groupId>
    <artifactId>SSS-Maven</artifactId>
    <packaging>war</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>SSS Maven Webapp</name>
    <url>http://maven.apache.org</url>
    <properties>
        <spring.version>4.0.1.RELEASE</spring.version>
    </properties>

    <build>
        <finalName>SSS-Maven</finalName>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>

                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>

                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.3</version>
                <configuration>
                    <failOnMissingWebXml>false</failOnMissingWebXml>
                </configuration>
            </plugin>
        </plugins>
    </build>





    <dependencies>



    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>2.5</version>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>javax.servlet.jsp</groupId>
        <artifactId>jsp-api</artifactId>
        <version>2.1</version>
        <scope>provided</scope>
    </dependency>


        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>javax.validation</groupId>
            <artifactId>validation-api</artifactId>
            <version>1.1.0.Final</version>
        </dependency>

        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-validator</artifactId>
            <version>5.0.1.Final</version>
        </dependency>

        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.4</version>
        </dependency>

        <dependency>
            <groupId>commons-fileupload</groupId>
            <artifactId>commons-fileupload</artifactId>
            <version>1.3.1</version>
        </dependency>

        <dependency>
            <groupId>jstl</groupId>
            <artifactId>jstl</artifactId>
            <version>1.2</version>
        </dependency>

        <!-- Spring dependencies -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>${spring.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>commons-logging</groupId>
                    <artifactId>commons-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <version>${spring.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
            <version>${spring.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <version>${spring.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-jdbc</artifactId>
            <version>2.0.6</version>
        </dependency>

        <!-- LogBack dependencies -->

        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>1.1.2</version>
        </dependency>

        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>jcl-over-slf4j</artifactId>
            <version>1.6.6</version>
        </dependency>

        <!-- Log4j dependencies -->

        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.17</version>
        </dependency>

        <!-- MySQL database driver -->
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.9</version>
        </dependency>

        <!-- Joda-time library -->
        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
            <version>2.0</version>
        </dependency>

        <!-- Oracle jdbc 14 -->
        <dependency>
            <groupId>com.oracle</groupId>
            <artifactId>ojdbc14</artifactId>
            <version>10.2.0.4.0</version>
        </dependency>

        <!-- c3p0 JDBC connection pool -->
        <dependency>
            <groupId>c3p0</groupId>
            <artifactId>c3p0</artifactId>
            <version>0.9.1.2</version>
        </dependency>

    </dependencies>
</project>

ok sir i already solve me error about the clean but when i try to build again this what the compiler said

[ERROR] No plugin found for prefix 'C' in the current project and in the plugin groups [com.jivesoftware.maven.plugins, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\belzk_000\.m2\repository), jive.internal (https://maven-secure.jivesoftware.com/archiva/repository/jive.internal), jive.snapshots (https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots), central (http://repo.maven.apache.org/maven2)] -> [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] 

Edited 1 Year Ago by peter_budo: Code formatting

Above error is often caused by unitentional spaces in executed command
Example
-Dfile = C:\app\Oracle11g\product\11.2.0\dbhome_1\owb\wf\lib\ojdbc14.jar
should be (extra spcates between equals = sign)
-Dfile=C:\app\Oracle11g\product\11.2.0\dbhome_1\owb\wf\lib\ojdbc14.jar

Edited 1 Year Ago by peter_budo

That would be if you are executing your build from the line. Have you actually tried to build from command line? Or you just relay on IDE to do the work?

Either way, please run build with -e flag to get more info on that error

This article has been dead for over six months. Start a new discussion instead.