Project

General

Profile

Actions

Bug #12257

closed

Use pom-template.xml + makefile to avoid variables in artifact version in pom.xml

Added by François ARMAND over 6 years ago. Updated over 6 years ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

So. It seems that anything in the way to parametrize versions in maven pom breaks thing in way or another, sometime most exotic one (like the install part that works for plugins-common but not for plugin-common-private, whereas they are the same pom bare the dependency on the second towards the first).

Even trying to pass values in -D parameters does not work in homogenous way. Some plugins get the correct version, others don't. No heuristic was conclusive appart that maven is a mad god who severly punish whoever try to go out of THE MAVEN WAY.

One thing that might have worked is to use environment variables for version, because these one are resolved before anything else. But that would have mean breaking IDE integration.

So. We will use pom template, and generate pom with the correct, verbatim version number in them. Let the god be happy with his only possible way.

Actions

Also available in: Atom PDF