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

archetypeArtifact helidon-quickstart-se in IDEA InteliJ #1963

Closed
rfelcman opened this issue Jun 10, 2020 · 4 comments · Fixed by #2023
Closed

archetypeArtifact helidon-quickstart-se in IDEA InteliJ #1963

rfelcman opened this issue Jun 10, 2020 · 4 comments · Fixed by #2023
Assignees
Labels
bug Something isn't working P1
Milestone

Comments

@rfelcman
Copy link

Environment Details

  • Helidon Version: 2.0.0-RC1
  • Helidon SE
  • JDK version: 11.0.7
  • OS: Linux (Debian 10)
  • Docker version (if applicable): N/A
  • IDEA InteliJ 2020.1.2

Problem Description

It seems, that IDEA InteliJ has problem with some Helidon dependencies in this case, or there is something wrong in Helidon parent POMs.

Steps to reproduce

  1. Create new project by
    mvn archetype:generate -DinteractiveMode=false -DarchetypeGroupId=io.helidon.archetypes -DarchetypeArtifactId=helidon-quickstart-se -DarchetypeVersion=2.0.0-RC1 -DgroupId=io.helidon.examples -DartifactId=Test01_InitialProject -Dpackage=io.helidon.examples.quickstart.se
  2. Import project into IDEA InteliJ (My version is 2020.1.2).
  3. Open pom.xml file by IDEA "Project manager"
  4. Move mouse cursor over "<project ...." element.
    Idea prints in the bubble:
    Unable to provision, see the following errors: 1) Error in custom provider, java.lang.TypeNotPresentException:
    Type io.helidon.build.dev.maven.MavenProjectConfigCollector not present at ClassRealm[extension>io.helidon.build-tools:helidon-maven-plugin:2.0.0-RC1,
    parent: sun.misc.Launcher$AppClassLoader@14ae5a5] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
    while locating org.apache.maven.AbstractMavenLifecycleParticipant 1 error
  5. "External Libraries" in InteliJ Project Manager are empty -> dependencies from pom are not loaded/detected by InteliJ. As a result IDEA code assistant doesn't work correctly too. IDEA thinks, that classes "io.helidon.*" are not in the classpath.
    Note: Helidon 1.4.4 or 2.0.0-M* works well.

It doesn't any negative impact to command line build. Command line build works well.

@romain-grecourt
Copy link
Contributor

CC @batsatt. This means we have to isolate the extension in a profile.

@romain-grecourt romain-grecourt added this to the 2.0.0 milestone Jun 10, 2020
@romain-grecourt
Copy link
Contributor

Must have for 2.0.

@rfelcman
Copy link
Author

I tried to delete InteliJ caches and restart IDE, but issue still remains there.

@romain-grecourt
Copy link
Contributor

romain-grecourt commented Jun 16, 2020

I cannot reproduce the error, but I believe the fix from #2023 is right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants