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.
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 🙏🙏
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!
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!
@@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
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!
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!!
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?
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 -
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
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 --
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..
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
*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.
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 ..
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
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?
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?
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.
@@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.
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?
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
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!
@@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 :)
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
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
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
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.
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
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.
Glad to know this Prashant
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 🙏🙏
So happy that it helped you..
Thank you. My knowledge increased little more today
I'm glad.. keep learning
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!
Hi Lanziying, Most welcome
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
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!
@@RaghavPal Thank you sir ! it really helped me to solve the issue!!
Author, you are the best!
With gratitude from Russia))
Most welcome
Hello
Search for artifact not showing any dependency whts the problem please tell me
Not sure Sandip, pls check if all steps are followed, can try some online help
@@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
not very sure Sandip, can try to restart and check or can do all steps again on a diff ver
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
Thanks a lot
Great explanation from Italy
Thanks a lot
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!
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!!
thanks for helping Jerónimo
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?
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
-
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
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
--
Thanks raghav for detailed explanation!
thanks sir it was short and very usefull
Most welcome Raghuveer
Hi can u please let me know how did u place jnit in the dependencies folder ??? What is the process
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..
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
*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.
When I am trying to create Mavan project, using the mentioned steps, src folder is not getting created. Please suggest.
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
..
in community version how u get option to create maven project i have maven archtype
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
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?
Hi Marcus, I will try to address this in a session
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?
Hi Atul, where exactly do you get this, did you try "mvn install" command
@@RaghavPal It resolved, I was using install cmd from plugins section but should've used from Lifecycle
What software do you use to display the yellow rectangle shown in your video ?
Hi Maxim, it's mac annotation tools
very nice video! thank you sir!
Most welcome Prisca
Hello thanks for this video as follow step as you told me in the video I have added dependency and got an error
Gayatri
Can you please share the exact error message and the dependency you added, so I can help!
If I add junit my intellij is failed to saving .. how do I delete JUNIT generator ?
Not sure Adinga, will need to check online
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.
Check the syntax, have you copied the dependency from mvn repository - mvnrepository.com/
@@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.
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?
hi Alfredo, I am not too sure and will need to check in detail to troubleshoot
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
Will try
Thank you so much! Excellent explanation.
You're very welcome!
How to create jar file? Is it same as build architecture or maven has something special?
Hi, can check this - th-cam.com/video/366yZeN_4bU/w-d-xo.html
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!
You can create a folder anywhere in your system where you have all access
@@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 :)
Can take some help from here th-cam.com/video/Orn8cP1yRJc/w-d-xo.html
4:58 a Gradle elephant icon mysteriously appears
ok, i will check
simple and easy to understand ,
thank you
Most welcome Shashi
Good job from Egypt
Thanks a lot Islam
After adding the dependency it is still in red , what can be the issue?
Hi, will need to check the details and logs
intellij does not creat src folder and pom.xml is empty ! any solution please ?
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
Sir how to close the previous project that i have already opened
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
Very good videos.
Thanks
Thank you Raghav!
Most welcome Suresh
Thank you for share it with us!
My pleasure!
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
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
Can you make a video about how to use serenity boilerplate?
I will plan Uti
@@RaghavPal Thank you, sir!
How we can add more dependencies??????
Can add in pom.xml
my pom.xml is empty and there's no src folder :(
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.
Cannot tranfer artifact's
Connection refused
These errors coming
will need to check online on this
bro where is the main class, where can I write code
Hi, what part (time) is this referred to. You can try some online examples
I am not able to find src folder
Ram
let me know exactly which step .. can give me timestamp from video
Thank you!
Most welcome Amanda
sir how to save the pom.xml file
Hi Shreyansh, pom.xml file gets created when you create a Maven project
www.jetbrains.com/help/idea/maven-support.html
Hi guru can you make video on
migration of database data
I will plan
Raghav need video on intellij using spock groovy
I do not have it
Thank you man !
You're welcome Rishabh
It showing of error like unresolved pluggin
Hi Nantha, will need to check
the project has 1 error why it show me this?
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
Thank you
Most welcome Spandana
thank you , sir
Most welcome Brian
Thanks!!!
Most welcome Daniela
love you....
Thanks for watching
and how to run?????????????
pls let me know where exactly you faced issue
clear :)
happy to know
Thanks
Most welcome
thank you
most welcome