You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maven can be configured using a file .mvn/maven.config to define system parameters which will be passed to every mvn command.
Why it needs to be done
In CWA-Server a property revision is defined in pom.xmls.
This property needs to be resolved using OpenRewrite.
Looking into getPom().getValue(...) showed that only some standard properties are resolved by their keys and if these are not found it's looked up using System.getProperty().
The simplest way to allow a lookup using getValue() would be to add all system properties defined in .mvn/maven.config as system properties during parsing.
What needs to be done
Maven can be configured using a file
.mvn/maven.config
to define system parameters which will be passed to everymvn
command.Why it needs to be done
In CWA-Server a property
revision
is defined inpom.xml
s.This property needs to be resolved using OpenRewrite.
Looking into
getPom().getValue(...)
showed that only some standard properties are resolved by their keys and if these are not found it's looked up usingSystem.getProperty()
.The simplest way to allow a lookup using
getValue()
would be to add all system properties defined in.mvn/maven.config
as system properties during parsing.Acceptance Criteria
Given
.mvn/maven.config
-Dsome.property=some-value
pom.xml
When
Then
resolved.value
should have the valuesome-value
Additional Information
The text was updated successfully, but these errors were encountered: