Monday, April 27, 2020

How to copy a project inside itellij idea.

Like Eclipse you can't copy project in intellij idea . Here Step By Step approach to make new copy of existing project.

Step 1 : Create copy of project - use terminal or explorer and copy the project and rename it.

Step 2 : Switch back to idea and open new Project

             File -> Open -(navigate the location where project exist)->open

Step 3 : Rename .iml File suppose your old project name was test and new  name is test-java. but when you expand project test-java in IDE then you find test.iml file rename it to project name i.e. test-java.iml

Step 4 : Open pom.xml and rename artifactId to project name, to avoid any conflict.

Step 5 : Navigate main method and right click and run  - this will open a window



Step 6 : Check Two input


  • Use classpath of module : if it <no-module> change it to project name
  • JRE : check it correctly set
Now project Copy


No comments:

Post a Comment