从问卷调查中显示,目前大部分人仍然不能跑起来项目,其中最主要的是两部分原因:
1. spring cloud 配置中心使用不当;
2. maven依赖的三方jar包找不到;
针对第一点详细写了spring cloud 非对称加密的配置和使用,如果不清楚翻看上一篇博客 ,为此给大家带来的不便,笔者深感抱歉,为此决定给大家提供统一免费的私服,来解决jar包找不到而项目无法运行的问题,希望每一个人都能把项目跑起来,来和笔者一起投入到paascloud的开发和维护中来,让越来越多的人和企业能快速的了解和使用paascloud,啰嗦了几句下面开始正题。
私服地址
http://nexus.paascloud.net
用户名:paascloud_develop
密码: https://github.com/paascloud
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">
<!-- 本地Maven储存库地址,用来定义本地的Maven库的存储地址,即从Maven仓库中下载的文件的存储的位置 -->
<localRepository>D:/Java/maven/localRepository</localRepository>
<interactiveMode>true</interactiveMode>
<offline>false</offline>
<pluginGroups>
<pluginGroup>org.mortbay.jetty</pluginGroup>
<pluginGroup>org.jenkins-ci.tools</pluginGroup>
</pluginGroups>
<!--配置权限,使用默认用户-->
<servers>
<server>
<id>my-lib-repo</id>
<username>paascloud_develop</username>
<password>https://github.com/paascloud</password>
</server>
<server>
<id>my-lib-repo-3rdparty</id>
<username>paascloud_develop</username>
<password>https://github.com/paascloud</password>
</server>
<server>
<id>paascloud-lib-rep</id>
<username>paascloud_develop</username>
<password>https://github.com/paascloud</password>
</server>
</servers>
<mirrors>
<mirror>
<id>aliyun-repo</id>
<mirrorOf>central</mirrorOf>
<name>central mirror</name>
<url>http://maven.aliyun.com/mvn/repository</url>
</mirror>
<mirror>
<id>my-lib-repo</id>
<mirrorOf>my-lib-repo</mirrorOf>
<name>private mirror</name>
<url>http://nexus.paascloud.net/content/repositories/releases/</url>
</mirror>
<mirror>
<id>my-lib-repo-3rdparty</id>
<mirrorOf>my-lib-repo-3rdparty</mirrorOf>
<name>private mirror</name>
<url>http://nexus.paascloud.net/content/repositories/thirdparty/</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>liuzm</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
<repositories>
<!-- 私有库地址-->
<repository>
<id>my-lib-repo</id>
<url>http://nexus.paascloud.net/content/repositories/releases/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
<repository>
<id>my-lib-repo-3rdparty</id>
<url>http://nexus.paascloud.net/content/repositories/thirdparty/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<!--插件库地址-->
<pluginRepository>
<id>my-lib-repo</id>
<url>http://nexus.paascloud.net/content/repositories/releases/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>my-lib-repo-3rdparty</id>
<url>http://nexus.paascloud.net/content/repositories/thirdparty/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<!-- 激活配置,指定哪些配置被激活 -->
<activeProfiles>
<activeProfile>liuzm</activeProfile>
</activeProfiles>
</settings>