-
Notifications
You must be signed in to change notification settings - Fork 46
Labels
enhancementNew feature or requestNew feature or requestintellijIntelliJ IDE from Jet-BrainsIntelliJ IDE from Jet-BrainsrepositoryCommandlet to clone, build or import git repositoriesCommandlet to clone, build or import git repositories
Description
As described in #1164 we want to have automatic project import also for IntelliJ.
Hint: via repository configuration and by setting import=intellij
this feature should be triggered.
Currently it is not implemented at all.
IDEasy/cli/src/main/java/com/devonfw/tools/ide/tool/ide/IdeToolCommandlet.java
Lines 111 to 114 in bbe3a82
public void importRepository(Path repositoryPath) { | |
throw new UnsupportedOperationException("Repository import is not yet implemented for IDE " + this.tool); | |
} |
In Intellij class this method needs to be overridden and implemented properly.
I could not find any CLI feature in IntelliJ to archive this. Therefore this task is a little tricky.
My suggestion would be to do that manually:
- Create a backup of your
workspaces/main/.intellij
andworkspaces/main/.idea
folders - Open your IntelliJ (
ide intellij
) - Manually import the project by right-clicking the
pom.xml
in your repository folder inside the workspace (workspaces/main/«my-repo»/pom.xml
) and selecting+ Add as Maven project
from the context menu - in case we want to support this first for maven (for gradle usebuild.gradle
). - Check that your project is now properly recognized and build by IntelliJ (what we consider as "imported")
- Close your IntelliJ
- Do a recursive diff of the backup (from step 1.) with the current state of the IJ config in your workspace
- Identify the relevant difference(s) in the config file(s)
- Implement the
importRepository
method to apply that changes in the according intellij configuration file(s).
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestintellijIntelliJ IDE from Jet-BrainsIntelliJ IDE from Jet-BrainsrepositoryCommandlet to clone, build or import git repositoriesCommandlet to clone, build or import git repositories
Type
Projects
Status
🏗 In progress