java - maven equivalent for gradle `compile fileTree(dir: 'libs', include: '*.jar')` -


what maven equivalent gradle's one-liner include jars lib(s) folder? i.e. :

dependencies {     compile filetree(dir: 'libs', include: '*.jar') } 

i have set of project mavenize, , average project ~50 jar in lib folder, takes @ least half day thorough searching on http://mvnrepository.com/ , guessing versions , jar dependencies looking inside jar etc work solve technical debt of jar hell.

the problem old, , of july 2017, 1 can find
- how include system dependencies in war built using maven
- how add local jar files in maven project?
listing similar answers limitations.

new me plugins
- addjars-maven-plugin, dead @ https://github.com/kahing/addjars-maven-plugin
- non-maven-jar-maven-plugin @ https://github.com/stephenc/non-maven-jar-maven-plugin

thinking on again, first step mavenize project should let compiler use existing jars focus on code, not on dependencies (that has jar put there case, or copied in bulk)

    <!-- not work -->     <plugin>         <groupid>org.apache.maven.plugins</groupid>         <artifactid>maven-compiler-plugin</artifactid>         <configuration>             <includes>                 <include>lib/*.jar</include>             </includes>         </configuration>     </plugin> 


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -