Skip to content

Galleon 6.0.0+ not running in docker image - Failed to resolve Maven universe org.jboss.universe:community-universe #349

Open
@rombow

Description

@rombow

Reproducing:

  1. run docker, like debian slim
  2. download and unpacking galleon 6.0.0+
  3. run: galleon/bin/galleon.sh install wildfly:current#32.0.1.Final

Error:
`Error: org.jboss.galleon.universe.maven.MavenUniverseException: Failed to resolve Maven universe org.jboss.universe:community-universe

  • Failed to resolve Maven universe org.jboss.universe:community-universe
  • Failed to determine the latest version of org.jboss.universe:community-universe:jar:[0.0,). Make sure the remote Maven repository is properly configured and available.`

Problem is in code:

repoPath = new StringBuilder(PropertyUtils.getSystemProperty("user.home")).append(File.separatorChar)

this uses PropertyUtils.getSystemProperty("user.home") which is not set correctly in the docker image

I think a better solution would be to use the $HOME environment or similar, or maybe try to set "user.home" in the galleon.sh script.

Current workaround is set manually:
JAVA_OPTS=-Duser.home=$HOME galleon/bin/galleon.sh install wildfly:current#32.0.1.Final

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