当我们用maven下载jar包时,有时希望下载jar包的源代码,此时可以在pom.xml文件中,进行设置。

<build>    <finalName>WebProject</finalName>    <plugins>          <plugin>              <groupId>org.codehaus.cargo</groupId>              <artifactId>cargo-maven2-plugin</artifactId>                <version>1.2.3</version>                <configuration>                    <container>                        <!-- 指明使用的tomcat服务器版本 -->                        <containerId>tomcat7x</containerId>                        <!--指明tomcat服务器的安装目录 -->                        <home>C:\d\install_software\apache-tomcat-7.0.75-windows-x86\apache-tomcat-7.0.75</home>                    </container>                    <configuration>                        <type>existing</type>                        <!--指明tomcat服务器的安装目录 -->                        <home>C:\d\install_software\apache-tomcat-7.0.75-windows-x86\apache-tomcat-7.0.75</home>                    </configuration>                    <configuration>                      <downloadSources>true</downloadSources>                      <downloadJavadocs>false</downloadJavadocs>                  </configuration>                </configuration>                <executions>                    <execution>                        <id>cargo-run</id>                        <phase>install</phase>                        <goals>                            <goal>run</goal>                        </goals>                    </execution>                </executions>          </plugin>      </plugins>  </build>

<configuration>标签部分追加进来之后,重新编译项目,就可以得到源代码了。

转载于:https://www.cnblogs.com/lihao007/p/7011219.html

maven 总结整理(二)——download source code相关推荐

  1. import openfire4.0.2 source code in eclipse

    [0]README 1)本文旨在给出 导入 openfire4.0.2 源码到 eclipse的具体 steps: 2)小生我导入该version 的 openfire 用了近2 天时间, 比较心酸, ...

  2. Howto: Download SLES or SLED Source Code

    Show Me the RPM's A customer just asked me this one: where can they get the source code or source RP ...

  3. Download source files for maven dependencies_莫负春光_百度空间

    Download source files for maven dependencies_莫负春光_百度空间 Download source files for maven dependencies ...

  4. Downloading Android Source Code

    Git 是 Linux Torvalds 为了帮助管理 Linux 内核开发而开发的一个开放源码的分布式版本控制软件,它不同于Subversion.CVS这样的集中式版本控制系统.在集中式版本控制系统 ...

  5. DevExpress Components16.2.6 Source Code 编译

    DevExpress 是一个比较有名的界面控件套件,提供了一系列优秀的界面控件.这篇文章将展示如何在拥有源代码的情况下,对 DevExpress 的程序集进行重新编译. 特别提示:重编译后,已安装好的 ...

  6. Source Code Collection for Reproducible Research

    Source Code Collection for Reproducible Research [ http://www.csee.wvu.edu/~xinl/source.html] " ...

  7. Google Chrome Source Code 源码下载

    2019独角兽企业重金招聘Python工程师标准>>> Goolgle 于 2008.09.02 发布了浏览器 Google Chrome.Google Chrome 使用的内核源码 ...

  8. UI5 Source code map机制的细节介绍

    在我的博客A debugging issue caused by source code mapping里我介绍了在我做SAP C4C开发时遇到的一个曾经困扰我很久的问题,最后结论是这个问题由于Jav ...

  9. Reverse-engineer Source Code into UML Diagrams

    今天同事需要反向生成类图,用PowerDesigner 转了一份,不甚满意,在网上逛了逛,发现在这篇文章挺不错. I have been on several teams where we studi ...

最新文章

  1. neat算法——本质就是遗传算法用于神经网络的自动构建
  2. 程序员面试系列——约瑟夫环
  3. HttpClient的释放问题
  4. Springboot后台接收前端Date类型
  5. 有没有什么方法快速能找到导致软件崩溃的进程_手机软件闪退闪得怀疑人生?看我专治闪退二十年!...
  6. 磨刀霍霍:我李汉三又回来写代码啦~
  7. RocketMQ3.2.6安装部署及调用
  8. 作业1-3 求1+2!+3!+...+20!的和
  9. Java 中的 AQS 到底是什么?高级面试必问!
  10. atitit.故障排除--- 当前命令发生了严重错误。应放弃任何可能产生的结果sql server 2008
  11. c语言米粒数实验报告,《單片机C程序设计》实验报告.doc
  12. [misc]T型知识实践结构的力量
  13. 【网络通信三】研华网关Modbus服务设置
  14. 实测!Ubuntu18.04解决Teamview检测为商用问题
  15. 急!!!微信公众号数据迁移后openid无法转换
  16. Linux下安装和使用杀毒软件AntiVir(ZZ)
  17. 微信小程序苹果手机边框显示不全解决办法
  18. java与C++中文字符的问题
  19. ORA-00257: archiver error. Connect internal only, until freed 处理方法
  20. 学python与嵌入式操作系统_嵌入式操作系统那么多,哪一个适合你?

热门文章

  1. [Swift]LeetCode17. 电话号码的字母组合 | Letter Combinations of a Phone Number
  2. easyui关于dialog弹出位置的问题记录
  3. 升级nodejs至最新
  4. linux下python 2.4升级到 python 2.5
  5. palm基础----8 国际化
  6. 诗与远方:无题(一)
  7. Git 日常开发常用命令
  8. elementUI表单验证
  9. spark数据本地性级别划分
  10. Activiti 流程查询出的结果封装为 JSON 时出现的异常