How To Create and Run Maven Project with Eclipse and CommandLine | Step by Step

Поделиться
HTML-код
  • Опубликовано: 18 дек 2024

Комментарии • 194

  • @ReflexShow
    @ReflexShow 4 года назад +8

    What a chill voice and vibe, i love your tutorial by far and you helped me a lot!
    Thanks you buddy!

    • @RaghavPal
      @RaghavPal  4 года назад +2

      So happy to know it helped

    • @ReflexShow
      @ReflexShow 4 года назад

      @@RaghavPal I can hear this comment bro

  • @mohnishkumar9430
    @mohnishkumar9430 4 года назад +2

    Thanks a lot. Gave me a very good idea of maven in a few minutes which I have been searching for hours

    • @RaghavPal
      @RaghavPal  4 года назад

      Glad I could help Mohnish

  • @MaknunKhan
    @MaknunKhan 4 года назад +2

    Thanks brother ..may Almighty Allah help you everywhere

    • @RaghavPal
      @RaghavPal  4 года назад

      Many many thanks Nur Mohammod Khan

  • @rameshvulli8993
    @rameshvulli8993 4 года назад +1

    Great information Raghav sir...Always I like your videos

  • @vasudevrao1
    @vasudevrao1 4 года назад +1

    Thanks Raghav, very clear to understand.

    • @RaghavPal
      @RaghavPal  4 года назад

      You're most welcome Vasu

  • @rudolfperalta9777
    @rudolfperalta9777 4 года назад +2

    Rajhav you're the best! Thank you so much.

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Happy and humbled to see this Elmo

  • @mayankgarg9446
    @mayankgarg9446 3 года назад

    Thank you so dear.....step by step explanation of topic is excellent thank you so much once again 🙏

  • @pratibha-py8wf
    @pratibha-py8wf 2 года назад

    Really thankyou soo much, learning very nicely from your videos and website.

  • @saikumar.maha1
    @saikumar.maha1 4 года назад

    Thank u so much Raghav your explanation is neat and it is simple. Now my problem is resolved after watching the video of how to run maven through command window after changing the directory . Once again thank u

    • @RaghavPal
      @RaghavPal  4 года назад

      So happy to know this Sai

  • @shilpajoshi559
    @shilpajoshi559 3 года назад +1

    simply great, Thanks for sharing all these videos , its helping us a lot

    • @RaghavPal
      @RaghavPal  3 года назад

      So nice of you Shilpa

  • @shwethayadav3310
    @shwethayadav3310 3 года назад

    Ur videos are so much helpful Raghav thanks alot.

    • @RaghavPal
      @RaghavPal  3 года назад

      Glad to hear that Shwetha

  • @k.sarathchand5992
    @k.sarathchand5992 3 года назад

    I'm too late to reach u ..it's really helped me a lot... thank you

  • @apurvamahendrakar1719
    @apurvamahendrakar1719 2 года назад

    Helpful video..... Thank u so much

    • @RaghavPal
      @RaghavPal  2 года назад

      Most welcome 😊 Apurva

  • @milindbhurewar712
    @milindbhurewar712 4 года назад

    what a simple explanation about mvn basics thanks a lot

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Most welcome Milind

  • @ahmedifhaam7266
    @ahmedifhaam7266 2 года назад

    thanks brother, appreciate for taking the time to make and share this

  • @WickedChild95
    @WickedChild95 2 года назад

    Fantastic video and explanation!

  • @mallikarjunpidaparthi
    @mallikarjunpidaparthi 3 года назад +1

    Thank you so much sir

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Most welcome Pidaparthi

  • @muditarajan1087
    @muditarajan1087 4 года назад

    Thanku for expaling things from strach

  • @aelodie7326
    @aelodie7326 3 года назад +1

    Great video 👍! Thank you for your help!!! It was very useful! 😊

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Glad it was helpful Aelodie

  • @archanajoshi7416
    @archanajoshi7416 4 года назад +1

    Off late, I have been watching your videos on TestNG and Maven . I must say i have learned a lot through these videos. Thank You. Raghav, I have a question on maven. I followed your video on how to create and run maven project thru eclipse. I followed your video step by step. When I run it , it says Build Success but fails to show output ,which is nothing but a print statement on to my console. Wondering why ? Any help is appreciated.

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Archana, thanks for your message. Pls check the logs, It will have the information or errors

    • @sappanimuthubalasubramania1572
      @sappanimuthubalasubramania1572 3 года назад

      @@RaghavPal Hi Raghav, where we need to check the log? I am also facing the same issue.
      Thanks in advance.

    • @bushrashaikh4237
      @bushrashaikh4237 3 года назад

      Surefire plugins is required

  • @sasidharsamala1889
    @sasidharsamala1889 4 года назад

    Simply awesome explanation.
    Thanks a Lot

    • @RaghavPal
      @RaghavPal  4 года назад

      Most welcome Sasidhar

  • @s.baskaravishnu22
    @s.baskaravishnu22 4 года назад

    your video is excellent. Your video is very much useful to me, Many thanks for that. My warm regards to you.

  • @nacional8
    @nacional8 5 лет назад +1

    Great video!

  • @mridulsharma4847
    @mridulsharma4847 3 года назад

    Thank you for the help. was stuck at jdk / jre lib

    • @RaghavPal
      @RaghavPal  3 года назад

      Glad this helped Mridul

  • @1948andres
    @1948andres 3 года назад

    Hi Raghav, i can not see the tests executed in selenium not command line, when i hit mvn test it says build success but the tests are not executed. wondering if you know what might be the issue. thanks

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Nestor, just check the names of test classes. If you are using junit or testng, the naming convention matters like Test* *Test ...

  • @dibakardey6097
    @dibakardey6097 3 года назад

    Hi Raghav can you please tell the maven structure like why we have created class inside src/test and src/main

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Hi Dibakar, okay, I was thinking of doing a video on this, will plan

    • @dibakardey6097
      @dibakardey6097 3 года назад

      @@RaghavPal Thank you so much , please let me know once the video is uploaded although I have subscribed to your channel 👍

  • @lakshminarayansingh5485
    @lakshminarayansingh5485 4 года назад

    Tip to open command prompt from windows explorer directly:
    After going to maven project location, type cmd in the top explorer address bar it will open cmd with that location and you need not switch directories

  • @vidyabukitgar
    @vidyabukitgar 3 года назад +1

    hi raghav , m vidya , i am new to maven , i have done theoretical part but i could not understand much about it so i decided do hands on learn. i was following your video. everything is fine but there are many other dependencies are downloaded which i dont know and my pom.xml file is very large including many tags where as yours is short and sweet for this simple project. archetype is same which u used 0.0.1-snaphsot. and but later i thought let us not bother but when i tried putting @Test annotation it did not import which is showing me error. please help me

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Vidya, usually when you get any maven lib, in case it is dependent on others, it will automatically add them in your project, No need to worry on that, Just check if you have got the right dependencies from the right source, ver etc. On the @Test annotation, this is present in several testing lib like JUnit, TestNG, see what is added in your project and can compare with mine

  • @sravanthik237
    @sravanthik237 4 года назад

    That's very good explanation Raghav. Thank you. I am the beginner and during practice I am facing issue while running the tests. I am able to run tests of the project only through the usage of under mvn-surefire-plugin in pom.xml, ie the same piece of code when i run without specifying the configuration in pom.xml, the tests are not getting executed. I used with and without testng, but nothing is working out. Can you please help me regarding this.

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Sravanthi, I will need to check the setup, You can try some online help

    • @sravanthik237
      @sravanthik237 4 года назад

      @@RaghavPal Ok.. Thank you Raghav 🙂

  • @saranyababu1359
    @saranyababu1359 Год назад

    Sir, I have 20 tests in 3 classes which I want to run with 2 different logins. 2 diff login creds are in 2 diff properties. I am planning to use maven profiles . How to load corresponding property file based on profile which we give in the execution command

    • @RaghavPal
      @RaghavPal  Год назад +1

      Hi Saranya
      Here are the steps on how to load corresponding property file based on profile which we give in the execution command:
      1. Create two property files, one for each login. The property files should contain the following information:
      * Username
      * Password
      2. In your Maven pom.xml file, add the following profiles:
      * `dev`: This profile will use the `dev.properties` file.
      * `prod`: This profile will use the `prod.properties` file.
      3. In your test class, use the following code to load the property file for the current profile:
      Properties properties = new Properties();
      InputStream inputStream = null;
      if (System.getProperty("profile") == "dev") {
      inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("dev.properties");
      } else if (System.getProperty("profile") == "prod") {
      inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("prod.properties");
      }
      try {
      properties.load(inputStream);
      } catch (IOException e) {
      e.printStackTrace();
      }
      4. In your test methods, use the `properties` object to access the login credentials.
      ```
      String username = properties.getProperty("username");
      String password = properties.getProperty("password");
      // Use username and password to login to the application
      ```

    • @saranyababu1359
      @saranyababu1359 Год назад

      @@RaghavPal sure. I will try this.

  • @TarekFaham
    @TarekFaham 3 года назад

    Fantastic... How to convert a normal java bean project with no build tool to be a maven project using vscode?

    • @RaghavPal
      @RaghavPal  3 года назад +1

      I will check on this, can try some online examples

    • @TarekFaham
      @TarekFaham 3 года назад +1

      @@RaghavPal thanks... Looking forward to your reply...

  • @upasanapandya8522
    @upasanapandya8522 3 года назад

    hello when i tried running the code i am getting this exception.
    Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project FirstMaven: Compilation failure: Compilation failure:
    [ERROR] Source option 5 is no longer supported. Use 7 or later.
    [ERROR] Target option 5 is no longer supported. Use 7 or later.
    [ERROR] -> [Help 1]
    please direct me how to solve it

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Upasana, you can try to add the following in the properties section of pom.xml
      1.8
      1.8
      Version can be updated as per your java ver
      stackoverflow.com/questions/42525139/maven-build-compilation-error-failed-to-execute-goal-org-apache-maven-plugins

  • @ankitathakur1930
    @ankitathakur1930 4 года назад

    Hi Raghav..I have watched most of ur videos...I have one question...When we build maven (run pom.xml) then automatically all test cases (suite) runs?

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Hi Ankita, tests run when we run mvn test command. You can get more details here tutorials.jenkov.com/maven/maven-commands.html#executing-build-phases

  • @jeyasudhanr1208
    @jeyasudhanr1208 4 года назад

    Hi Raghav, while trying to create a new maven project,i am getting the following error:
    Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved:Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Jeyasudha, this can help stackoverflow.com/questions/12533885/could-not-calculate-build-plan-plugin-org-apache-maven-pluginsmaven-resources

  • @pravinjadhav9749
    @pravinjadhav9749 3 года назад

    hi Need Help
    when i run my testng.xml file all work fine but when i rum my pom.xml file it will run all test but Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project ExrentReport: There are test failures.

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Pravin, This can help - stackoverflow.com/questions/31221182/failed-to-execute-goal-org-apache-maven-pluginsmaven-surefire-plugin2-18-1tes

  • @sibinamohanan
    @sibinamohanan 4 года назад

    I am getting the below error in command prompt while trying 'mvn test': whereas it is working fine when I directly run from Eclipse. Could you please help
    Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.5.1: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:2.5.1 from/to central (repo.maven.apache.org/maven2): Failed to transfer file: repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.5.1/maven-compiler-plugin-2.5.1.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Sibina, you will get help here - stackoverflow.com/questions/59763531/maven-dependencies-are-failing-with-a-501-error

  • @reazhussain3415
    @reazhussain3415 3 года назад

    Thank you

  • @camilohenaobravo1766
    @camilohenaobravo1766 4 года назад

    Hola amigo como estas? Yo puedo crear esto con el test de web services de assured rest?

    • @camilohenaobravo1766
      @camilohenaobravo1766 4 года назад

      Saludos desde Colombia!!!

    • @RaghavPal
      @RaghavPal  4 года назад

      Sí, consulte los tutoriales aquí automationstepbystep.com/

  • @shikhasingh1118
    @shikhasingh1118 2 года назад

    Hi Sir, I got an error on eclipse -BUILD failure -Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project , using same POM.xml but on confluence ,its written as to define few more and all dependencies in pom

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi Shikha, you can try to add the following in the properties section of pom.xml
      1.8
      1.8
      Version can be updated as per your java ver
      stackoverflow.com/questions/42525139/maven-build-compilation-error-failed-to-execute-goal-org-apache-maven-plugins
      This can help - stackoverflow.com/questions/31221182/failed-to-execute-goal-org-apache-maven-pluginsmaven-surefire-plugin2-18-1tes

  • @amolmundada5776
    @amolmundada5776 3 года назад

    Hi Raghv, I spent hours on one error. whenever I'm creating new Maven project im getting a red cross symbol on the project name itself, also "JRE system library" file is not generating when we create new maven project. please help me to resolve this issue.
    Also POM file has the same red cross symbol as like the symbol on project name probably its an error symbol. but im not able to figure out why im getting this error although i have followed the same steps as you shown in your video. plz help

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Amol, do you see any message when you hover over or click on the cross mark. Can try cleaning project and restarting Eclipse. In case its JRE issue, try to use a diff JRE or JDK
      stackoverflow.com/questions/4638108/how-do-i-configure-eclipse-to-make-use-of-different-version-of-jdk

  • @venkatachaitanya7752
    @venkatachaitanya7752 4 года назад

    while I'm running the project using "maven test" I'm getting this error :
    Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from/to central (repo.maven.apache.org/maven2): repo.maven.apache.org: Unknown host repo.maven.apache.org -> [Help 1]
    Please help me bro

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Venkata, check if this helps stackoverflow.com/questions/13170860/failed-to-execute-goal-org-apache-maven-pluginsmaven-surefire-plugin2-10test

  • @zahidukalayev4404
    @zahidukalayev4404 3 года назад

    Hi Raghav when I run test I got same error "BUILD FAILURE" then I followed step choosed add libraries and directory... then jdk path but can't click finish button because it says The JRE name is already in use

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Hi Zahid, pls check here answers.sap.com/questions/11083819/setting-up-sap-jvm-in-eclipse-ide-jre-name-is-alre.html

  • @tatheprashant
    @tatheprashant 4 года назад

    Thank you these simple step. But I am getting below error while running the test.
    At the end I can see build success but no output is printed
    SLF4J: Class path contains multiple SLF4J bindings.

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Prashant, check if this helps stackoverflow.com/questions/14024756/slf4j-class-path-contains-multiple-slf4j-bindings

  • @supriyap6675
    @supriyap6675 2 года назад

    Why we are installing and setting up Maven when its already inbuilt in eclipse. this part is confusing to me?
    or do we need to install and setup Maven is necessary step?

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi Supriya, you will not need to install Maven as long as you are running from within Eclipse, but if you like to run from outside (cmd), will need it on the system

  • @bishnuyashadash91
    @bishnuyashadash91 4 года назад

    Thank you so much...

    • @RaghavPal
      @RaghavPal  4 года назад

      You're most welcome Bishnuyasha

  • @AlaKarim
    @AlaKarim 4 года назад

    hi, Can we create a single web page containing button that will run our test script written in JAVA using testng and is maven project. Please suggest?

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Hi Ala, you can do that, will have to check some UI framework, On the other hand, why not setup your commands in a jenkins job. You will get a UI + a lot of other options. Can check Jenkins tutorial here - automationstepbystep.com/

    • @AlaKarim
      @AlaKarim 4 года назад

      Automation Step by Step - Raghav Pal thanks alot... i will try jenkins

  • @pankajsingh2200
    @pankajsingh2200 4 года назад

    Hello Sir,
    I have a query, it would be highly appreciated if u can answer it.
    I have installed Maven using Eclipse Marketplace. I can run maven in Eclipse.
    However, my system cannot find maven using mvn -version.
    So is it because I have not installed maven in system?
    Please help.
    Thanks & Regards,
    Pankaj Singh

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Yes, exactly Pankaj, Eclipse has in-built maven and you can run from Eclipse, but if you want to run from command line then should install Maven on your system. Check this ruclips.net/p/PLhW3qG5bs-L8XkBrI-G5aTUo6QwEEoVcj

    • @pankajsingh2200
      @pankajsingh2200 4 года назад

      @@RaghavPal Thanks Sir

  • @vishwasmeshram9241
    @vishwasmeshram9241 4 года назад

    hello sir, thanks for the video, but i didnt get the hello world print on console, just the build success message, im using testNG 7.3.0, but if i run the code individually, it is showing,

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Vishwas, if you have followed all the steps, it should print. Pls check the console again. Also add some new line character
      before and after hello world like "

      Hello World /n/n"
      So that it is clearly visible on the command line

  • @asifshaik1038
    @asifshaik1038 3 года назад

    Good Evening Raghav sir,
    Can you please explain how to build Maven parent child projects?

    • @RaghavPal
      @RaghavPal  3 года назад +1

      I will plan a session Asif

  • @mbmast1
    @mbmast1 4 года назад

    So I do not understand, and you did not explain, how maven can build (compile) the program without any build related XML in POM.XML. Ant uses the element to specify how to compile the code. This includes where the source directories are, where the compiled class files go, compiler flags, etc. None of this is in the POM.XML file, yet somehow you were able to compile the code. ???

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Hi Michael, there is difference on how Maven and Ant works, I will plan to have a session

  • @vamsikaranam2934
    @vamsikaranam2934 3 года назад +1

    after adding dependencies in pox.xml file and saving the file I did not find any maven dependencies folder in package explorer explorer.Can someone please help me to get maven dependencies added.

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Hi Vamsi, Right click on project -> Maven -> Update Project OR if you do not find the option go from the menu project -> Maven -> Update Projects and select your project
      Next option to try is
      Window->Preferences: Maven->Installations: Global settings -> open file and hardcoded localRepository
      Project->Clean
      right click on project: Maven->Update dependencies
      right click on project: Maven->Update project configuration
      This can help stackoverflow.com/questions/29237490/maven-dependencies-missing-in-eclipse-project/29241681
      stackoverflow.com/questions/4262186/missing-maven-dependencies-in-eclipse-project

  • @mallikarjunpidaparthi
    @mallikarjunpidaparthi 4 года назад +1

    It's giving me 3.1 compiler(default) error, when I changed the properties of compiler source and target to 1.8 it's working fine...
    Why does this happen?? Please reply sir...

  • @kobilike
    @kobilike 3 года назад

    you are a champion how can I reach you privately ?

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Kobi, you can email me

  • @SuryaSinghamgamershortvideo
    @SuryaSinghamgamershortvideo 4 года назад

    maven project running successfully but not getting the output to what i am printing in System.out.println("Helloworld").
    Below console info:-
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------< hellowworld_nil:hellowworld_nil >-------------------
    [INFO] Building hellowworld_nil 0.0.1-SNAPSHOT
    [INFO] --------------------------------[ jar ]---------------------------------
    [INFO]
    [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hellowworld_nil ---
    [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
    [INFO] Copying 0 resource
    [INFO]
    [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ hellowworld_nil ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO]
    [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ hellowworld_nil ---
    [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
    [INFO] Copying 0 resource
    [INFO]
    [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ hellowworld_nil ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO]
    [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ hellowworld_nil ---
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1.434 s
    [INFO] Finished at: 2020-04-06T23:17:51+05:30
    [INFO] ------------------------------------------------------------------------

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Sunny, what is the command you are running. If you have added your code in the src/java/test folder, when you run mvn test it will run.

  • @ilavarasansriraman4140
    @ilavarasansriraman4140 4 года назад

    Sir,
    Difference between central repository vs remote repository?

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Check this howtodoinjava.com/maven/local-remote-central-repositories/#:~:text=These%20maven%20remote%20repository%20work,file%20in%20remote%20repository%20itself.

  • @rakeshm5993
    @rakeshm5993 4 года назад

    I am getting error while adding maven project
    "Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6"
    can you help...

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Rakesh, this will help
      stackoverflow.com/questions/31316339/how-to-solve-maven-2-6-resource-plugin-dependency

  • @AjeetSingh-ti2yg
    @AjeetSingh-ti2yg 3 года назад

    Hi Raghav,
    While creating a maven project .. I am getting "Building" has encountered the problem . Could you please suggest me how to fix this issue
    Thanks in advance.

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Ajeet, will need more logs. Also check other comments

  • @rabiaminoie6508
    @rabiaminoie6508 4 года назад

    great ! simple explanation! but how to generate the report for mvn test

    • @RaghavPal
      @RaghavPal  4 года назад +1

      I will try to cover that Rabia

  • @sumanthbs2555
    @sumanthbs2555 4 года назад

    hi sir, im getting error saying Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin: please help

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Sumanth, you can try to add the following in the properties section of pom.xml
      1.8
      1.8
      Version can be updated as per your java ver
      stackoverflow.com/questions/42525139/maven-build-compilation-error-failed-to-execute-goal-org-apache-maven-plugins

  • @tinyevil1671
    @tinyevil1671 2 года назад

    Hey i followed the video but in the explorer there is no Maven Dependencies Lib why is that?

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi, which part is this referred to

  • @deepikaperiyasamy2950
    @deepikaperiyasamy2950 2 года назад

    Hii , i didn't get after run as comment from java application what I do ?

  • @knchshiva4228
    @knchshiva4228 5 лет назад

    When i created new project it is showing errors : could not calculate buildplan ; plugin execution not covered by life cycle configuration.. can u plz suggest me in latest eclipse version

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Shiva, you can try with latest eclipse from here - www.eclipse.org/downloads/

  • @vj5579
    @vj5579 4 года назад

    while running maven in command prompt it is giving build failure, but in eclipse working fine?

    • @RaghavPal
      @RaghavPal  4 года назад

      You may not have maven on your system. Pls check ruclips.net/p/PLhW3qG5bs-L8XkBrI-G5aTUo6QwEEoVcj

    • @vj5579
      @vj5579 4 года назад

      @@RaghavPal Maven is installed and also running, but it is giving build failure.

    • @RaghavPal
      @RaghavPal  4 года назад

      Okay, I may have to see the detailed setup. You can try some online help

    • @Believer1995ofGod
      @Believer1995ofGod 4 года назад

      @@RaghavPal just went through this problem. had to reset my computer because path variable was deleted.

  • @waqasbhatti4478
    @waqasbhatti4478 4 года назад

    i have created maven project in cmd but it is not working in netbeans and eclipse and inteliJ error is same of plugin

    • @RaghavPal
      @RaghavPal  4 года назад

      What is the error Waqas, will have to check logs to trouleshoot

  • @waqasbhatti4478
    @waqasbhatti4478 4 года назад

    i am getting error while creating maven project in eclipse mars "couldnot get the value of parameter plugin execution defalt"

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Waqas, pls check if this helps you - stackoverflow.com/questions/39926064/coreexception-could-not-get-the-value-for-parameter-compilerid-for-plugin-execu/41416449
      github.com/alexo/wro4j/issues/218

    • @waqasbhatti4478
      @waqasbhatti4478 4 года назад

      @@RaghavPal its very complicated

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Waqas, for now you will have to check diff solutions and troubleshoot.

    • @waqasbhatti4478
      @waqasbhatti4478 4 года назад

      @@RaghavPal it worked it was network issue

  • @kothamanideep1285
    @kothamanideep1285 4 года назад +1

    hi raghav
    Thanks for the video, i'm facing this issue, but i could not find the solution to resolve.
    D:\Users\KManidee\Files -programs\src\test\java>mvn clean
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 0.342 s
    [INFO] Finished at: 2020-06-15T12:57:17+05:30
    [INFO] ------------------------------------------------------------------------
    [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (D:\Users\KManidee\Files -programs\src\test\java). Please verify you invoked Maven from the correct directory. -> [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] cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
    It would be appreciated if you provide the solution ,When i run on the eclipse none of the error got displayed, when i run on CMD it is displaying the error as shown in the above.
    Thanks.

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi, first you have to change directory CD to the location of your project (or the location of pom.xml ) on command line
      Then run the mvn command.
      Let me know if you face any issues

  • @rajesh9615
    @rajesh9615 3 года назад

    hi i am pointing to the jdk only but its still showing the same error in cmd

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Something is missed or not setup properly, Pls try the setup again

  • @adamjoy8510
    @adamjoy8510 3 года назад

    Am take to maven project but not shown in file some errors is coming

    • @RaghavPal
      @RaghavPal  3 года назад

      what is the error Adam

  • @varshivarshi8333
    @varshivarshi8333 4 года назад

    Sis I didn't find src java folders in project explorer

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Varshi, it may be visible when you switch to package explorer. Even if you see it as a diff structure, you can continue with that

  • @lakshmikondaraavi
    @lakshmikondaraavi 4 года назад

    This vedio not visible to create maven project settings

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Lakshmi, which part exactly did you face issues

    • @lakshmikondaraavi
      @lakshmikondaraavi 4 года назад

      @@RaghavPal how to create maven project and add plugins are not visible on vedio sir

  • @shreyamehta8684
    @shreyamehta8684 4 года назад

    While executing these steps, it's showing nothing to compile. no test cases to run

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Shreya, make your the naming of your test class should be
      Test*.java
      *Test.java
      TestCase.java

  • @baloney_sandwich
    @baloney_sandwich 3 года назад

    u didnt' show how to build the run as configuration maven build etc...

    • @RaghavPal
      @RaghavPal  2 года назад

      I will check and if needed will add new sessions

  • @geethakrishna3524
    @geethakrishna3524 3 года назад

    What to do if we get below error message
    Though I have given dependency version above 7
    Can you please help me
    [INFO] Compiling 1 source file to C:\Users
    avak\Documents\Sailaja_Testing\helloworld_Sailu\target\test-classes
    [INFO] -------------------------------------------------------------
    [ERROR] COMPILATION ERROR :
    [INFO] -------------------------------------------------------------
    [ERROR] Source option 5 is no longer supported. Use 7 or later.
    [ERROR] Target option 5 is no longer supported. Use 7 or later.

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Geetha,
      If you are using simple maven java application then you can add these lines in you pom.xml properties tag .
      1.8
      1.8
      facingissuesonit.com/2021/05/08/maven-error-source-option-5-is-no-longer-supported-use-6-or-later/

  • @SanjeevKumar-Anagandula
    @SanjeevKumar-Anagandula 3 года назад

    System.out.print("Thanks Raghav Pal!");

    • @RaghavPal
      @RaghavPal  3 года назад

      most welcome Sanjeev

    • @SanjeevKumar-Anagandula
      @SanjeevKumar-Anagandula 3 года назад

      System.out.print("I hope getting more videos from your end, Please add documents of course wise in your website. It's very helpful to us. Thank you very much Raghav pal🤗😍!");

    • @SanjeevKumar-Anagandula
      @SanjeevKumar-Anagandula 3 года назад

      Hi Raghav, could you please make videos on jenkins by using WebLogic and payara tool.

    • @RaghavPal
      @RaghavPal  3 года назад +1

      I will plan Sanjeev

    • @SanjeevKumar-Anagandula
      @SanjeevKumar-Anagandula 3 года назад

      @@RaghavPal ASAP you can do it, Thank you Raghav...🙏🙏

  • @elbozo5723
    @elbozo5723 3 года назад

    it didnt work?

    • @RaghavPal
      @RaghavPal  3 года назад

      can check the logs and setup

  • @arunkumar-hd6zn
    @arunkumar-hd6zn 3 года назад

    voice is very low

    • @RaghavPal
      @RaghavPal  3 года назад

      I will improve the audio in coming videos Arun

  • @kedarjoshi5044
    @kedarjoshi5044 3 года назад

    Thank you Sir🙏

  • @niyatikhandelwal7017
    @niyatikhandelwal7017 4 года назад

    Amazing video!

    • @RaghavPal
      @RaghavPal  4 года назад

      Happy to know Niyati

  • @dalerkaur450
    @dalerkaur450 3 года назад

    Hi Raghav, I am getting an error while running selenium test from maven
    Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project PageObject: Compilation failure: Compilation failure:
    [ERROR] Source option 5 is no longer supported. Use 6 or later.
    [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Daler, pls check if this helps you
      Right Click on Project.
      Click on Build path.
      Click on Configure Build path.
      It opens a Java Build path window.
      Click on Java Compiler in the Left side.
      It navigates to Java Compiler window in that to set the Compiler compliance level is set as according to your jre version(ex if java version is 1.8 then choose 1.8) as select.
      Click on [Apply] button.
      Click on [OK] button.
      Right click on Project > Maven > Update the project.
      Right click on Project > Run As > Maven install -- The pom.xml file is running and java jars are download and installed to project.
      Right click on Project > Run As > Maven Test -- The pom.xml file is running and java jars are download and installed to project.
      stackoverflow.com/questions/53034953/error-source-option-5-is-no-longer-supported-use-6-or-later-on-maven-compile