The easiest explanation I have ever seen on a video tutorial. Before this tutorial , I had no clue what is Maven and pom.xml was a mysterious file and now I have a fair understanding.
@RaghavPal2 жыл бұрын
Glad to know this Prashant
@Tekiborg-Being_imaging_doing8 ай бұрын
You are just great man, i got stuck in a loop of just watching and searching solution for maven errors, Thank You for your kind and simple explanation 🙏🙏
@RaghavPal8 ай бұрын
So happy that it helped you..
@GatsbyLee-vd2me9 күн бұрын
Thank you. My knowledge increased little more today
@RaghavPal8 күн бұрын
I'm glad.. keep learning
@lanziyingluo2816 Жыл бұрын
Amazing tutorial video! I was trying to apply spark framework to finish my homework and got stuck on start a Maven project until watching this! Thank you!
@RaghavPal Жыл бұрын
Hi Lanziying, Most welcome
@korvinfromamber792 жыл бұрын
Author, you are the best! With gratitude from Russia))
@RaghavPal2 жыл бұрын
Most welcome
@byggaribhavani15612 жыл бұрын
Very good explanation i have seen many videos but I didn't get any clarity.By seeing ur video i have clarity TQ bro. Pls do more projects
@RaghavPal2 жыл бұрын
Thanks a lot
@RiccardoProcopio2 жыл бұрын
Great explanation from Italy
@RaghavPal2 жыл бұрын
Thanks a lot
@jainanup4025 ай бұрын
Do we need to update to Remote repository under setting>> build..>>maven >> Repositories? I cld not find any repository when search for selenium or junit
@RaghavPal5 ай бұрын
Anup Let's address both parts of your question: 1. Updating Remote Repository in Maven: - In Maven, the local repository (usually located in the `.m2` folder) stores downloaded dependencies. However, sometimes this repository can become corrupted due to network glitches or interrupted downloads. - To force-update the local repository, you can use the `-U` or `--update-snapshots` option with Maven commands. For example: ``` mvn package -U mvn install -U ``` - This ensures that Maven re-downloads any corrupted SNAPSHOT dependencies. - Additionally, consider running the update in debug mode (`-X`) to get more information about the process. 2. Finding Selenium and JUnit Dependencies: - Selenium and JUnit are popular libraries for test automation. - To include them in your Maven project, add the following dependencies to your `pom.xml` file: ```xml org.seleniumhq.selenium selenium-java 3.141.59 org.junit.jupiter junit-jupiter-api 5.10.0 test ``` - You can find the latest versions of these dependencies in the Maven Central Repository: - Selenium: - JUnit 5: Remember to adjust the versions according to your project's requirements --
@jainanup4025 ай бұрын
Thanks raghav for detailed explanation!
@raghuveerpatiyal6939 Жыл бұрын
thanks sir it was short and very usefull
@RaghavPal Жыл бұрын
Most welcome Raghuveer
@camillevillanueva93122 жыл бұрын
Hi. the IntelliJ IDEA that I'm using has Maven Archetype and I have to choose an archetype before I can proceed in creating a Maven project. Do you know what archetype should I use? or how do I need to fix something on my IntelliJ IDEA to just show Maven option instead of Maven Archetype? Thanks in advance!
@jeronimoadamo87472 жыл бұрын
you must've gotten it by now but if not, simply create normal project then you'll se that in the next window it lets you choose to create it with maven structure. That creates a regular maven project, no funny archetype stuff. LATES BRAH!!
@RaghavPal2 жыл бұрын
thanks for helping Jerónimo
@sbpremtej505310 ай бұрын
Hi. I would like to know how we can link this with our application paths ?? Can u explain more on running the Java code and custom Java code. For jar file creation
@RaghavPal10 ай бұрын
*I'll provide a comprehensive explanation, incorporating images where appropriate:* *Linking Rest Assured with Application Paths:* - *Specifying Base URI:* - Set the `baseURI` property to your application's base URL: ```java RestAssured.baseURI = "localhost:8080/myapp"; ``` - *Defining Relative Paths:* - Build requests using relative paths from the base URI: ```java Response response = RestAssured.get("/users"); // Fetches data from /users endpoint ``` - *Using Dynamic Parameters:* - Employ path parameters for flexibility: ```java Response userResponse = RestAssured.get("/users/{userId}", 123); // Fetches user 123 ``` *Running Java Code:* - *Using an IDE:* - Create a Java project and write your code. - Execute it directly within the IDE (e.g., right-click and select "Run"). - *Using Command Line:* - Compile using javac: ```bash javac MyRestAssuredTest.java ``` - Run using java: ```bash java MyRestAssuredTest ``` *Creating a JAR File:* 1. *Structure Your Code:* - Organize classes and resources within a logical folder structure. 2. *Manifest File:* - Create a manifest file (META-INF/MANIFEST.MF) specifying the main class: ``` Main-Class: com.example.MyRestAssuredTest ``` 3. *Jar Command:* - Use the jar command to create the JAR file: ```bash jar cvfm MyRestAssuredTest.jar META-INF/MANIFEST.MF . ``` *Running a JAR File:* - *Double-click:* If associated with Java, double-click to run. - *Command Line:* ```bash java -jar MyRestAssuredTest.jar ``` *Additional Tips:* - *Build Automation Tools:* Consider Maven or Gradle for dependency management and JAR creation. - *Integrated Development Environments (IDEs):* Most IDEs provide built-in support for JAR creation and execution. - *Thorough Testing:* Ensure your code functions as expected before creating a final JAR file.
@sbpremtej505310 ай бұрын
Hi can u please let me know how did u place jnit in the dependencies folder ??? What is the process
@RaghavPal10 ай бұрын
Prem Here's how to place JUnit in the dependencies folder in IntelliJ IDEA: 1. Open Project Structure: - Go to File > Project Structure (or press Ctrl+Alt+Shift+S on Windows/Linux or ⌘+; on macOS). 2. Navigate to Modules: - In the Project Structure window, select Modules in the left-hand pane. 3. Select Dependencies Tab: - Click on the Dependencies tab. 4. Add JUnit Dependency: - Click the + button in the top-right corner. - Choose Library from the options. 5. Search for JUnit: - In the search bar, type "JUnit". - Select the appropriate JUnit version (e.g., JUnit4 or JUnit5). - Click Add. 6. Verify Placement: - JUnit should now appear under the External Libraries section in the Project Structure window. 7. Download Automatically (if needed): - If the library isn't already downloaded, IntelliJ IDEA will prompt you to download it. Additional Notes: - Maven or Gradle Projects: If using Maven or Gradle, you can often add JUnit directly in the build configuration file (pom.xml or build.gradle) and let the build tool handle the dependency. - Existing Projects: If JUnit is already present in your project but not in the dependencies folder, you can right-click on it and choose "Add as Library" to move it to the appropriate location. Now you're ready to use JUnit in your project for writing and executing unit tests..
@ShannaWeimann4 ай бұрын
My IntelliJ IDEA doesn't show the new projects option Maven and I have installed Maven in my software but doesn't show it yet. I just can select Maven arquetype. Can you help me please?
@RaghavPal4 ай бұрын
Shanna If IntelliJ IDEA isn't displaying the Maven tool window, follow these steps: 1. Check Maven Plugin: First, ensure that the Maven plugin is enabled. Go to `File → Settings → Plugins → Maven Integration` and make sure it's active 2. Add as Maven Project: Right-click on your `pom.xml` file (usually located in the root directory of your project) and select "Add as Maven Project" from the context menu. This action associates your project with Maven and should reveal the Maven tool window 3. Restore Default Layout: If the issue persists, try resetting the IDE windows. Go to `Window → Restore Default Layout`. These steps should help you access the Maven tool window in IntelliJ IDEA -
@rutujakulkarni49108 ай бұрын
When I am trying to create Mavan project, using the mentioned steps, src folder is not getting created. Please suggest.
@RaghavPal8 ай бұрын
Rutuja If you're creating a Maven project in IntelliJ IDEA, and the `src` folder is not being generated, there are a few steps you can take to resolve this issue: 1. Check Maven Path and JDK: - First, ensure that your Maven path is set correctly. You can verify this by running the following command in your terminal: ``` mvn --version ``` - Also, check if your Maven installation is pointing to the correct JDK (Java Development Kit). - If both the Maven path and JDK are correctly set, proceed to the next step. 2. Import Project from POM: - Open IntelliJ IDEA and close any existing project. - From the Welcome screen, click "Import Project". - Navigate to the `pom.xml` file of your Maven project. This action should automatically set up the project structure, including the `src` folder. 3. Manually Set Source Root: - If the above steps don't work, you can manually set the source root for your project: - Right-click on the `java` directory (inside `src/main`) and select "Mark Directory as" > "Source Root". - This action tells IntelliJ IDEA that the `java` directory contains your Java source code. 4. Gradle Projects: - If you're working with a Gradle project, you might encounter a similar issue. In that case: - Go to File > Settings (or Preferences on macOS). - Navigate to Build, Execution, Deployment > Build Tools > Gradle. - Check the option "Create directories for empty content roots automatically". 5. Ignore a Maven Project (Optional): - If you want to deactivate a Maven project temporarily, you can use the "Ignore Projects" option in IntelliJ IDEA ⁵. Remember to refresh your project after making any changes ..
@sureshgarine Жыл бұрын
Thank you Raghav!
@RaghavPal Жыл бұрын
Most welcome Suresh
@biren86652 жыл бұрын
Hi Raghav...Thanks for all ur videos...One Request:- Can u pls show how to setu setting.xml file in maven given by company when we join new company in IntelliJ
@RaghavPal2 жыл бұрын
Will try
@sandipsonaronline55702 жыл бұрын
Hello Search for artifact not showing any dependency whts the problem please tell me
@RaghavPal2 жыл бұрын
Not sure Sandip, pls check if all steps are followed, can try some online help
@sandipsonaronline55702 жыл бұрын
@@RaghavPal sir when I am trying to insert code from code generator there is artifact opetion right so there not a single dependecy shown so how to add dependencies in it
@RaghavPal2 жыл бұрын
not very sure Sandip, can try to restart and check or can do all steps again on a diff ver
@priscaneema3308 Жыл бұрын
very nice video! thank you sir!
@RaghavPal Жыл бұрын
Most welcome Prisca
@yasincnar166 Жыл бұрын
Very good videos.
@RaghavPal Жыл бұрын
Thanks
@tojo15982 жыл бұрын
How to create jar file? Is it same as build architecture or maven has something special?
@RaghavPal2 жыл бұрын
Hi, can check this - kzbin.info/www/bejne/aWeZqo2bg8RnmLc
@islamlotfy16963 жыл бұрын
Good job from Egypt
@RaghavPal3 жыл бұрын
Thanks a lot Islam
@rushikanekar8448 Жыл бұрын
in community version how u get option to create maven project i have maven archtype
@RaghavPal Жыл бұрын
Hi Rushi Here are the steps on how to create a Maven project in IntelliJ IDEA Community Edition: 1. Open IntelliJ IDEA and create a new project. 2. In the **New Project** dialog, select **Maven** as the project type. 3. In the **Project SDK** field, select the Java SDK that you want to use for your project. 4. In the **Archetype** field, enter the name of the Maven archetype that you want to use. You can find a list of Maven archetypes on the Maven website: maven.apache.org/archetypes/index.html. 5. Click **Next**. 6. In the **Project Details** dialog, enter the name and location of your project. 7. Click **Finish**. Once you have created your Maven project, you will be able to see the Maven archetype that you selected in the **Project Structure** dialog. You can also see the Maven dependencies that are included in your project. Here are some additional tips for creating Maven projects in IntelliJ IDEA Community Edition: * You can use the **Maven Archetype Catalog** to browse a list of available Maven archetypes. * You can use the **Maven Project Wizard** to create a Maven project from scratch. * You can use the **Maven Integration** plugin to integrate Maven with IntelliJ IDEA. I hope this helps
@maximzgardan8745 Жыл бұрын
What software do you use to display the yellow rectangle shown in your video ?
@RaghavPal Жыл бұрын
Hi Maxim, it's mac annotation tools
@marcusbighouse2 жыл бұрын
I'm new to maven, and came to this beginner tutorial. I did everything but the main question to me is: why did I do all this? What was the purpose of this? To me it was just a tool to create a xml file with config instructions to add a bunch of folders and jars... for what exactly?
@RaghavPal2 жыл бұрын
Hi Marcus, I will try to address this in a session
@jskr4562 жыл бұрын
simple and easy to understand , thank you
@RaghavPal2 жыл бұрын
Most welcome Shashi
@LampoWare2 жыл бұрын
Thank you so much! Excellent explanation.
@RaghavPal2 жыл бұрын
You're very welcome!
@brunosuperman2 жыл бұрын
Thank you for share it with us!
@RaghavPal2 жыл бұрын
My pleasure!
@ajinkyavasht9512 Жыл бұрын
sir 1:49 this option "Maven" is not showing in my IntelliJ IDEA it is just showing "Maven Archetype" under Generators section what should i do
@RaghavPal Жыл бұрын
Hi Ajinkya There are a few things you can do if the "Maven" option is not showing in your IntelliJ IDEA: 1. *Check if Maven is installed and configured* Maven is a build automation tool that is used to manage Java projects. It is not installed by default with IntelliJ IDEA. To install Maven, you can download it from the Maven website. Once Maven is installed, you need to configure it in IntelliJ IDEA. To do this, go to File > Settings > Build, Execution, Deployment > Build Tools > Maven and enter the path to the Maven installation directory. 2. *Check if the Maven plugin is enabled* The Maven plugin is a plugin for IntelliJ IDEA that provides support for Maven projects. It is not enabled by default. To enable the Maven plugin, go to File > Settings > Plugins and search for "Maven". Check the box next to "Maven" to enable the plugin. 3. *Restart IntelliJ IDEA* Sometimes, restarting IntelliJ IDEA can resolve issues with the Maven plugin. If you have checked all of these things and the "Maven" option is still not showing, you can try contacting the IntelliJ IDEA support team for help. Here are some additional tips for troubleshooting Maven issues: *Check the Maven logs* The Maven logs can provide valuable information about what is happening when you are using Maven. You can view the Maven logs by opening the Maven console *Check the Maven configuration* The Maven configuration can be found in the `settings.xml` file. This file is located in the `.m2` directory, which is located in your home directory. *Check the Maven repository* The Maven repository is where Maven downloads and stores dependencies. You can check the Maven repository by opening the Maven repository manager I hope this helps!
@ajinkyavasht9512 Жыл бұрын
@@RaghavPal Thank you sir ! it really helped me to solve the issue!!
@atulwadhwa1922 жыл бұрын
I'm getting this error. "Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-cli) on project Mavin_tut: The packaging for this project did not assign a file to the build artifact " Tell me what to do?
@RaghavPal2 жыл бұрын
Hi Atul, where exactly do you get this, did you try "mvn install" command
@atulwadhwa1922 жыл бұрын
@@RaghavPal It resolved, I was using install cmd from plugins section but should've used from Lifecycle
@uti8943 жыл бұрын
Can you make a video about how to use serenity boilerplate?
@RaghavPal3 жыл бұрын
I will plan Uti
@uti8943 жыл бұрын
@@RaghavPal Thank you, sir!
@arthiraju74882 жыл бұрын
Raghav need video on intellij using spock groovy
@RaghavPal2 жыл бұрын
I do not have it
@adingathamsaakanna69472 жыл бұрын
If I add junit my intellij is failed to saving .. how do I delete JUNIT generator ?
@RaghavPal2 жыл бұрын
Not sure Adinga, will need to check online
@pujasaha54522 жыл бұрын
Hi Raghav..Wen I am trying to add any dependency in POM.xml in intellij getting error as "Dependency not found". Tried changing the version but did not get any success.
@RaghavPal2 жыл бұрын
Check the syntax, have you copied the dependency from mvn repository - mvnrepository.com/
@JuazNeto Жыл бұрын
@@RaghavPal I'm having the same problem, I'm trying to add dependency and selecting JUnit junit:junit. The current version is 4.13.2. I'm not copying anything, just adding the first JUnit dependency. And once I add, I get an error saying the dependency 'junit:junit:4.13.2' not found. Then points to the like in code that says this: junit and this 4.13.2 The path is correctly set and being recognized in cmd too. Edit: I tried many things and it didn't import at all. Then I changed to eclipse and installed Maven (Java EE) Integration for Eclipse WTP (Luna/Mars) from the marketplace. Now it finally added everything. IntelliJ is also working after it too.
@ruddradas79702 жыл бұрын
Sir how to close the previous project that i have already opened
@RaghavPal2 жыл бұрын
Your projects display on the side bar, you can just close the project files/code opened in editor or can also find options when you do a right click on project folder
@Moe.firouzabadi2 жыл бұрын
intellij does not creat src folder and pom.xml is empty ! any solution please ?
@RaghavPal2 жыл бұрын
this can help www.reddit.com/r/IntelliJIDEA/comments/tydcto/maven_doesnt_create_src_folder_and_leaves_pomxml/ stackoverflow.com/questions/49710330/src-folder-not-created-when-creating-simple-intellij-java-gradle-project
@karlervincompuesto78993 жыл бұрын
Hello, i would like to ask which folder will i use so that i can start creating my automation script? Unlike eclipse the folder structure is not the same. Thanks!
@RaghavPal3 жыл бұрын
You can create a folder anywhere in your system where you have all access
@karlervincompuesto78993 жыл бұрын
@@RaghavPal thanks for answering :)... by the way if its not too much too ask, im currently working on creating an automation framework using intellij + maven and im having a hardtime composing its folder structure unlike with eclipse that it is already arranged properly. Do you have any tips on how to start? Thank you in advance :)
@RaghavPal3 жыл бұрын
Can take some help from here kzbin.info/www/bejne/haPRaZaGZt6FgMU
@KavitayeinKahaaniyaan2 жыл бұрын
After adding the dependency it is still in red , what can be the issue?
@RaghavPal2 жыл бұрын
Hi, will need to check the details and logs
@bstdnser2 жыл бұрын
As for the dependencies in most cases I see ${basedir} used but in case when i run a install to create a jar I get it shouldnt point to a file within the project and will be unresolvable by dependent projects is this a maven issue?
@RaghavPal2 жыл бұрын
hi Alfredo, I am not too sure and will need to check in detail to troubleshoot
@kasipalivela97873 жыл бұрын
Hi Raghav I'm 2016 passed out i want start my career in Software testing is it possible to start my career as a fresher and how can I prepare it, please suggest me how can I start my preparation sir
@RaghavPal3 жыл бұрын
Hi Kasi, yes you can start, do you have any exp or background, what have you been doing in past year, I will accordingly guide you
@amandamsantos3 жыл бұрын
Thank you!
@RaghavPal3 жыл бұрын
Most welcome Amanda
@pujamenghare37622 жыл бұрын
How we can add more dependencies??????
@RaghavPal2 жыл бұрын
Can add in pom.xml
@rishabhsharma72612 жыл бұрын
Thank you man !
@RaghavPal2 жыл бұрын
You're welcome Rishabh
@lillol3245 Жыл бұрын
bro where is the main class, where can I write code
@RaghavPal Жыл бұрын
Hi, what part (time) is this referred to. You can try some online examples
@NexusBaum Жыл бұрын
my pom.xml is empty and there's no src folder :(
@RaghavPal Жыл бұрын
Hi If your Maven project is created without a pom.xml file or src folder, you can follow these steps to fix the issue: Right-click on your project folder in the Project Explorer pane in IntelliJ IDEA. Select New from the context menu. Click on File. In the "New File" dialog box, enter pom.xml in the "Name" field and click on "OK". Copy and paste the following code into the pom.xml file: 4.0.0 com.example my-app 1.0-SNAPSHOT Save the file and exit. Right-click on the project folder and select New -> Directory. In the "New Directory" dialog box, enter src/main/java in the "Name" field and click on "OK". Create your Java classes in the src/main/java folder. Right-click on the project folder and select New -> Directory. In the "New Directory" dialog box, enter src/test/java in the "Name" field and click on "OK". Create your test classes in the src/test/java folder. Now you have a basic Maven project structure with the pom.xml file and src folders for both main and test classes.
@lenabarlow6 ай бұрын
4:58 a Gradle elephant icon mysteriously appears
@RaghavPal6 ай бұрын
ok, i will check
@spandanasb73672 жыл бұрын
Thank you
@RaghavPal2 жыл бұрын
Most welcome Spandana
@RamshankerSingh-r2e9 күн бұрын
I am not able to find src folder
@RaghavPal8 күн бұрын
Ram let me know exactly which step .. can give me timestamp from video
@hari70272 жыл бұрын
Cannot tranfer artifact's Connection refused These errors coming
@RaghavPal Жыл бұрын
will need to check online on this
@fsdinterviewguide3 жыл бұрын
Hi guru can you make video on migration of database data
@RaghavPal3 жыл бұрын
I will plan
@shreyanshprajapati20222 жыл бұрын
sir how to save the pom.xml file
@RaghavPal2 жыл бұрын
Hi Shreyansh, pom.xml file gets created when you create a Maven project www.jetbrains.com/help/idea/maven-support.html
@comradearthur39773 жыл бұрын
thank you , sir
@RaghavPal3 жыл бұрын
Most welcome Brian
@thething6268 Жыл бұрын
love you....
@RaghavPal Жыл бұрын
Thanks for watching
@edenyevish49002 жыл бұрын
the project has 1 error why it show me this?
@RaghavPal2 жыл бұрын
will need to check the error details, check if this helps intellij-support.jetbrains.com/hc/en-us/community/posts/206186659-Module-compiles-but-editor-shows-compilation-issues