Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.8.5, 3.8.6
-
None
-
Important
Description
An important change has been introduced in 3.8.5 that breaks some existing builds: Java system properties now take precedence over default values of user properties in dependency POMs. This look like a bug since it's now easy to affect dependency behaviors with system properties, a practice that has been discouraged. But maybe do you consider this as a new feature ?
As an example, 3 poms are attached to this ticket.
After installing projects b and c, building project a with:
mvn package -Ddep=x
used to succeed until 3.8.4 (-D is ignored) but throws error with 3.8.5 and 3.8.6 (-D override the default).
Note that without the setting of the default value for property dep in project b, the build fails with any version of Maven.
Attachments
Attachments
Issue Links
- causes
-
MNG-7635 Investigate how to safely propagate user properties to dependencies (see MNG-5982 and MNG-7417)
- Open
- is caused by
-
MNG-7417 Several classes do not set properties properly for building requests
- Closed
- is fixed by
-
MNG-7634 Revert MNG-5982 and MNG-7417
- Closed
- relates to
-
MNG-5982 The POM for ... is invalid, transitive dependencies ... while property was overriden
- Closed