Page MenuHomec4science

Learnathon2019
Updated 1,758 Days AgoPublic

IntelliJ nice way to duplicate an existing project

Have your base project open
From the project use Right ClickRefactorCopy...

Give it a new name and select the Parent Directory

IntelliJ creates it but does not open it automatically
Go to nav{File > Open...}
Select the folder with your new project, here new-project

Changes to reflect the new project properties

In the POM

To reflect the new project. Important fields are

  1. artifactId,
  2. name
  3. description
  4. main-class (in the properties tag)

In the FileProject Structure...

You can change the following things
Project Name

Module Name under Modules

The actual Java Class

Navigate to one of the Java Classes in your new project and hit
Right-clickRefactorRename...
And rename it to reflect your new project.

Nice things to have

If you want to have things getting copied to your Fiji installation when you hit install

<scijava.app.directory>C:/My_Fiji/</scijava.app.directory>
<scijava.app.subdirectory>plugins/My_Dir</scijava.app.subdirectory>

This should be between the <properties> tabs

Last Author
oburri
Last Edited
Jun 25 2019, 09:19

Event Timeline

oburri created this document.Jun 24 2019, 17:55
oburri edited the content of this document. (Show Details)
oburri edited the content of this document. (Show Details)
oburri edited the content of this document. (Show Details)
oburri published a new version of this document.
oburri edited the content of this document. (Show Details)Jun 25 2019, 09:19
oburri published a new version of this document.
oburri edited the content of this document. (Show Details)Jun 25 2019, 14:17
oburri edited the content of this document. (Show Details)Jun 25 2019, 14:27
oburri edited the content of this document. (Show Details)
oburri edited the content of this document. (Show Details)Jun 25 2019, 14:29