Error while run the maven framework through command prompt but it's running fine with eclipse












1















I faced the issue with the surefire plugin "2.19.1" as below. I have tried with the version 2.19.1,2.12.4,3.0.0-M1



enter image description here










share|improve this question




















  • 1





    Please don't post the relevant things as images. That's not useful for anyone trying to search same issues.

    – James Z
    Nov 23 '18 at 12:17
















1















I faced the issue with the surefire plugin "2.19.1" as below. I have tried with the version 2.19.1,2.12.4,3.0.0-M1



enter image description here










share|improve this question




















  • 1





    Please don't post the relevant things as images. That's not useful for anyone trying to search same issues.

    – James Z
    Nov 23 '18 at 12:17














1












1








1








I faced the issue with the surefire plugin "2.19.1" as below. I have tried with the version 2.19.1,2.12.4,3.0.0-M1



enter image description here










share|improve this question
















I faced the issue with the surefire plugin "2.19.1" as below. I have tried with the version 2.19.1,2.12.4,3.0.0-M1



enter image description here







maven selenium






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 12:18









James Z

11.2k71935




11.2k71935










asked Nov 23 '18 at 10:49









Yaswanth GYaswanth G

66




66








  • 1





    Please don't post the relevant things as images. That's not useful for anyone trying to search same issues.

    – James Z
    Nov 23 '18 at 12:17














  • 1





    Please don't post the relevant things as images. That's not useful for anyone trying to search same issues.

    – James Z
    Nov 23 '18 at 12:17








1




1





Please don't post the relevant things as images. That's not useful for anyone trying to search same issues.

– James Z
Nov 23 '18 at 12:17





Please don't post the relevant things as images. That's not useful for anyone trying to search same issues.

– James Z
Nov 23 '18 at 12:17












1 Answer
1






active

oldest

votes


















0














You're maven seems to be corrupt. Assuming you're on a windows machine:



1) set M2_HOME environment variable to the folder where maven is. (if in doubt download it and put it somewhere, it's just a java program.



2) set JAVA_HOME environment variable to the folder where your java is.



3) add %JAVA_HOME%/bin:%M2_HOME%/bin to the start of your PATH environment variable.



4) Make sure your ~/.m2/ folder has a settings.xml in it, you can use the one from the maven download to start. (you may need to add the proxy details)



5) Test with



mvn -version


6) You can clear your local repository by deleting files in ~/.m2/repository if you've not done much and have a reasonable network just blow the whole thing away.






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%2f53445241%2ferror-while-run-the-maven-framework-through-command-prompt-but-its-running-fine%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    You're maven seems to be corrupt. Assuming you're on a windows machine:



    1) set M2_HOME environment variable to the folder where maven is. (if in doubt download it and put it somewhere, it's just a java program.



    2) set JAVA_HOME environment variable to the folder where your java is.



    3) add %JAVA_HOME%/bin:%M2_HOME%/bin to the start of your PATH environment variable.



    4) Make sure your ~/.m2/ folder has a settings.xml in it, you can use the one from the maven download to start. (you may need to add the proxy details)



    5) Test with



    mvn -version


    6) You can clear your local repository by deleting files in ~/.m2/repository if you've not done much and have a reasonable network just blow the whole thing away.






    share|improve this answer






























      0














      You're maven seems to be corrupt. Assuming you're on a windows machine:



      1) set M2_HOME environment variable to the folder where maven is. (if in doubt download it and put it somewhere, it's just a java program.



      2) set JAVA_HOME environment variable to the folder where your java is.



      3) add %JAVA_HOME%/bin:%M2_HOME%/bin to the start of your PATH environment variable.



      4) Make sure your ~/.m2/ folder has a settings.xml in it, you can use the one from the maven download to start. (you may need to add the proxy details)



      5) Test with



      mvn -version


      6) You can clear your local repository by deleting files in ~/.m2/repository if you've not done much and have a reasonable network just blow the whole thing away.






      share|improve this answer




























        0












        0








        0







        You're maven seems to be corrupt. Assuming you're on a windows machine:



        1) set M2_HOME environment variable to the folder where maven is. (if in doubt download it and put it somewhere, it's just a java program.



        2) set JAVA_HOME environment variable to the folder where your java is.



        3) add %JAVA_HOME%/bin:%M2_HOME%/bin to the start of your PATH environment variable.



        4) Make sure your ~/.m2/ folder has a settings.xml in it, you can use the one from the maven download to start. (you may need to add the proxy details)



        5) Test with



        mvn -version


        6) You can clear your local repository by deleting files in ~/.m2/repository if you've not done much and have a reasonable network just blow the whole thing away.






        share|improve this answer















        You're maven seems to be corrupt. Assuming you're on a windows machine:



        1) set M2_HOME environment variable to the folder where maven is. (if in doubt download it and put it somewhere, it's just a java program.



        2) set JAVA_HOME environment variable to the folder where your java is.



        3) add %JAVA_HOME%/bin:%M2_HOME%/bin to the start of your PATH environment variable.



        4) Make sure your ~/.m2/ folder has a settings.xml in it, you can use the one from the maven download to start. (you may need to add the proxy details)



        5) Test with



        mvn -version


        6) You can clear your local repository by deleting files in ~/.m2/repository if you've not done much and have a reasonable network just blow the whole thing away.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 23 '18 at 11:35

























        answered Nov 23 '18 at 11:26









        Essex BoyEssex Boy

        4,5081815




        4,5081815






























            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53445241%2ferror-while-run-the-maven-framework-through-command-prompt-but-its-running-fine%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

            404 Error Contact Form 7 ajax form submitting

            How to know if a Active Directory user can login interactively

            Refactoring coordinates for Minecraft Pi buildings written in Python