mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
eaf5479e9c
Avoid maven error `Unknown lifecycle phase \"-\"` when the value of a define contains `-`. Don't split and trim maven arguments. Expect they come in as a list, keep them as list. This is a breaking change compared to the old Groovy implementation which relied on using a shell for calling maven. As an example, consider this diff: ```diff - goals: 'org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate', - defines: "-Dexpression=$pomPathExpression -DforceStdout -q", + goals: ['org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate'], + defines: ["-Dexpression=$pomPathExpression", "-DforceStdout", "-q"], ``` |
||
---|---|---|
.. | ||
ArtifactVersioningTest.groovy | ||
DockerArtifactVersioningTest.groovy | ||
DubArtifactVersioningTest.groovy | ||
GolangArtifactVersioningTest.groovy | ||
MavenArtifactVersioningTest.groovy | ||
MtaArtifactVersioningTest.groovy | ||
NpmArtifactVersioningTest.groovy | ||
PipArtifactVersioningTest.groovy | ||
SbtArtifactVersioningTest.groovy |