Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

When using parentheses around parameter values such as MAVEN_OPTS causes exception #6

@xyloman

Description

@xyloman

When using parentheses around parameter values such as MAVEN_OPTS causes exception where the maven wrapper is unable to find the main class. Example:

maven-params: &maven-params
  MAVEN_OPTS: ((maven.build.opts))
  MAVEN_CONFIG: ((maven.build.config))
  MAVEN_REPO_MIRROR: ((maven.mirror.url))
  MAVEN_REPO_USERNAME: ((maven.mirror.username))
  MAVEN_REPO_PASSWORD: ((maven.mirror.password))
  MAVEN_REPO_CACHE_ENABLE: true

And then then param.yml does not provide a value for maven.build.ops or provides the following:

maven:
  build:
    ops: 

Will result in the value null being passed to the MAVEN_OPTS instead of "" which results in an error when ever the ./mvnw command is executed in a task. For now we have modified to this syntax:

maven:
  build:
    ops: ""

which appears to work around the issue.

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