CDN的全称是Content Delivery Network,即内容分发网络。其基本思路是尽可能避开互联网上有可能影响数据传输速度和稳定性的瓶颈和环节,使内容传输的更快、更稳定。通过在网络各处放置节点服务器所构成的在现有的互联网基础之上的一层智能虚拟网络,CDN系统能够实时地根据网络流量和各节点的连接、负载状况以及到用户的距离和响应时间等综合信息将用户的请求重新导向离用户最近的服务节点上。其目的是使用户可就近取得所需内容,解决 Internet网络拥挤的状况,提高用户访问网站的响应速度。
分享七牛CDN加速Maven资源库
http://mcdn.60kb.com
当前为CDN地址
settings.xml配置
<?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <pluginGroups></pluginGroups> <proxies></proxies> <servers></servers> <profiles> <profile> <id>mcdn</id> <repositories> <repository> <id>mcdn</id> <name>mcdn</name> <url>http://mcdn.60kb.com</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>mcdn</id> <name>mcdn</name> <url>http://mcdn.60kb.com</url> </pluginRepository> </pluginRepositories> </profile> </profiles> <!-- activeProfiles | List of profiles that are active for all builds. | <activeProfiles> <activeProfile>alwaysActiveProfile</activeProfile> <activeProfile>anotherAlwaysActiveProfile</activeProfile> </activeProfiles> --> <activeProfiles> <activeProfile>mcdn</activeProfile> </activeProfiles> </settings>
常用命令
mvn compile
编译源代码
mvn test-compile
编译测试代码
mvn test
运行测试
mvn site
产生site
mvn package
打包
mvn install
在本地Repository中安装jar
mvn clean
清除产生的项目
mvn eclipse:eclipse
生成eclipse项目配置文件
mvn eclipse:clean
清理eclipse项目配置文件
mvn idea:idea
生成idea项目配置文件
mvn idea:clean
清理idea项目配置文件
mvn -Dtest package
组合使用goal命令,只打包不测试
mvn jar:jar
只打jar包
mvn war:war
只打war包
mvn test -skipping compile -skipping test-compile
只测试而不编译,也不测试编译( -skipping 的灵活运用,当然也可以用于其他组合命令)
mvn jetty:run
运行项目于jetty上
mvn tomcat:run
运行项目于tomcat上
mvn spring-boot:run
运行spring-boot项目
mvn hibernate3:hbm2ddl
使用 Hibernate3 插件构造数据库
mvn -X deploy:deploy-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.8 -Dpackaging=jar -Dfile=/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/lib/tools.jar -Durl=http://maven.60kb.com/content/repositories/releases/ -DrepositoryId=releases
上传到Maven库
转载请注明:晓窗博客 » 分享百度云CDN加速Maven资源库