diff --git a/components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/maven/GitpodMavenProjectManager.kt b/components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/optional/GitpodMavenProjectManagerListener.kt similarity index 66% rename from components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/maven/GitpodMavenProjectManager.kt rename to components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/optional/GitpodMavenProjectManagerListener.kt index 696ba4a2995a05..a6a686b3910c91 100644 --- a/components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/maven/GitpodMavenProjectManager.kt +++ b/components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/optional/GitpodMavenProjectManagerListener.kt @@ -2,18 +2,18 @@ // Licensed under the GNU Affero General Public License (AGPL). // See License-AGPL.txt in the project root for license information. -package io.gitpod.jetbrains.remote.maven +package io.gitpod.jetbrains.remote.optional import com.intellij.openapi.project.Project import org.jetbrains.idea.maven.project.MavenProjectsManager import com.intellij.openapi.diagnostic.thisLogger +import com.intellij.openapi.project.ProjectManagerListener -class GitpodMavenProjectManager(project: Project) { - - init { +class GitpodMavenProjectManagerListener : ProjectManagerListener { + @Deprecated("Deprecated. Need to findout the best way to replace it") + override fun projectOpened(project: Project) { thisLogger().warn("gitpod: forcing initialization of maven project") MavenProjectsManager.getInstance(project).forceUpdateAllProjectsOrFindAllAvailablePomFiles() thisLogger().warn("gitpod: forced!") } - } diff --git a/components/ide/jetbrains/backend-plugin/src/main/resources-latest/META-INF/extensions.xml b/components/ide/jetbrains/backend-plugin/src/main/resources-latest/META-INF/extensions.xml index 9df186909089fb..75be843a63235b 100644 --- a/components/ide/jetbrains/backend-plugin/src/main/resources-latest/META-INF/extensions.xml +++ b/components/ide/jetbrains/backend-plugin/src/main/resources-latest/META-INF/extensions.xml @@ -5,14 +5,12 @@ --> - org.jetbrains.idea.maven - - - - + + + diff --git a/components/ide/jetbrains/backend-plugin/src/main/resources/META-INF/plugin.xml b/components/ide/jetbrains/backend-plugin/src/main/resources/META-INF/plugin.xml index 5c3f2c6a3e8476..896fdeefbb5e4f 100644 --- a/components/ide/jetbrains/backend-plugin/src/main/resources/META-INF/plugin.xml +++ b/components/ide/jetbrains/backend-plugin/src/main/resources/META-INF/plugin.xml @@ -12,10 +12,10 @@ Gitpod Provides integrations within a Gitpod workspace. - com.intellij.modules.platform + org.jetbrains.idea.maven