git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Avatica CI test failures


That makes sense! In Java do people tend to use templates for these cases or is direct replacement in the target file acceptable?

I am currently looking at the replacement plugin (https://code.google.com/archive/p/maven-replacer-plugin/) to replace the `AVATICA_VER` lines in the dockerfiles directly using regex for the direct replacement case. However, if templates are how things are generally used in Java, the resources plugin would work well.

Francis

On 21/11/2018 7:00 pm, Vladimir Sitnikov wrote:
Francis>I am not too familiar with maven and its plugins, but from my
understanding

Typical Maven convention is to place the "template" file to
src/main/resources, then maven-resources-plugin would "filter" (==replace)
properties in the file and place the result into target/classes/...

For instance, it would replace ${project.version} with relevant value.
Does that work for you?

Vladimir