-
Notifications
You must be signed in to change notification settings - Fork 92
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
Auto complete for dependencies for pom.xml #195
Comments
Experiences in Java IDEsEclipse photonI don't see any completion for groupId or artifactId. IntelliJ IDEA 2018.3
Note that all the completion items are from local Maven repository. Every time you open a Maven project, it takes some time to update the Maven indices of your local repository. If you don't have an artifact installed into your local repository, it won't appear in the completion list. |
We need context info of current active pom.xml. E.g. we need to know current cursor position, and if it's located in an
|
The current implementation requires to find all pom files in local Maven Repo, which introduces extra CPU & IO overload. It depends on the size of the local Maven repo, and I'm not sure whether it will lead to performance deterioration. So I think we can disable it by default, and add a flag in settings to enable the feature. |
Artifact info from local maven repository can only provide limited help. Imagine a user who wants to add a some dependencies related with "docker", without installing it into local maven repository first, the users can not get related suggestions. So next step is to retrieve information from Maven central repo in real time. By the REST API provided, there's big chance to improve the experience. |
With PR #221 , it's able to consume data from Maven Central repository. TODO
|
The upstream issue is #47
An important feature to improve pom.xml editing experience is dependency auto-completion.
The basic use cases are:
<groupId>[cursor]</groupId>
, show a list of available group ids, e.g. from local maven repository.<artifactId>[cursor]</artifactId>
, show a list of available artifact ids according to the value of groupId.The text was updated successfully, but these errors were encountered: