[英]Maven Jar Plugin and Maven Source Plugin Usage
I know how to use jar plugin and source plugin. 我知道如何使用jar插件和源插件。 I want to use my jar libray with source code and compiled code.
我想使用我的jar libray与源代码和编译代码。 How can I do this ?
我怎样才能做到这一点 ? I am confused because there are two jar file created.
我很困惑,因为有两个jar文件创建。 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..
谢谢..
如果您在项目中设置了artifactId
, groupId
和version
,并在其上完成了mvn install
,那么它应该可以在您的本地存储库中使用,以便稍后可以使用<dependecy/>
标记将其导入到其他项目中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.