Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use m2e to import "this" project #18

Closed
nedtwigg opened this issue Dec 6, 2022 · 2 comments
Closed

Use m2e to import "this" project #18

nedtwigg opened this issue Dec 6, 2022 · 2 comments
Labels
enhancement New feature or request plugin-maven

Comments

@nedtwigg
Copy link
Collaborator

nedtwigg commented Dec 6, 2022

When using the Maven plugin, the default install will include m2e and a fresh import of the current project.

This is required for Equo IDE to hit 1.0 levels of usability.

@nedtwigg
Copy link
Collaborator Author

m2e is now in the version catalog and mostly working (some tweaks to come re: #96).

We need to add an m2eCompileOnly

def PLUGIN_SHIMS = ['welcome', 'buildship']

into 'buildshipCompileOnly', {
p2repo 'https://download.eclipse.org/eclipse/updates/4.26/'
install 'org.eclipse.platform.ide.categoryIU'
install 'org.eclipse.releng.java.languages.categoryIU'
p2repo 'https://download.eclipse.org/buildship/updates/e423/releases/3.x/3.1.6.v20220511-1359/'
install 'org.eclipse.buildship.feature.group'
}

Then create an IDE hook for it

https://github.com/equodev/equo-ide/blob/4d695181845f8e457191769b30151f9bdccdc99f/solstice/src/main/java/dev/equo/ide/IdeHookBuildship.java

https://github.com/equodev/equo-ide/blob/4d695181845f8e457191769b30151f9bdccdc99f/solstice/src/buildship/java/dev/equo/ide/BuildshipImpl.java

And then hook it into the Maven DSL using something similar to this

public GradleBuildship(String urlOverride, Project project) {
super(Catalog.GRADLE_BUILDSHIP, urlOverride);
ideHook =
new IdeHookBuildship(
project.getProjectDir(), project.getGradle().getStartParameter().isOffline());
}
@Override
protected List<IdeHook> ideHooks() {
return List.of(ideHook);
}

@nedtwigg
Copy link
Collaborator Author

Shipped in plugin-maven 1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plugin-maven
Projects
None yet
Development

No branches or pull requests

1 participant