-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds a jackson.version property to simplify managing the version * Make sure the specified version is used as add-on dependency by excluding Jackson from transitive dependencies * Use openhab.tp-jackson feature with dynamodb * Remove jackson-dataformat-cbor dependency from features which is now also provided by the openhab.tp-jackson feature Signed-off-by: Wouter Born <github@maindrain.net>
- Loading branch information
Showing
7 changed files
with
36 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
051c764
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wborn I am not fully understanding this bit.
Specifically commenting on dynamodb pom.xml
<exclusions>
. Is this not unnecessary since jackson dependencies are also specified as direct dependencies? Maven should therefore pick the correct version as described in https://stackoverflow.com/a/47104330Would you agree?
I need to work on the dependencies again in #9937 since the whole sdk is updated.
051c764
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No the version is resolved based on the order of how dependencies are declared in the POM.
So I excluded it so the order no longer matters and it will always use our version, i.e. the version provided by the Karaf feature.
That way you are guaranteed that you always use the same Jackson version when writing tests, debugging in Eclipse or running the binding with Karaf.
051c764
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wborn this is not how it is documented in https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
According to the docs, the order matters only in tie-situations:
I can do some experiments as well and report here.
051c764
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC I just looked at how the dependencies were resolved in Eclipse which may have its own opinion about this. 😉