Skip to content

[Console] EnvInitializer skips Maven local repo creation when directory is missing #4378

Description

@shangeyao

Problem

EnvInitializer.createMvnLocalRepoDir() only calls mkdirs when the Maven local repository path already exists, so a missing directory is never created on first startup.

Expected

Create the Maven local repository directory when it does not exist, consistent with other workspace directories initialized by EnvInitializer.

Proposed fix

Use FsOperator.lfs().mkdirsIfNotExists(localMavenRepo) instead of the inverted exists check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions