How to create a Maven java project in IntelliJ IDEA

IntelliJ IDEA: is a Java integrated development environment (IDE) for developing computer software. It is developed by JetBrains (formerly known as IntelliJ), and is available as an Apache 2 Licensed community edition and in a proprietary commercial edition. Both can be used for commercial development
Prerequisite Software:
1. Jdk download and install

2. IntelliJ IDEA download and install
3. Gradle distribution download and extract desired location
Create a Maven Java project in IntelliJ IDEA:

1.  File --> New --> Project
       a. Select 'Maven' from left sidebar, Set jdk path and Click 'Next' button

       b. Enter GroupId and ArtifactId, then Click 'Next' button

      c. Type Project name and set desired Project location which want to save project, finally Click 'Finish' button
   d. Choose an option to open project
e. Maven project created and download necessary things
3. Add gradle dependencies
     a.  Click View --> Tools Windows --> Maven
     b. Click on 'pom.xml' file from left sidebar (1) 
     c. Add desired dependency under <dependencies</dependencies>  (2)
   <dependencies>  
     <dependency>  
       <groupId>io.rest-assured</groupId>  
       <artifactId>rest-assured</artifactId>  
       <version>3.0.1</version>  
       <scope>test</scope>  
     </dependency>  
   </dependencies>  

        added upper dependencies for REST Assured
Note: Two https://mvnrepository.com/ and http://search.maven.org/ site where you will desired maven dependency    
         d. Click refresh button (3)  to import jar files and Synchronizing Changes in Maven Project


4. Add java package or class 
   a. add main project code : src --> main --> java
  b. add code testing main project : src --> test --> java



3 comments:

  1. This was so useful and informative. The article helped me to learn something new. Security Mobile alerts Chennai

    ReplyDelete
  2. It is very important to choose the right level of training. The HIPAA privacy officer and HIPAA security officer CANNOT take basic level training (2 hours). They need at least 20+ hours of training to have a clear understanding of privacy and security rule requirements. The basic reason for the non-compliance is that nobody in the company understands the complete requirement of rules. As a result, they are unaware of policy and procedure requirements, contingency plan, risk analysis, and audit. HIPAA compliance training will provide knowledge to a compliance officer to make company HIPAA compliant.
    HIPAA Privacy Officer

    ReplyDelete
  3. Roofing Company in CalgaryThe City of Calgary requires all Calgary roofers, independent contractor or companies, have a city license. A permit is required for each job and you should clarify with all estimates if the contractor will be obtaining that permit or if it is your responsibility. Again, clear communication and everything in writing is recommended when getting a Calgary roofing job on your home.

    ReplyDelete