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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -