GithubHelp home page GithubHelp logo

Comments (6)

mandy-chessell avatar mandy-chessell commented on June 14, 2024

What would the flags look like ?

from egeria.

planetf1 avatar planetf1 commented on June 14, 2024

See example in https://github.com/GaianRangerPlugin/ranger-gaian-plugin/blob/master/pom.xml

Basically this uses the 'DependencyManagement' to express the version that should be used in all modules, without actually pulling in as a dependency. In the 'Dependency' section the version is then omitted. A similar pattern applies to the plugins with 'PluginManagement'. This is the 'standard' maven mechanism

One main difference is the effective on transitive dependencies - the maven scheme arguably provides a little more assurance as to what is used.

There's some further docs at https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

from egeria.

mandy-chessell avatar mandy-chessell commented on June 14, 2024

I think we should do this - as the code gets bigger, dependency management is going to become more important. I would like to take you up on your offer to code the patch (when you are back from vacation :)

from egeria.

planetf1 avatar planetf1 commented on June 14, 2024

Updating top level pom.
Removing any DependencyManagement elsewhere
Added validation - as an example if an inconsistent version is used we now fail the build with

[INFO] --- maven-dependency-plugin:3.1.1:analyze-dep-mgt (depmgmt) @ access-services-user-interface ---
[INFO] Found Resolved Dependency/DependencyManagement mismatches:
[INFO] 	Dependency: org.springframework.security:spring-security-web:jar
[INFO] 		DepMgt  : 5.1.4.RELEASE
[INFO] 		Resolved: 5.1.5.RELEASE

There's no exception handling yet - will need to add on a case by case basis (overriding configuration in local pom.

Discrepancies so far

  • Janusgraph - 0.3.1 used by graph repo, 0.3.0 by lineage -> updated to 0.3.1
  • spring-security-web - 5.1.4 used most places, 5.1.5 in user interface (incorrect version compatibility with spring-web) -> corrected to 5.1.4 (this was caused by using the wrong property)

Local version properties and numbers have NOT been removed in this PR -- though any update that makes them inconsistent will fail the build. These will be cleaned in a subsequent update

from egeria.

planetf1 avatar planetf1 commented on June 14, 2024

Also not added -- any refactoring of UI build and expression of non-maven dependency versions (npm and polymer components)

from egeria.

planetf1 avatar planetf1 commented on June 14, 2024

this has been implemented

from egeria.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.