开发者

How to add a jar file when using mvn command to compile a project

开发者 https://www.devze.com 2023-02-15 23:43 出处:网络
I need to add a jar file to compile my project using maven command, but this jar file is not from anothermaven depos开发者_StackOverflowitory,it\'s just a jar file. I don\'t know how to and this.

I need to add a jar file to compile my project using maven command, but this jar file is not from another maven depos开发者_StackOverflowitory,it's just a jar file. I don't know how to and this.

Thanks


You can go thru this..

Maven: How to include jars, which are not available in reps into a J2EE project?

Make sure you have -Dpackaging=jar

More info..

http://www.mkyong.com/maven/how-to-include-library-manully-into-maven-local-repository/

0

精彩评论

暂无评论...
验证码 换一张
取 消