Modify

Ticket #45 (new defect)

Opened 4 years ago

Last modified 3 years ago

Let modules reuse to Kauri's version of a dependency.

Reported by: bruno Owned by: bruno
Priority: minor Milestone: 0.5
Component: core/kauri-runtime Version: trunk
Keywords: Cc:

Description

To make it easier to upgrade towards newer Kauri versions, or to run on multiple Kauri versions, it would be helpful if own modules would not list explicit version numbers for dependencies which are also Kauri dependencies.

Common examples of such dependencies include Spring, JAX-RS api, Restlet api, ...

This should both be the case at build-time and run-time.

Solution: still to be researched. Probably some properties file listing these versions, which can be passed to Maven and is build into the Kauri Runtime.

Attachments

Change History

comment:1 Changed 4 years ago by bruno

Some first research and thoughts:

  • Maven doesn't support any other properties than those listed in the <properties> element or passed using -D. Specifying an external property file is not possible.
  • the artifact-versions-list should be available to:
    • the Kauri Runtime, for resolving (at runtime) the version to use
    • the genclassloader plugin: to know it should not add the versions for those artifacts when generating the classloader.xml
    • archetype: to include that set of properties in the <properties> section of the generated pom (or other solution to use those properties at build time)

Will not work further on this for the moment.

comment:2 Changed 4 years ago by bruno

From offline comments I received:

  • there appears to be some ability to refer to depenencies listend in other poms
  • might approach it by creating a dummy dependency listing pom (though would then force user to use all these dependencies)

comment:3 Changed 3 years ago by mpo

please check if this is still relevant and close or move over to beyond 0.4

comment:4 Changed 3 years ago by mpo

  • Milestone set to 0.4

comment:5 Changed 3 years ago by mpo

  • Milestone changed from 0.4 to 0.5

beyond 0.4 scope

View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.