Boyuan Private Maven Repository!

07 February 2017

这是一个完整的 mvnrepository.com 代理,你可以用此代替官方版本,并且可以下载 Boyuan 的 Java 组件 Nexus 首页: http://180.167.77.60:30001 Maven Public: http://180.167.77.60:30001/repository/maven-public Maven 在 POM 中配置 Nexus 仓库 <project> ... <repositories> <repository> <id>nexus</id> <name>Nexus</name> <url>http://180.167.77.60:30001/repository/maven-public</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>nexus</id> <name>Nexus</name> <url>http://180.167.77.60:30001/repository/maven-public</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> ... </project> 这样的配置只对当前的Maven项目生效,在实际应用中,我们往往想要通过一次配置就能让本机所有的Maven项目都使用自己的Maven私服。这个时候可能会想到setting.xml文件,该文件中的配置对所有本机Maven项目有效,但是settings.xml并不支持直接配置repositories和pluginRepositories。所幸Maven还提供了Profile机制,能让用户将仓库配置放到setting.xml中的Profile中。 在 settings.xml 中配置 Nexus 仓库 <settings> ... <profiles>...

Welcome to jekyll!

20 May 2016

You’ll find this post in your _posts directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run jekyll serve, which launches a web server and auto-regenerates your site when...