Determine Maven provided dependencies -
Determine Maven provided dependencies -
i've inherited few maven projects have added /dependencies
directory capture java jar libraries aren't part of project war , must installed devops tomcat installation.
the libraries in directory seem fall 4 categories:
"provided" scope libraries, downstream dependencies of provided libraries, and discoverable implementations of api jars "mystery" libraries, i.e., not available in external repository, , maybe unsure ever came from.is there strategy maven help manage these dependencies , perhaps fetch them external install?
there several strategies take from.
number one: leave is. if works , build reproducible (on different environments) seems 1 valid solution.
the "mystery" part of build might not more of issue new people working it.
i think valid create own maven module delivered infrastructure team. module can contain jars in /dependencies
folder. need create pom.xml , add together dependencies in directory (of course of study not transitive ones). magic ones need go in repository proxy (nexus, artifactory, ...). if don't have maven repository yet: want one! (its easy setup , help lot!)
i utilize assembly plugin or ant task build zip delivered. infrastructure team able unzip / re-create files need be. step can scripted (so upload / unzip done through ssh or that).
this 1 way it. assume resolve jar's in /dependencies directory may bit of pain.
the advantage document , simplify management of libraries. assume if update of them easier across branches merge since there no binary files around. may worth effort.
maven
Comments
Post a Comment