简体   繁体   中英

Maven Jar Plugin and Maven Source Plugin Usage

I know how to use jar plugin and source plugin. I want to use my jar libray with source code and compiled code. How can I do this ? I am confused because there are two jar file created. How can I use these files with another project ? Just adding dependencies or there is a more convenient way ? I do not know. Thank you..

如果您在项目中设置了artifactIdgroupIdversion ,并在其上完成了mvn install ,那么它应该可以在您的本地存储库中使用,以便稍后可以使用<dependecy/>标记将其导入到其他项目中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM