Skip to content

[Bug]: Nessie Project Name Breaks Eclipse Import #11178

@huw0

Description

@huw0

What happened

My assumption is that it should be possible to import the Nessie repo into the Eclipse IDE? While this IDE is not as popular as it once was, Nessie does specifically use the Eclipse plugin.

Importing the source of the latest release fails with an error:

Description	Resource	Path	Location	Type
Path for project must have only one segment but has 2: /Nessie 0.104.4 [in ../nessie-nessie-0.104.4]	nessie-nessie-0.104.4		line 0	Gradle Problem

Importing the source from git returns:

Description	Resource	Path	Location	Type
Project at '/path/to/Nessie' can't be named 'Nessie 0.104.4 [in ../Nessie]' because it's located directly under the workspace root. If such a project is renamed, Eclipse would move the container directory. To resolve this problem, move the project out of the workspace root or configure it to have the name 'Nessie'.	Nessie		line 0	Gradle Problem

Eclipse is very sensitive to folder naming. Commenting out this line in build-logic/src/main/kotlin/nessie-conventions-root.gradle.kts resolves the problem.

eclipse { project { name = ideName } }

However I'm not sure if this is the preferred solution?

How to reproduce it

  1. Extract the downloaded Nessie tarball or clone the git repo
  2. Comment the eclipse project name line in build-logic/src/main/kotlin/nessie-conventions-root.gradle.kts listed above.
  3. Import the project via File -> Gradle -> Existing Gradle Project
  4. Observe that the import fails

Nessie server type (docker/uber-jar/built from source) and version

N/A

Client type (Ex: UI/Spark/pynessie ...) and version

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions