zoukankan      html  css  js  c++  java
  • maven 总结整理(二)——download source code

    当我们用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:dinstall_softwareapache-tomcat-7.0.75-windows-x86apache-tomcat-7.0.75</home>
                        </container>
                        <configuration>
                            <type>existing</type>
                            <!--指明tomcat服务器的安装目录 -->
                            <home>C:dinstall_softwareapache-tomcat-7.0.75-windows-x86apache-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>标签部分追加进来之后,重新编译项目,就可以得到源代码了。

  • 相关阅读:
    终于等到你---订餐系统之负载均衡(nginx+memcached+ftp上传图片+iis)
    订餐系统之同步饿了么商家订单
    订餐系统之同步口碑外卖商家菜单与点点送订单
    基于SuperSocket的IIS主动推送消息给android客户端
    基于mina框架的GPS设备与服务器之间的交互
    订餐系统之微信支付,踩了官方demo的坑
    订餐系统之自动确认淘点点订单
    订餐系统之Excel批量导入
    移除首页->重回首页
    订餐系统之获取淘宝外卖订单
  • 原文地址:https://www.cnblogs.com/lihao007/p/7011219.html
Copyright © 2011-2022 走看看