Missing artifact com.oracle:ojdbc7 in eclipse












6














I have imported a Maven Project in Eclipse (EE Developer) and I have in my pom.xml file the following error, “Missing artifact com.oracle:ojdbc7:jar:12.1.0.2″ in this code:



<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc7</artifactId>
<version>12.1.0.2</version>
</dependency>


I have done so by downloading the ojdbc7.jar and run this command:



mvn install:install-file -Dfile=/Path-to-jar/ojdbc7.jar
-DgroupId=com.oracle
-DartifactId=ojdbc7
-Dversion=12.1.0.2
-Dpackaging=jar
-DgeneratePom=true


After that, I got as an output BUILD SUCCESS, and if I go to the .m2 folder I see in the com->oracle->ojdbc7 two files called “ojdbc7-12.1.0.1.jar.lastUpdated” and “ojdbc7-12.1.0.1.pom.lastUpdated” but still Eclipse brings me the code into the pom.xml file as an error?!?!?!
Can some one help?










share|improve this question



























    6














    I have imported a Maven Project in Eclipse (EE Developer) and I have in my pom.xml file the following error, “Missing artifact com.oracle:ojdbc7:jar:12.1.0.2″ in this code:



    <dependency>
    <groupId>com.oracle</groupId>
    <artifactId>ojdbc7</artifactId>
    <version>12.1.0.2</version>
    </dependency>


    I have done so by downloading the ojdbc7.jar and run this command:



    mvn install:install-file -Dfile=/Path-to-jar/ojdbc7.jar
    -DgroupId=com.oracle
    -DartifactId=ojdbc7
    -Dversion=12.1.0.2
    -Dpackaging=jar
    -DgeneratePom=true


    After that, I got as an output BUILD SUCCESS, and if I go to the .m2 folder I see in the com->oracle->ojdbc7 two files called “ojdbc7-12.1.0.1.jar.lastUpdated” and “ojdbc7-12.1.0.1.pom.lastUpdated” but still Eclipse brings me the code into the pom.xml file as an error?!?!?!
    Can some one help?










    share|improve this question

























      6












      6








      6


      1





      I have imported a Maven Project in Eclipse (EE Developer) and I have in my pom.xml file the following error, “Missing artifact com.oracle:ojdbc7:jar:12.1.0.2″ in this code:



      <dependency>
      <groupId>com.oracle</groupId>
      <artifactId>ojdbc7</artifactId>
      <version>12.1.0.2</version>
      </dependency>


      I have done so by downloading the ojdbc7.jar and run this command:



      mvn install:install-file -Dfile=/Path-to-jar/ojdbc7.jar
      -DgroupId=com.oracle
      -DartifactId=ojdbc7
      -Dversion=12.1.0.2
      -Dpackaging=jar
      -DgeneratePom=true


      After that, I got as an output BUILD SUCCESS, and if I go to the .m2 folder I see in the com->oracle->ojdbc7 two files called “ojdbc7-12.1.0.1.jar.lastUpdated” and “ojdbc7-12.1.0.1.pom.lastUpdated” but still Eclipse brings me the code into the pom.xml file as an error?!?!?!
      Can some one help?










      share|improve this question













      I have imported a Maven Project in Eclipse (EE Developer) and I have in my pom.xml file the following error, “Missing artifact com.oracle:ojdbc7:jar:12.1.0.2″ in this code:



      <dependency>
      <groupId>com.oracle</groupId>
      <artifactId>ojdbc7</artifactId>
      <version>12.1.0.2</version>
      </dependency>


      I have done so by downloading the ojdbc7.jar and run this command:



      mvn install:install-file -Dfile=/Path-to-jar/ojdbc7.jar
      -DgroupId=com.oracle
      -DartifactId=ojdbc7
      -Dversion=12.1.0.2
      -Dpackaging=jar
      -DgeneratePom=true


      After that, I got as an output BUILD SUCCESS, and if I go to the .m2 folder I see in the com->oracle->ojdbc7 two files called “ojdbc7-12.1.0.1.jar.lastUpdated” and “ojdbc7-12.1.0.1.pom.lastUpdated” but still Eclipse brings me the code into the pom.xml file as an error?!?!?!
      Can some one help?







      java eclipse oracle maven ojdbc






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 13 '15 at 23:32









      Masih

      72621029




      72621029
























          2 Answers
          2






          active

          oldest

          votes


















          0














          I would get rid of those 2 files manually (lastUpdated) then re-run your install command and finally build your project. Those 2 files have been created by mvn as flags to avoid refetching them for a certain amount of time. They certainly have been created prior to your manual install-file command.






          share|improve this answer





















          • Still getting "Missing artifact". But Thanks
            – Masih
            Aug 13 '15 at 23:51










          • After running install, what do you have in your m2 oracle/odbc7 folder?
            – Franck
            Aug 14 '15 at 0:04



















          0














          I recommend you to follow the instruction given in this link.
          "http://javabycode.com/build-tools/maven/add-oracle-jdbc-driver-maven.html"



          As per your dependency in pom.xml there should be 4 files generated inside "m2repocomoracleojdbc712.1.0.2" folder.




          1. ojdbc7-12.1.0.2.jar

          2. ojdbc7-12.1.0.2.jar.lastUpdated

          3. ojdbc7-12.1.0.2.pom

          4. ojdbc7-12.1.0.2.pom.lastUpdated


          But as you are saying you checked for "ojdbc7-12.1.0.1.jar.lastUpdated", that should not be the case. I recommend you to delete your dependency folder and then start from scratch.






          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f32000104%2fmissing-artifact-com-oracleojdbc7-in-eclipse%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I would get rid of those 2 files manually (lastUpdated) then re-run your install command and finally build your project. Those 2 files have been created by mvn as flags to avoid refetching them for a certain amount of time. They certainly have been created prior to your manual install-file command.






            share|improve this answer





















            • Still getting "Missing artifact". But Thanks
              – Masih
              Aug 13 '15 at 23:51










            • After running install, what do you have in your m2 oracle/odbc7 folder?
              – Franck
              Aug 14 '15 at 0:04
















            0














            I would get rid of those 2 files manually (lastUpdated) then re-run your install command and finally build your project. Those 2 files have been created by mvn as flags to avoid refetching them for a certain amount of time. They certainly have been created prior to your manual install-file command.






            share|improve this answer





















            • Still getting "Missing artifact". But Thanks
              – Masih
              Aug 13 '15 at 23:51










            • After running install, what do you have in your m2 oracle/odbc7 folder?
              – Franck
              Aug 14 '15 at 0:04














            0












            0








            0






            I would get rid of those 2 files manually (lastUpdated) then re-run your install command and finally build your project. Those 2 files have been created by mvn as flags to avoid refetching them for a certain amount of time. They certainly have been created prior to your manual install-file command.






            share|improve this answer












            I would get rid of those 2 files manually (lastUpdated) then re-run your install command and finally build your project. Those 2 files have been created by mvn as flags to avoid refetching them for a certain amount of time. They certainly have been created prior to your manual install-file command.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Aug 13 '15 at 23:42









            Franck

            1,39211012




            1,39211012












            • Still getting "Missing artifact". But Thanks
              – Masih
              Aug 13 '15 at 23:51










            • After running install, what do you have in your m2 oracle/odbc7 folder?
              – Franck
              Aug 14 '15 at 0:04


















            • Still getting "Missing artifact". But Thanks
              – Masih
              Aug 13 '15 at 23:51










            • After running install, what do you have in your m2 oracle/odbc7 folder?
              – Franck
              Aug 14 '15 at 0:04
















            Still getting "Missing artifact". But Thanks
            – Masih
            Aug 13 '15 at 23:51




            Still getting "Missing artifact". But Thanks
            – Masih
            Aug 13 '15 at 23:51












            After running install, what do you have in your m2 oracle/odbc7 folder?
            – Franck
            Aug 14 '15 at 0:04




            After running install, what do you have in your m2 oracle/odbc7 folder?
            – Franck
            Aug 14 '15 at 0:04













            0














            I recommend you to follow the instruction given in this link.
            "http://javabycode.com/build-tools/maven/add-oracle-jdbc-driver-maven.html"



            As per your dependency in pom.xml there should be 4 files generated inside "m2repocomoracleojdbc712.1.0.2" folder.




            1. ojdbc7-12.1.0.2.jar

            2. ojdbc7-12.1.0.2.jar.lastUpdated

            3. ojdbc7-12.1.0.2.pom

            4. ojdbc7-12.1.0.2.pom.lastUpdated


            But as you are saying you checked for "ojdbc7-12.1.0.1.jar.lastUpdated", that should not be the case. I recommend you to delete your dependency folder and then start from scratch.






            share|improve this answer


























              0














              I recommend you to follow the instruction given in this link.
              "http://javabycode.com/build-tools/maven/add-oracle-jdbc-driver-maven.html"



              As per your dependency in pom.xml there should be 4 files generated inside "m2repocomoracleojdbc712.1.0.2" folder.




              1. ojdbc7-12.1.0.2.jar

              2. ojdbc7-12.1.0.2.jar.lastUpdated

              3. ojdbc7-12.1.0.2.pom

              4. ojdbc7-12.1.0.2.pom.lastUpdated


              But as you are saying you checked for "ojdbc7-12.1.0.1.jar.lastUpdated", that should not be the case. I recommend you to delete your dependency folder and then start from scratch.






              share|improve this answer
























                0












                0








                0






                I recommend you to follow the instruction given in this link.
                "http://javabycode.com/build-tools/maven/add-oracle-jdbc-driver-maven.html"



                As per your dependency in pom.xml there should be 4 files generated inside "m2repocomoracleojdbc712.1.0.2" folder.




                1. ojdbc7-12.1.0.2.jar

                2. ojdbc7-12.1.0.2.jar.lastUpdated

                3. ojdbc7-12.1.0.2.pom

                4. ojdbc7-12.1.0.2.pom.lastUpdated


                But as you are saying you checked for "ojdbc7-12.1.0.1.jar.lastUpdated", that should not be the case. I recommend you to delete your dependency folder and then start from scratch.






                share|improve this answer












                I recommend you to follow the instruction given in this link.
                "http://javabycode.com/build-tools/maven/add-oracle-jdbc-driver-maven.html"



                As per your dependency in pom.xml there should be 4 files generated inside "m2repocomoracleojdbc712.1.0.2" folder.




                1. ojdbc7-12.1.0.2.jar

                2. ojdbc7-12.1.0.2.jar.lastUpdated

                3. ojdbc7-12.1.0.2.pom

                4. ojdbc7-12.1.0.2.pom.lastUpdated


                But as you are saying you checked for "ojdbc7-12.1.0.1.jar.lastUpdated", that should not be the case. I recommend you to delete your dependency folder and then start from scratch.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 27 '17 at 9:03









                Gaurav

                491415




                491415






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f32000104%2fmissing-artifact-com-oracleojdbc7-in-eclipse%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Florida Star v. B. J. F.

                    Danny Elfman

                    Lugert, Oklahoma