maven 总结整理(二)——download source code
2017-06-14 22:02
260 查看
当我们用maven下载jar包时,有时希望下载jar包的源代码,此时可以在pom.xml文件中,进行设置。
[/code]
<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>标签部分追加进来之后,重新编译项目,就可以得到源代码了。
[/code]
相关文章推荐
- Maven download javadoc or source code
- maven download source code and javadoc
- Spring 4 MVC example with Maven - [Source Code Download]
- Download/Attach source-code/java-docs with maven dependencies
- Download source files for maven dependencies_莫负春光_百度空间
- Download Android Source Code in Windows
- Smart Client Case Study Source Code Download from MSDN China
- Google Chrome 源码下载地址 (Google Chrome Source Code Download)
- SGI opengl source code download
- exsi 5.0 opensource code download
- Ajax.net source code is available for download
- NetBpm source code download guid (orginal)
- The steps for download android source code
- Source Code for the Built-in ASP.NET 2.0 Providers Now Available for Download !
- Pulling Source Code from Maven Repository
- Smart Client Case Study Source Code Download from MSDN China
- I LIKE QEMU(DOWNLOAD SOURCE CODE AND IMAGE)
- android startActivityForResult(Intent intent, int requestCode) 整理与总结!
- Howto: Download SLES or SLED Source Code
- Smart Client Case Study Source Code Download from MSDN China