linux7下nenux3.14的maven私服搭建和配置使用

  为什么用私服,各种帖子很多,话不多说,直接奉上本博主的搭建过程。

  一、环境准备:确保jdk和maven安装完成

  二、下载nenux;地址:https://www.sonatype.com/download-oss-sonatype?hsCtaTracking=920dd7b5-7ef3-47fe-9600-10fecad8aa32%7Cf59d5f10-099f-4c66-a622-0254373f4a92

本博主下载的是unix的nexus-3.14.0-04-unix.tar.gz版本用于在linux上搭建,上传到预定目录中,解压tar -zxvf  后

这样其实已经安装完成,可以启动了,很简单

 关闭防火墙后登陆http://192.168.135.128:8081/#admin 默认管理员账号密码是admin/admin123

添加私有仓库先创建用户名

然后然后用自己的用户名登陆创建自己的仓库

 Deployment Polcy; 策略需要修改成 ALLOW REDEPLOY;

 再创建一个proxy类型的仓库

 

1)  proxy   这里就是代理的意思,代理中央Maven仓库,当PC访问中央库的时候,先通过Proxy下载到Nexus仓库,然后再从Nexus仓库下载到PC本地,常用的公有库都可以在这里设置代理。需要注意的是,这里创建了新的代理仓库,更新索引后并不能立即搜索到相应的包,当有pc访问的时候,库中没有才去代理的库中下载。

Name:就是为代理起个名字

Remote Storage: 代理的地址,Maven的地址为: https://repo1.maven.org/maven2/

开源中国仓库地址:http://maven.oschina.net/content/groups/public/

Blob Store: 选择代理下载包的存放路径

创建完成后

公有仓库地址:
http://repo1.maven.org/maven2/
http://repository.jboss.com/maven2/
http://repository.sonatype.org/content/groups/public/
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/acegisecurity/

私有仓库地址:
http://repository.codehaus.org/
http://snapshots.repository.codehaus.org/
http://people.apache.org/repo/m2-snapshot-repository
http://people.apache.org/repo/m2-incubating-repository/

(2)Host  宿主机,主要是用来放第三方的jat包, 有三种方式: Releases, SNAPSHOT, Mixed

 Releases- 一般存放已经发布的jat包

snapshot 未发布的版本

Mixed 混合的

Host 的创建步骤 和Proxy 是一样的, 需要注意的是: Deployment Polcy; 策略需要修改成 ALLOW REDEPLOY;

(3)GROUP, 把多个仓库合并成一个仓库,主要用于对外部提供服务。

  group 的创建:

   

创建成功

接下来,我们在项目中配置maven私服,首先为减少出错概率,我们采用原来的原来的自带的仓库来配置不用我们刚才创建的仓库,只是用户我们采用新创建的zxy

我们创建一个springboot的maven项目,然后进行配置,配置主要在两个地方,一个是maven解压包的setting.xml文件配置私服地址,另一个就是在项目的pom.xml中,直接上代码

完整的setting.xml

  1 <?xml version="1.0" encoding="UTF-8"?>
  2 
  3 <!--
  4 Licensed to the Apache Software Foundation (ASF) under one
  5 or more contributor license agreements.  See the NOTICE file
  6 distributed with this work for additional information
  7 regarding copyright ownership.  The ASF licenses this file
  8 to you under the Apache License, Version 2.0 (the
  9 "License"); you may not use this file except in compliance
 10 with the License.  You may obtain a copy of the License at
 11 
 12     http://www.apache.org/licenses/LICENSE-2.0
 13 
 14 Unless required by applicable law or agreed to in writing,
 15 software distributed under the License is distributed on an
 16 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17 KIND, either express or implied.  See the License for the
 18 specific language governing permissions and limitations
 19 under the License.
 20 -->
 21 
 22 <!--
 23  | This is the configuration file for Maven. It can be specified at two levels:
 24  |
 25  |  1. User Level. This settings.xml file provides configuration for a single user,
 26  |                 and is normally provided in ${user.home}/.m2/settings.xml.
 27  |
 28  |                 NOTE: This location can be overridden with the CLI option:
 29  |
 30  |                 -s /path/to/user/settings.xml
 31  |
 32  |  2. Global Level. This settings.xml file provides configuration for all Maven
 33  |                 users on a machine (assuming they're all using the same Maven
 34  |                 installation). It's normally provided in
 35  |                 ${maven.home}/conf/settings.xml.
 36  |
 37  |                 NOTE: This location can be overridden with the CLI option:
 38  |
 39  |                 -gs /path/to/global/settings.xml
 40  |
 41  | The sections in this sample file are intended to give you a running start at
 42  | getting the most out of your Maven installation. Where appropriate, the default
 43  | values (values used when the setting is not specified) are provided.
 44  |
 45  |-->
 46 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
 47           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 48           xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
 49   <!-- localRepository
 50    | The path to the local repository maven will use to store artifacts.
 51    |
 52    | Default: ${user.home}/.m2/repository
 53   <localRepository>/path/to/local/repo</localRepository>
 54   -->
 55 
 56   <!-- interactiveMode
 57    | This will determine whether maven prompts you when it needs input. If set to false,
 58    | maven will use a sensible default value, perhaps based on some other setting, for
 59    | the parameter in question.
 60    |
 61    | Default: true
 62   <interactiveMode>true</interactiveMode>
 63   -->
 64 
 65   <!-- offline
 66    | Determines whether maven should attempt to connect to the network when executing a build.
 67    | This will have an effect on artifact downloads, artifact deployment, and others.
 68    |
 69    | Default: false
 70   <offline>false</offline>
 71   -->
 72 
 73   <!-- pluginGroups
 74    | This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.
 75    | when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers
 76    | "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.
 77    |-->
 78   <pluginGroups>
 79     <!-- pluginGroup
 80      | Specifies a further group identifier to use for plugin lookup.
 81     <pluginGroup>com.your.plugins</pluginGroup>
 82     -->
 83   </pluginGroups>
 84 
 85   <!-- proxies
 86    | This is a list of proxies which can be used on this machine to connect to the network.
 87    | Unless otherwise specified (by system property or command-line switch), the first proxy
 88    | specification in this list marked as active will be used.
 89    |-->
 90   <proxies>
 91     <!-- proxy
 92      | Specification for one proxy, to be used in connecting to the network.
 93      |
 94     <proxy>
 95       <id>optional</id>
 96       <active>true</active>
 97       <protocol>http</protocol>
 98       <username>proxyuser</username>
 99       <password>proxypass</password>
100       <host>proxy.host.net</host>
101       <port>80</port>
102       <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
103     </proxy>
104     -->
105   </proxies>
106 
107   <!-- servers
108    | This is a list of authentication profiles, keyed by the server-id used within the system.
109    | Authentication profiles can be used whenever maven must make a connection to a remote server.
110    |-->
111   <servers>    
112         <server>
113               <id>maven-releases</id>
114               <username>zxy</username>
115                <password>zxy</password>
116         </server>
117         <server>
118               <id>maven-snapshots</id>
119               <username>zxy</username>
120                <password>zxy</password>
121         </server>
122         <!--<server>
123               <id>maven-public/</id>
124               <username>zxy</username>
125                <password>zxy</password>
126         </server> 
127          <server>
128               <id>nenux</id>
129               <username>zxy</username>
130                <password>zxy</password>
131         </server>-->
132     <!-- server
133      | Specifies the authentication information to use when connecting to a particular server, identified by
134      | a unique name within the system (referred to by the 'id' attribute below).
135      |
136      | NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are
137      |       used together.
138      |
139     <server>
140       <id>deploymentRepo</id>
141       <username>repouser</username>
142       <password>repopwd</password>
143     </server>
144     -->
145 
146     <!-- Another sample, using keys to authenticate.
147     <server>
148       <id>siteServer</id>
149       <privateKey>/path/to/private/key</privateKey>
150       <passphrase>optional; leave empty if not used.</passphrase>
151     </server>
152     -->
153   </servers>
154   
155 
156 
157   <!-- mirrors
158    | This is a list of mirrors to be used in downloading artifacts from remote repositories.
159    |
160    | It works like this: a POM may declare a repository to use in resolving certain artifacts.
161    | However, this repository may have problems with heavy traffic at times, so people have mirrored
162    | it to several places.
163    |
164    | That repository definition will have a unique id, so we can create a mirror reference for that
165    | repository, to be used as an alternate download site. The mirror site will be the preferred
166    | server for that repository.
167    |-->
168    <mirrors>
169     <mirror>
170         <id>nenux</id>
171         <url>http://192.168.10.194:8081/repository/maven-public/</url>
172         <mirrorOf>*</mirrorOf>        
173     </mirror>
174         
175   </mirrors>
176     <!-- mirror
177      | Specifies a repository mirror site to use instead of a given repository. The repository that
178      | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
179      | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
180      |
181        <mirrors>
182      <mirror>
183       <id>alimaven</id>
184       <name>aliyun maven</name>
185       <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
186       <mirrorOf>central</mirrorOf>        
187     </mirror>
188     </mirrors>
189     <mirror>
190       <id>mirrorId</id>
191       <mirrorOf>repositoryId</mirrorOf>
192       <name>Human Readable Name for this Mirror.</name>
193       <url>http://my.repository.com/repo/path</url>
194     </mirror>
195      -->
196  
197 
198   <!-- profiles
199    | This is a list of profiles which can be activated in a variety of ways, and which can modify
200    | the build process. Profiles provided in the settings.xml are intended to provide local machine-
201    | specific paths and repository locations which allow the build to work in the local environment.
202    |
203    | For example, if you have an integration testing plugin - like cactus - that needs to know where
204    | your Tomcat instance is installed, you can provide a variable here such that the variable is
205    | dereferenced during the build process to configure the cactus plugin.
206    |
207    | As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles
208    | section of this document (settings.xml) - will be discussed later. Another way essentially
209    | relies on the detection of a system property, either matching a particular value for the property,
210    | or merely testing its existence. Profiles can also be activated by JDK version prefix, where a
211    | value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.
212    | Finally, the list of active profiles can be specified directly from the command line.
213    |
214    | NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact
215    |       repositories, plugin repositories, and free-form properties to be used as configuration
216    |       variables for plugins in the POM.
217    |
218    |-->
219   <profiles>
220    <profile>
221       <id>nenux</id>
222       <repositories>
223         <repository>
224           <id>nenux</id>
225           <name>nenux</name>
226           <url>http://192.168.10.194:8081/repository/maven-public/</url>
227           <releases>
228                   <enabled>true</enabled>
229               </releases>
230               <snapshots>
231                   <enabled>true</enabled>
232               </snapshots>
233         </repository>
234       </repositories>
235       <pluginRepositories>
236         <!--插件库地址-->
237         <pluginRepository>
238           <id>nexus</id>
239           <url>http://192.168.10.194:8081/repository/maven-public/</url>
240           <releases>
241             <enabled>true</enabled>
242           </releases>
243           <snapshots>
244             <enabled>true</enabled>
245            </snapshots>
246         </pluginRepository>
247       </pluginRepositories>
248     </profile>
249     <!-- profile
250      | Specifies a set of introductions to the build process, to be activated using one or more of the
251      | mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>
252      | or the command line, profiles have to have an ID that is unique.
253      |
254      | An encouraged best practice for profile identification is to use a consistent naming convention
255      | for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.
256      | This will make it more intuitive to understand what the set of introduced profiles is attempting
257      | to accomplish, particularly when you only have a list of profile id's for debug.
258      |
259      | This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.
260     <profile>
261       <id>jdk-1.4</id>
262 
263       <activation>
264         <jdk>1.4</jdk>
265       </activation>
266 
267       <repositories>
268         <repository>
269           <id>jdk14</id>
270           <name>Repository for JDK 1.4 builds</name>
271           <url>http://www.myhost.com/maven/jdk14</url>
272           <layout>default</layout>
273           <snapshotPolicy>always</snapshotPolicy>
274         </repository>
275       </repositories>
276     </profile>
277     -->
278 
279     <!--
280      | Here is another profile, activated by the system property 'target-env' with a value of 'dev',
281      | which provides a specific path to the Tomcat instance. To use this, your plugin configuration
282      | might hypothetically look like:
283      |
284      | ...
285      | <plugin>
286      |   <groupId>org.myco.myplugins</groupId>
287      |   <artifactId>myplugin</artifactId>
288      |
289      |   <configuration>
290      |     <tomcatLocation>${tomcatPath}</tomcatLocation>
291      |   </configuration>
292      | </plugin>
293      | ...
294      |
295      | NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to
296      |       anything, you could just leave off the <value/> inside the activation-property.
297      |
298     <profile>
299       <id>env-dev</id>
300 
301       <activation>
302         <property>
303           <name>target-env</name>
304           <value>dev</value>
305         </property>
306       </activation>
307 
308       <properties>
309         <tomcatPath>/path/to/tomcat/instance</tomcatPath>
310       </properties>
311     </profile>
312     -->
313   </profiles>
314 
315   <!-- activeProfiles
316    | List of profiles that are active for all builds.
317    |  -->
318   <activeProfiles>
319     <activeProfile>nenux</activeProfile>
320   </activeProfiles>
321 
322   
323 </settings>
View Code

平时常用的有四个地方<localRepository>、<servers>、<mirrors>、<profiles>

<localRepository> 配置本地仓库

<servers>配置的是授权信

<mirrors>配置的是把私服地址,把私服作为镜像,所有请求首先经过私服

<profiles>激活(activation)仓库(repositories)插件仓库(pluginRepositories)属性(properties)

具体解释可以参考:https://www.cnblogs.com/chenlin1990/p/8270015.html

摘出来主要配置的部分如下:

 1 <?xml version="1.0" encoding="UTF-8"?>
 2 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
 3           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 4           xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
 5 <servers>    
 6         <server>
 7               <id>maven-releases</id>
 8               <username>zxy</username>
 9                <password>zxy</password>
10         </server>
11         <server>
12               <id>maven-snapshots</id>
13               <username>zxy</username>
14                <password>zxy</password>
15         </server>
16 </servers>
17    <mirrors>
18     <mirror>
19         <id>nenux</id>
20         <url>http://192.168.10.194:8081/repository/maven-public/</url>
21         <mirrorOf>*</mirrorOf>        
22     </mirror>
23         
24   </mirrors>
25   <profiles>
26    <profile>
27       <id>nenux</id>
28       <repositories>
29         <repository>
30           <id>nenux</id>
31           <name>nenux</name>
32           <url>http://192.168.10.194:8081/repository/maven-public/</url>
33           <releases>
34                   <enabled>true</enabled>
35               </releases>
36               <snapshots>
37                   <enabled>true</enabled>
38               </snapshots>
39         </repository>
40       </repositories>
41       <pluginRepositories>
42         <!--插件库地址-->
43         <pluginRepository>
44           <id>nexus</id>
45           <url>http://192.168.10.194:8081/repository/maven-public/</url>
46           <releases>
47             <enabled>true</enabled>
48           </releases>
49           <snapshots>
50             <enabled>true</enabled>
51            </snapshots>
52         </pluginRepository>
53       </pluginRepositories>
54     </profile>
55 </profiles>
56   <activeProfiles>
57     <activeProfile>nenux</activeProfile>
58   </activeProfiles>
59 </settings>

然后配置项目的pom.xml文件

主要是

 1 <distributionManagement>
 2     <repository>
 3        <id>maven-releases</id>
 4         <url>http://192.168.10.194:8081/repository/maven-releases/</url>
 5     </repository> 
 6     
 7      <snapshotRepository>
 8       <id>maven-snapshots</id>
 9         <url>http://192.168.10.194:8081/repository/maven-snapshots/</url>
10     </snapshotRepository>
11   </distributionManagement>

然后项目打包deploy,打包过程中遇到一些错误,参考https://blog.csdn.net/erlian1992/article/details/79021199解决

打包的项目名分别为dealer-parent和hello的springboot项目,

打包hello项目运行clean deploy打包控制台运行过程如下

  1 [WARNING] 
  2 [WARNING] Some problems were encountered while building the effective settings
  3 [WARNING] expected START_TAG or END_TAG not TEXT (position: TEXT seen ...</url>\n          <releases>\n\ua0\ua0\ua0\ua0\ua0\ua0\ua0\ua0\ua0\ua0\ua0\ua0\ua0\ua0\ua0\ua0\ua0 <e... @228:21)  @ D:\java\maven包\settings.xml, line 228, column 21
  4 [WARNING] 
  5 [INFO] Scanning for projects...
  6 [INFO] 
  7 [INFO] ---------------------------< com.zxy:hello >----------------------------
  8 [INFO] Building hello 0.0.1-SNAPSHOT
  9 [INFO] --------------------------------[ jar ]---------------------------------
 10 [INFO] 
 11 [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ hello ---
 12 [INFO] Deleting D:\worksheet\hello\target
 13 [INFO] 
 14 [INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ hello ---
 15 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 16 [INFO] Copying 1 resource
 17 [INFO] Copying 0 resource
 18 [INFO] 
 19 [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ hello ---
 20 [INFO] Changes detected - recompiling the module!
 21 [INFO] Compiling 1 source file to D:\worksheet\hello\target\classes
 22 [INFO] 
 23 [INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ hello ---
 24 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 25 [INFO] skip non existing resourceDirectory D:\worksheet\hello\src\test\resources
 26 [INFO] 
 27 [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ hello ---
 28 [INFO] Changes detected - recompiling the module!
 29 [INFO] Compiling 1 source file to D:\worksheet\hello\target\test-classes
 30 [INFO] 
 31 [INFO] --- maven-surefire-plugin:2.21.0:test (default-test) @ hello ---
 32 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/surefire/maven-surefire-common/2.21.0/maven-surefire-common-2.21.0.pom
 33 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/plugin-tools/maven-plugin-annotations/3.5/maven-plugin-annotations-3.5.pom
 34 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/plugin-tools/maven-plugin-tools/3.5/maven-plugin-tools-3.5.pom
 35 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/surefire/surefire-api/2.21.0/surefire-api-2.21.0.pom
 36 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/surefire/surefire-logger-api/2.21.0/surefire-logger-api-2.21.0.pom
 37 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/surefire/surefire-booter/2.21.0/surefire-booter-2.21.0.pom
 38 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.pom
 39 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/shared/maven-shared-components/15/maven-shared-components-15.pom
 40 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/maven-toolchain/2.2.1/maven-toolchain-2.2.1.pom
 41 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/codehaus/plexus/plexus-java/0.9.3/plexus-java-0.9.3.pom
 42 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/codehaus/plexus/plexus-languages/0.9.3/plexus-languages-0.9.3.pom
 43 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/surefire/maven-surefire-common/2.21.0/maven-surefire-common-2.21.0.jar
 44 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/plugin-tools/maven-plugin-annotations/3.5/maven-plugin-annotations-3.5.jar
 45 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/surefire/surefire-api/2.21.0/surefire-api-2.21.0.jar
 46 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/surefire/surefire-logger-api/2.21.0/surefire-logger-api-2.21.0.jar
 47 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/surefire/surefire-booter/2.21.0/surefire-booter-2.21.0.jar
 48 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar
 49 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/maven-plugin-descriptor/2.2.1/maven-plugin-descriptor-2.2.1.jar
 50 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/maven-core/2.2.1/maven-core-2.2.1.jar
 51 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/maven-plugin-parameter-documenter/2.2.1/maven-plugin-parameter-documenter-2.2.1.jar
 52 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar
 53 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar
 54 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar
 55 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/maven-error-diagnostics/2.2.1/maven-error-diagnostics-2.2.1.jar
 56 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/maven-monitor/2.2.1/maven-monitor-2.2.1.jar
 57 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/classworlds/classworlds/1.1/classworlds-1.1.jar
 58 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/maven-toolchain/2.2.1/maven-toolchain-2.2.1.jar
 59 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/codehaus/plexus/plexus-java/0.9.3/plexus-java-0.9.3.jar
 60 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/surefire/surefire-junit4/2.21.0/surefire-junit4-2.21.0.pom
 61 [INFO] Downloaded from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/surefire/surefire-junit4/2.21.0/surefire-junit4-2.21.0.pom (3.1 kB at 5.0 kB/s)
 62 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/surefire/surefire-providers/2.21.0/surefire-providers-2.21.0.pom
 63 [INFO] Downloaded from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/surefire/surefire-providers/2.21.0/surefire-providers-2.21.0.pom (2.5 kB at 2.3 kB/s)
 64 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/surefire/surefire-junit4/2.21.0/surefire-junit4-2.21.0.jar
 65 [INFO] Downloaded from : http://192.168.10.194:8081/repository/maven-public/org/apache/maven/surefire/surefire-junit4/2.21.0/surefire-junit4-2.21.0.jar (85 kB at 118 kB/s)
 66 [INFO] 
 67 [INFO] -------------------------------------------------------
 68 [INFO]  T E S T S
 69 [INFO] -------------------------------------------------------
 70 [INFO] Running com.zxy.dealer.HelloApplicationTests
 71 20:11:29.123 [main] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class com.zxy.dealer.HelloApplicationTests]
 72 20:11:29.132 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
 73 20:11:29.174 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)]
 74 20:11:29.202 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.zxy.dealer.HelloApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
 75 20:11:29.242 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.zxy.dealer.HelloApplicationTests], using SpringBootContextLoader
 76 20:11:29.245 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.zxy.dealer.HelloApplicationTests]: class path resource [com/zxy/dealer/HelloApplicationTests-context.xml] does not exist
 77 20:11:29.246 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.zxy.dealer.HelloApplicationTests]: class path resource [com/zxy/dealer/HelloApplicationTestsContext.groovy] does not exist
 78 20:11:29.247 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.zxy.dealer.HelloApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
 79 20:11:29.248 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.zxy.dealer.HelloApplicationTests]: HelloApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
 80 20:11:29.336 [main] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [com.zxy.dealer.HelloApplicationTests]
 81 20:11:29.346 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding PropertySource 'systemProperties' with lowest search precedence
 82 20:11:29.346 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding PropertySource 'systemEnvironment' with lowest search precedence
 83 20:11:29.349 [main] DEBUG org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [MapPropertySource@670971910 {name='systemProperties', properties={java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=D:\java\java1.8\jdk1.8\jre\bin, java.vm.version=25.161-b12, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.country=CN, user.script=, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=, java.vm.specification.name=Java Virtual Machine Specification, user.dir=D:\worksheet\hello, java.runtime.version=1.8.0_161-b12, basedir=D:\worksheet\hello, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=D:\java\java1.8\jdk1.8\jre\lib\endorsed, os.arch=amd64, surefire.real.class.path=C:\Users\litan\AppData\Local\Temp\surefire3717453829808644142\surefirebooter2029877130053993169.jar, java.io.tmpdir=C:\Users\litan\AppData\Local\Temp\, line.separator=
 84 , java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 10, sun.jnu.encoding=GBK, java.library.path=D:\java\java1.8\jdk1.8\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ProgramData\Oracle\Java\javapath;D:\java\oracle\product\11.2.0\dbhome_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\lenovo\easyplussdk\bin;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.2 & MySQL Utilities 1.5.2 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.2 & MySQL Utilities 1.5.2 1.5\Doctrine extensions for PHP\;D:\java\java1.8\jdk1.8\bin;JAVA_HOME%\jre\bin;D:\java\Z_review\apache-tomcat-7.0.67\bin;D:\我的软件;办公软;\svnServer\bin;%ma;en_home%\bin;D:\我的软件\数据库\putty\;C:\Pro;ram Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;";D:\我的软件\专业软件\zookeeper\zookeeper-3.4.9/bin; D:\我的软件\专业软件\zookeeper\zookeeper-3.4.9/conf";D:\java\java1.8\jdk1.8\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\WINDOWS\System32\OpenSSH\;D:\java软件安装资源汇总\maven建项目\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin;D:\protobufc\bin;C:\Users\litan\AppData\Local\Microsoft\WindowsApps;D:\java软件安装资源汇总\2017-6-25\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin;;., surefire.test.class.path=D:\worksheet\hello\target\test-classes;D:\worksheet\hello\target\classes;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-starter\2.0.6.RELEASE\spring-boot-starter-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot\2.0.6.RELEASE\spring-boot-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-context\5.0.10.RELEASE\spring-context-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-aop\5.0.10.RELEASE\spring-aop-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-beans\5.0.10.RELEASE\spring-beans-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-expression\5.0.10.RELEASE\spring-expression-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.0.6.RELEASE\spring-boot-autoconfigure-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.0.6.RELEASE\spring-boot-starter-logging-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\litan\.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\litan\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.10.0\log4j-to-slf4j-2.10.0.jar;C:\Users\litan\.m2\repository\org\apache\logging\log4j\log4j-api\2.10.0\log4j-api-2.10.0.jar;C:\Users\litan\.m2\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;C:\Users\litan\.m2\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;C:\Users\litan\.m2\repository\org\springframework\spring-core\5.0.10.RELEASE\spring-core-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-jcl\5.0.10.RELEASE\spring-jcl-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\yaml\snakeyaml\1.19\snakeyaml-1.19.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-starter-test\2.0.6.RELEASE\spring-boot-starter-test-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-test\2.0.6.RELEASE\spring-boot-test-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-test-autoconfigure\2.0.6.RELEASE\spring-boot-test-autoconfigure-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\com\jayway\jsonpath\json-path\2.4.0\json-path-2.4.0.jar;C:\Users\litan\.m2\repository\net\minidev\json-smart\2.3\json-smart-2.3.jar;C:\Users\litan\.m2\repository\net\minidev\accessors-smart\1.2\accessors-smart-1.2.jar;C:\Users\litan\.m2\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;C:\Users\litan\.m2\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;C:\Users\litan\.m2\repository\junit\junit\4.12\junit-4.12.jar;C:\Users\litan\.m2\repository\org\assertj\assertj-core\3.9.1\assertj-core-3.9.1.jar;C:\Users\litan\.m2\repository\org\mockito\mockito-core\2.15.0\mockito-core-2.15.0.jar;C:\Users\litan\.m2\repository\net\bytebuddy\byte-buddy\1.7.11\byte-buddy-1.7.11.jar;C:\Users\litan\.m2\repository\net\bytebuddy\byte-buddy-agent\1.7.11\byte-buddy-agent-1.7.11.jar;C:\Users\litan\.m2\repository\org\objenesis\objenesis\2.6\objenesis-2.6.jar;C:\Users\litan\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\litan\.m2\repository\org\hamcrest\hamcrest-library\1.3\hamcrest-library-1.3.jar;C:\Users\litan\.m2\repository\org\skyscreamer\jsonassert\1.5.0\jsonassert-1.5.0.jar;C:\Users\litan\.m2\repository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;C:\Users\litan\.m2\repository\org\springframework\spring-test\5.0.10.RELEASE\spring-test-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\xmlunit\xmlunit-core\2.5.1\xmlunit-core-2.5.1.jar;, java.specification.name=Java Platform API Specification, java.class.version=52.0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=10.0, user.home=C:\Users\litan, user.timezone=Asia/Shanghai, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=GBK, java.specification.version=1.8, java.class.path=D:\worksheet\hello\target\test-classes;D:\worksheet\hello\target\classes;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-starter\2.0.6.RELEASE\spring-boot-starter-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot\2.0.6.RELEASE\spring-boot-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-context\5.0.10.RELEASE\spring-context-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-aop\5.0.10.RELEASE\spring-aop-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-beans\5.0.10.RELEASE\spring-beans-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-expression\5.0.10.RELEASE\spring-expression-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.0.6.RELEASE\spring-boot-autoconfigure-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.0.6.RELEASE\spring-boot-starter-logging-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\litan\.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\litan\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.10.0\log4j-to-slf4j-2.10.0.jar;C:\Users\litan\.m2\repository\org\apache\logging\log4j\log4j-api\2.10.0\log4j-api-2.10.0.jar;C:\Users\litan\.m2\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;C:\Users\litan\.m2\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;C:\Users\litan\.m2\repository\org\springframework\spring-core\5.0.10.RELEASE\spring-core-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-jcl\5.0.10.RELEASE\spring-jcl-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\yaml\snakeyaml\1.19\snakeyaml-1.19.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-starter-test\2.0.6.RELEASE\spring-boot-starter-test-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-test\2.0.6.RELEASE\spring-boot-test-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-test-autoconfigure\2.0.6.RELEASE\spring-boot-test-autoconfigure-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\com\jayway\jsonpath\json-path\2.4.0\json-path-2.4.0.jar;C:\Users\litan\.m2\repository\net\minidev\json-smart\2.3\json-smart-2.3.jar;C:\Users\litan\.m2\repository\net\minidev\accessors-smart\1.2\accessors-smart-1.2.jar;C:\Users\litan\.m2\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;C:\Users\litan\.m2\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;C:\Users\litan\.m2\repository\junit\junit\4.12\junit-4.12.jar;C:\Users\litan\.m2\repository\org\assertj\assertj-core\3.9.1\assertj-core-3.9.1.jar;C:\Users\litan\.m2\repository\org\mockito\mockito-core\2.15.0\mockito-core-2.15.0.jar;C:\Users\litan\.m2\repository\net\bytebuddy\byte-buddy\1.7.11\byte-buddy-1.7.11.jar;C:\Users\litan\.m2\repository\net\bytebuddy\byte-buddy-agent\1.7.11\byte-buddy-agent-1.7.11.jar;C:\Users\litan\.m2\repository\org\objenesis\objenesis\2.6\objenesis-2.6.jar;C:\Users\litan\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\litan\.m2\repository\org\hamcrest\hamcrest-library\1.3\hamcrest-library-1.3.jar;C:\Users\litan\.m2\repository\org\skyscreamer\jsonassert\1.5.0\jsonassert-1.5.0.jar;C:\Users\litan\.m2\repository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;C:\Users\litan\.m2\repository\org\springframework\spring-test\5.0.10.RELEASE\spring-test-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\xmlunit\xmlunit-core\2.5.1\xmlunit-core-2.5.1.jar;, user.name=litan, java.vm.specification.version=1.8, sun.java.command=C:\Users\litan\AppData\Local\Temp\surefire3717453829808644142\surefirebooter2029877130053993169.jar C:\Users\litan\AppData\Local\Temp\surefire3717453829808644142 2018-10-27T20-11-20_781-jvmRun1 surefire5913543097567388617tmp surefire_04986706812391524529tmp, java.home=D:\java\java1.8\jdk1.8\jre, sun.arch.data.model=64, user.language=zh, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.8.0_161, java.ext.dirs=D:\java\java1.8\jdk1.8\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext, sun.boot.class.path=D:\java\java1.8\jdk1.8\jre\lib\resources.jar;D:\java\java1.8\jdk1.8\jre\lib\rt.jar;D:\java\java1.8\jdk1.8\jre\lib\sunrsasign.jar;D:\java\java1.8\jdk1.8\jre\lib\jsse.jar;D:\java\java1.8\jdk1.8\jre\lib\jce.jar;D:\java\java1.8\jdk1.8\jre\lib\charsets.jar;D:\java\java1.8\jdk1.8\jre\lib\jfr.jar;D:\java\java1.8\jdk1.8\jre\classes, java.vendor=Oracle Corporation, localRepository=C:\Users\litan\.m2\repository, file.separator=\, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows, sun.cpu.isalist=amd64}}, SystemEnvironmentPropertySource@1601292138 {name='systemEnvironment', properties={PATH=C:\ProgramData\Oracle\Java\javapath;D:\java\oracle\product\11.2.0\dbhome_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\lenovo\easyplussdk\bin;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.2 & MySQL Utilities 1.5.2 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.2 & MySQL Utilities 1.5.2 1.5\Doctrine extensions for PHP\;D:\java\java1.8\jdk1.8\bin;JAVA_HOME%\jre\bin;D:\java\Z_review\apache-tomcat-7.0.67\bin;D:\我的软件;办公软;\svnServer\bin;%ma;en_home%\bin;D:\我的软件\数据库\putty\;C:\Pro;ram Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;";D:\我的软件\专业软件\zookeeper\zookeeper-3.4.9/bin; D:\我的软件\专业软件\zookeeper\zookeeper-3.4.9/conf";D:\java\java1.8\jdk1.8\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\WINDOWS\System32\OpenSSH\;D:\java软件安装资源汇总\maven建项目\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin;D:\protobufc\bin;C:\Users\litan\AppData\Local\Microsoft\WindowsApps;D:\java软件安装资源汇总\2017-6-25\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin;, USERDOMAIN_ROAMINGPROFILE=LITAN, PROCESSOR_LEVEL=6, SYSTEMDRIVE=C:, SESSIONNAME=Console, ALLUSERSPROFILE=C:\ProgramData, PROCESSOR_ARCHITECTURE=AMD64, DRIVERDATA=C:\Windows\System32\Drivers\DriverData, MAVEN_HOME=D:\java软件安装资源汇总\maven建项目\apache-maven-3.3.9-bin\apache-maven-3.3.9, PROGRAMFILES=C:\Program Files, PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;D:\我的软件\办公软件\svnServer\PowerShellModules, PROGRAMDATA=C:\ProgramData, USERNAME=litan, VISUALSVN_SERVER=D:\我的软件\办公软件\svnServer\, FPS_BROWSER_USER_PROFILE_STRING=Default, ONEDRIVE=C:\Users\litan\OneDrive, CONFIGSETROOT=C:\WINDOWS\ConfigSetRoot, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, WINDIR=C:\WINDOWS, HOMEPATH=\Users\litan, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 61 Stepping 4, GenuineIntel, PUBLIC=C:\Users\Public, =::=::\, ZOOKEEPER_HOME=D:\我的软件\专业软件\zookeeper\zookeeper-3.4.9, LOCALAPPDATA=C:\Users\litan\AppData\Local, EASYPLUSSDK="C:\Program Files (x86)\Common Files\lenovo\easyplussdk\bin", COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files, USERDOMAIN=LITAN, FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer, LOGONSERVER=\\LITAN, JAVA_HOME=D:\java\java1.8\jdk1.8, PROMPT=$P$G, PROGRAMFILES(X86)=C:\Program Files (x86), =C:=C:\, APPDATA=C:\Users\litan\AppData\Roaming, PROGRAMW6432=C:\Program Files, SYSTEMROOT=C:\WINDOWS, OS=Windows_NT, COMMONPROGRAMW6432=C:\Program Files\Common Files, COMPUTERNAME=LITAN, COMMONPROGRAMFILES=C:\Program Files\Common Files, COMSPEC=C:\WINDOWS\system32\cmd.exe, CATALINA_HOME=D:\java\Z_review\apache-tomcat-7.0.67, PROCESSOR_REVISION=3d04, CLASSPATH=.;D:\java\java1.8\jdk1.8\lib;D:\java\java1.8\jdk1.8\lib\tools.jar, =D:=D:\worksheet\hello, TEMP=C:\Users\litan\AppData\Local\Temp, HOMEDRIVE=C:, USERPROFILE=C:\Users\litan, TMP=C:\Users\litan\AppData\Local\Temp, NUMBER_OF_PROCESSORS=4}}]
 85 20:11:29.397 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Resolved classpath location [com/zxy/dealer/] to resources [URL [file:/D:/worksheet/hello/target/test-classes/com/zxy/dealer/], URL [file:/D:/worksheet/hello/target/classes/com/zxy/dealer/]]
 86 20:11:29.398 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Looking for matching resources in directory tree [D:\worksheet\hello\target\test-classes\com\zxy\dealer]
 87 20:11:29.399 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Searching directory [D:\worksheet\hello\target\test-classes\com\zxy\dealer] for files matching pattern [D:/worksheet/hello/target/test-classes/com/zxy/dealer/*.class]
 88 20:11:29.405 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Looking for matching resources in directory tree [D:\worksheet\hello\target\classes\com\zxy\dealer]
 89 20:11:29.406 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Searching directory [D:\worksheet\hello\target\classes\com\zxy\dealer] for files matching pattern [D:/worksheet/hello/target/classes/com/zxy/dealer/*.class]
 90 20:11:29.407 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Resolved location pattern [classpath*:com/zxy/dealer/*.class] to resources [file [D:\worksheet\hello\target\test-classes\com\zxy\dealer\HelloApplicationTests.class], file [D:\worksheet\hello\target\classes\com\zxy\dealer\HelloApplication.class]]
 91 20:11:29.745 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [D:\worksheet\hello\target\classes\com\zxy\dealer\HelloApplication.class]
 92 20:11:29.753 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.zxy.dealer.HelloApplication for test class com.zxy.dealer.HelloApplicationTests
 93 20:11:30.205 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.zxy.dealer.HelloApplicationTests]: using defaults.
 94 20:11:30.206 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
 95 20:11:30.223 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [javax/servlet/ServletContext]
 96 20:11:30.226 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttributeSource]
 97 20:11:30.227 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute]
 98 20:11:30.228 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@7c7b252e, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@4d5d943d, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@368f2016, org.springframework.test.context.support.DirtiesContextTestExecutionListener@4c583ecf, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@692f203f, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@48f2bd5b, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@7b2bbc3, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@a1153bc, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@1aafa419]
 99 20:11:30.232 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.zxy.dealer.HelloApplicationTests]
100 20:11:30.232 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.zxy.dealer.HelloApplicationTests]
101 20:11:30.235 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.zxy.dealer.HelloApplicationTests]
102 20:11:30.235 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.zxy.dealer.HelloApplicationTests]
103 20:11:30.236 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.zxy.dealer.HelloApplicationTests]
104 20:11:30.237 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.zxy.dealer.HelloApplicationTests]
105 20:11:30.244 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@411f53a0 testClass = HelloApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@2b71e916 testClass = HelloApplicationTests, locations = '{}', classes = '{class com.zxy.dealer.HelloApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@13eb8acf, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@43738a82, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@2eda0940, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@fcd6521], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map[[empty]]], class annotated with @DirtiesContext [false] with mode [null].
106 20:11:30.245 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.zxy.dealer.HelloApplicationTests]
107 20:11:30.245 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.zxy.dealer.HelloApplicationTests]
108 20:11:30.260 [main] DEBUG org.springframework.test.context.support.DependencyInjectionTestExecutionListener - Performing dependency injection for test context [[DefaultTestContext@411f53a0 testClass = HelloApplicationTests, testInstance = com.zxy.dealer.HelloApplicationTests@54d9d12d, testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@2b71e916 testClass = HelloApplicationTests, locations = '{}', classes = '{class com.zxy.dealer.HelloApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@13eb8acf, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@43738a82, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@2eda0940, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@fcd6521], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map[[empty]]]].
109 20:11:30.370 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding PropertySource 'systemProperties' with lowest search precedence
110 20:11:30.371 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding PropertySource 'systemEnvironment' with lowest search precedence
111 20:11:30.371 [main] DEBUG org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [MapPropertySource@1896828359 {name='systemProperties', properties={java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=D:\java\java1.8\jdk1.8\jre\bin, java.vm.version=25.161-b12, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.country=CN, user.script=, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=, java.vm.specification.name=Java Virtual Machine Specification, user.dir=D:\worksheet\hello, java.runtime.version=1.8.0_161-b12, basedir=D:\worksheet\hello, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=D:\java\java1.8\jdk1.8\jre\lib\endorsed, os.arch=amd64, surefire.real.class.path=C:\Users\litan\AppData\Local\Temp\surefire3717453829808644142\surefirebooter2029877130053993169.jar, java.io.tmpdir=C:\Users\litan\AppData\Local\Temp\, line.separator=
112 , java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 10, sun.jnu.encoding=GBK, java.library.path=D:\java\java1.8\jdk1.8\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ProgramData\Oracle\Java\javapath;D:\java\oracle\product\11.2.0\dbhome_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\lenovo\easyplussdk\bin;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.2 & MySQL Utilities 1.5.2 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.2 & MySQL Utilities 1.5.2 1.5\Doctrine extensions for PHP\;D:\java\java1.8\jdk1.8\bin;JAVA_HOME%\jre\bin;D:\java\Z_review\apache-tomcat-7.0.67\bin;D:\我的软件;办公软;\svnServer\bin;%ma;en_home%\bin;D:\我的软件\数据库\putty\;C:\Pro;ram Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;";D:\我的软件\专业软件\zookeeper\zookeeper-3.4.9/bin; D:\我的软件\专业软件\zookeeper\zookeeper-3.4.9/conf";D:\java\java1.8\jdk1.8\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\WINDOWS\System32\OpenSSH\;D:\java软件安装资源汇总\maven建项目\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin;D:\protobufc\bin;C:\Users\litan\AppData\Local\Microsoft\WindowsApps;D:\java软件安装资源汇总\2017-6-25\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin;;., surefire.test.class.path=D:\worksheet\hello\target\test-classes;D:\worksheet\hello\target\classes;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-starter\2.0.6.RELEASE\spring-boot-starter-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot\2.0.6.RELEASE\spring-boot-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-context\5.0.10.RELEASE\spring-context-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-aop\5.0.10.RELEASE\spring-aop-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-beans\5.0.10.RELEASE\spring-beans-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-expression\5.0.10.RELEASE\spring-expression-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.0.6.RELEASE\spring-boot-autoconfigure-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.0.6.RELEASE\spring-boot-starter-logging-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\litan\.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\litan\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.10.0\log4j-to-slf4j-2.10.0.jar;C:\Users\litan\.m2\repository\org\apache\logging\log4j\log4j-api\2.10.0\log4j-api-2.10.0.jar;C:\Users\litan\.m2\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;C:\Users\litan\.m2\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;C:\Users\litan\.m2\repository\org\springframework\spring-core\5.0.10.RELEASE\spring-core-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-jcl\5.0.10.RELEASE\spring-jcl-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\yaml\snakeyaml\1.19\snakeyaml-1.19.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-starter-test\2.0.6.RELEASE\spring-boot-starter-test-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-test\2.0.6.RELEASE\spring-boot-test-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-test-autoconfigure\2.0.6.RELEASE\spring-boot-test-autoconfigure-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\com\jayway\jsonpath\json-path\2.4.0\json-path-2.4.0.jar;C:\Users\litan\.m2\repository\net\minidev\json-smart\2.3\json-smart-2.3.jar;C:\Users\litan\.m2\repository\net\minidev\accessors-smart\1.2\accessors-smart-1.2.jar;C:\Users\litan\.m2\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;C:\Users\litan\.m2\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;C:\Users\litan\.m2\repository\junit\junit\4.12\junit-4.12.jar;C:\Users\litan\.m2\repository\org\assertj\assertj-core\3.9.1\assertj-core-3.9.1.jar;C:\Users\litan\.m2\repository\org\mockito\mockito-core\2.15.0\mockito-core-2.15.0.jar;C:\Users\litan\.m2\repository\net\bytebuddy\byte-buddy\1.7.11\byte-buddy-1.7.11.jar;C:\Users\litan\.m2\repository\net\bytebuddy\byte-buddy-agent\1.7.11\byte-buddy-agent-1.7.11.jar;C:\Users\litan\.m2\repository\org\objenesis\objenesis\2.6\objenesis-2.6.jar;C:\Users\litan\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\litan\.m2\repository\org\hamcrest\hamcrest-library\1.3\hamcrest-library-1.3.jar;C:\Users\litan\.m2\repository\org\skyscreamer\jsonassert\1.5.0\jsonassert-1.5.0.jar;C:\Users\litan\.m2\repository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;C:\Users\litan\.m2\repository\org\springframework\spring-test\5.0.10.RELEASE\spring-test-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\xmlunit\xmlunit-core\2.5.1\xmlunit-core-2.5.1.jar;, java.specification.name=Java Platform API Specification, java.class.version=52.0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=10.0, user.home=C:\Users\litan, user.timezone=Asia/Shanghai, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=GBK, java.specification.version=1.8, java.class.path=D:\worksheet\hello\target\test-classes;D:\worksheet\hello\target\classes;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-starter\2.0.6.RELEASE\spring-boot-starter-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot\2.0.6.RELEASE\spring-boot-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-context\5.0.10.RELEASE\spring-context-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-aop\5.0.10.RELEASE\spring-aop-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-beans\5.0.10.RELEASE\spring-beans-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-expression\5.0.10.RELEASE\spring-expression-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.0.6.RELEASE\spring-boot-autoconfigure-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.0.6.RELEASE\spring-boot-starter-logging-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\litan\.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\litan\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.10.0\log4j-to-slf4j-2.10.0.jar;C:\Users\litan\.m2\repository\org\apache\logging\log4j\log4j-api\2.10.0\log4j-api-2.10.0.jar;C:\Users\litan\.m2\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;C:\Users\litan\.m2\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;C:\Users\litan\.m2\repository\org\springframework\spring-core\5.0.10.RELEASE\spring-core-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\spring-jcl\5.0.10.RELEASE\spring-jcl-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\yaml\snakeyaml\1.19\snakeyaml-1.19.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-starter-test\2.0.6.RELEASE\spring-boot-starter-test-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-test\2.0.6.RELEASE\spring-boot-test-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\org\springframework\boot\spring-boot-test-autoconfigure\2.0.6.RELEASE\spring-boot-test-autoconfigure-2.0.6.RELEASE.jar;C:\Users\litan\.m2\repository\com\jayway\jsonpath\json-path\2.4.0\json-path-2.4.0.jar;C:\Users\litan\.m2\repository\net\minidev\json-smart\2.3\json-smart-2.3.jar;C:\Users\litan\.m2\repository\net\minidev\accessors-smart\1.2\accessors-smart-1.2.jar;C:\Users\litan\.m2\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;C:\Users\litan\.m2\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;C:\Users\litan\.m2\repository\junit\junit\4.12\junit-4.12.jar;C:\Users\litan\.m2\repository\org\assertj\assertj-core\3.9.1\assertj-core-3.9.1.jar;C:\Users\litan\.m2\repository\org\mockito\mockito-core\2.15.0\mockito-core-2.15.0.jar;C:\Users\litan\.m2\repository\net\bytebuddy\byte-buddy\1.7.11\byte-buddy-1.7.11.jar;C:\Users\litan\.m2\repository\net\bytebuddy\byte-buddy-agent\1.7.11\byte-buddy-agent-1.7.11.jar;C:\Users\litan\.m2\repository\org\objenesis\objenesis\2.6\objenesis-2.6.jar;C:\Users\litan\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\litan\.m2\repository\org\hamcrest\hamcrest-library\1.3\hamcrest-library-1.3.jar;C:\Users\litan\.m2\repository\org\skyscreamer\jsonassert\1.5.0\jsonassert-1.5.0.jar;C:\Users\litan\.m2\repository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;C:\Users\litan\.m2\repository\org\springframework\spring-test\5.0.10.RELEASE\spring-test-5.0.10.RELEASE.jar;C:\Users\litan\.m2\repository\org\xmlunit\xmlunit-core\2.5.1\xmlunit-core-2.5.1.jar;, user.name=litan, java.vm.specification.version=1.8, sun.java.command=C:\Users\litan\AppData\Local\Temp\surefire3717453829808644142\surefirebooter2029877130053993169.jar C:\Users\litan\AppData\Local\Temp\surefire3717453829808644142 2018-10-27T20-11-20_781-jvmRun1 surefire5913543097567388617tmp surefire_04986706812391524529tmp, java.home=D:\java\java1.8\jdk1.8\jre, sun.arch.data.model=64, user.language=zh, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.8.0_161, java.ext.dirs=D:\java\java1.8\jdk1.8\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext, sun.boot.class.path=D:\java\java1.8\jdk1.8\jre\lib\resources.jar;D:\java\java1.8\jdk1.8\jre\lib\rt.jar;D:\java\java1.8\jdk1.8\jre\lib\sunrsasign.jar;D:\java\java1.8\jdk1.8\jre\lib\jsse.jar;D:\java\java1.8\jdk1.8\jre\lib\jce.jar;D:\java\java1.8\jdk1.8\jre\lib\charsets.jar;D:\java\java1.8\jdk1.8\jre\lib\jfr.jar;D:\java\java1.8\jdk1.8\jre\classes, java.vendor=Oracle Corporation, localRepository=C:\Users\litan\.m2\repository, file.separator=\, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows, sun.cpu.isalist=amd64}}, SystemEnvironmentPropertySource@536122141 {name='systemEnvironment', properties={PATH=C:\ProgramData\Oracle\Java\javapath;D:\java\oracle\product\11.2.0\dbhome_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\lenovo\easyplussdk\bin;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.2 & MySQL Utilities 1.5.2 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.2 & MySQL Utilities 1.5.2 1.5\Doctrine extensions for PHP\;D:\java\java1.8\jdk1.8\bin;JAVA_HOME%\jre\bin;D:\java\Z_review\apache-tomcat-7.0.67\bin;D:\我的软件;办公软;\svnServer\bin;%ma;en_home%\bin;D:\我的软件\数据库\putty\;C:\Pro;ram Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;";D:\我的软件\专业软件\zookeeper\zookeeper-3.4.9/bin; D:\我的软件\专业软件\zookeeper\zookeeper-3.4.9/conf";D:\java\java1.8\jdk1.8\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\WINDOWS\System32\OpenSSH\;D:\java软件安装资源汇总\maven建项目\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin;D:\protobufc\bin;C:\Users\litan\AppData\Local\Microsoft\WindowsApps;D:\java软件安装资源汇总\2017-6-25\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin;, USERDOMAIN_ROAMINGPROFILE=LITAN, PROCESSOR_LEVEL=6, SYSTEMDRIVE=C:, SESSIONNAME=Console, ALLUSERSPROFILE=C:\ProgramData, PROCESSOR_ARCHITECTURE=AMD64, DRIVERDATA=C:\Windows\System32\Drivers\DriverData, MAVEN_HOME=D:\java软件安装资源汇总\maven建项目\apache-maven-3.3.9-bin\apache-maven-3.3.9, PROGRAMFILES=C:\Program Files, PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;D:\我的软件\办公软件\svnServer\PowerShellModules, PROGRAMDATA=C:\ProgramData, USERNAME=litan, VISUALSVN_SERVER=D:\我的软件\办公软件\svnServer\, FPS_BROWSER_USER_PROFILE_STRING=Default, ONEDRIVE=C:\Users\litan\OneDrive, CONFIGSETROOT=C:\WINDOWS\ConfigSetRoot, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, WINDIR=C:\WINDOWS, HOMEPATH=\Users\litan, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 61 Stepping 4, GenuineIntel, PUBLIC=C:\Users\Public, =::=::\, ZOOKEEPER_HOME=D:\我的软件\专业软件\zookeeper\zookeeper-3.4.9, LOCALAPPDATA=C:\Users\litan\AppData\Local, EASYPLUSSDK="C:\Program Files (x86)\Common Files\lenovo\easyplussdk\bin", COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files, USERDOMAIN=LITAN, FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer, LOGONSERVER=\\LITAN, JAVA_HOME=D:\java\java1.8\jdk1.8, PROMPT=$P$G, PROGRAMFILES(X86)=C:\Program Files (x86), =C:=C:\, APPDATA=C:\Users\litan\AppData\Roaming, PROGRAMW6432=C:\Program Files, SYSTEMROOT=C:\WINDOWS, OS=Windows_NT, COMMONPROGRAMW6432=C:\Program Files\Common Files, COMPUTERNAME=LITAN, COMMONPROGRAMFILES=C:\Program Files\Common Files, COMSPEC=C:\WINDOWS\system32\cmd.exe, CATALINA_HOME=D:\java\Z_review\apache-tomcat-7.0.67, PROCESSOR_REVISION=3d04, CLASSPATH=.;D:\java\java1.8\jdk1.8\lib;D:\java\java1.8\jdk1.8\lib\tools.jar, =D:=D:\worksheet\hello, TEMP=C:\Users\litan\AppData\Local\Temp, HOMEDRIVE=C:, USERPROFILE=C:\Users\litan, TMP=C:\Users\litan\AppData\Local\Temp, NUMBER_OF_PROCESSORS=4}}]
113 20:11:30.375 [main] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true, server.port=-1}
114 20:11:30.375 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding PropertySource 'Inlined Test Properties' with highest search precedence
115 
116   .   ____          _            __ _ _
117  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
118 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
119  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
120   '  |____| .__|_| |_|_| |_\__, | / / / /
121  =========|_|==============|___/=/_/_/_/
122  :: Spring Boot ::        (v2.0.6.RELEASE)
123 
124 2018-10-27 20:11:31.039  INFO 16340 --- [           main] com.zxy.dealer.HelloApplicationTests     : Starting HelloApplicationTests on litan with PID 16340 (started by litan in D:\worksheet\hello)
125 2018-10-27 20:11:31.041  INFO 16340 --- [           main] com.zxy.dealer.HelloApplicationTests     : No active profile set, falling back to default profiles: default
126 2018-10-27 20:11:31.140  INFO 16340 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@3527942a: startup date [Sat Oct 27 20:11:31 CST 2018]; root of context hierarchy
127 2018-10-27 20:11:32.082  INFO 16340 --- [           main] com.zxy.dealer.HelloApplicationTests     : Started HelloApplicationTests in 1.703 seconds (JVM running for 4.618)
128 [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.306 s - in com.zxy.dealer.HelloApplicationTests
129 2018-10-27 20:11:32.377  INFO 16340 --- [       Thread-2] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@3527942a: startup date [Sat Oct 27 20:11:31 CST 2018]; root of context hierarchy
130 [INFO] 
131 [INFO] Results:
132 [INFO] 
133 [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
134 [INFO] 
135 [INFO] 
136 [INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ hello ---
137 [INFO] Building jar: D:\worksheet\hello\target\hello-0.0.1-SNAPSHOT.jar
138 [INFO] 
139 [INFO] --- spring-boot-maven-plugin:2.0.6.RELEASE:repackage (default) @ hello ---
140 [INFO] 
141 [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ hello ---
142 [INFO] Installing D:\worksheet\hello\target\hello-0.0.1-SNAPSHOT.jar to C:\Users\litan\.m2\repository\com\zxy\hello\0.0.1-SNAPSHOT\hello-0.0.1-SNAPSHOT.jar
143 [INFO] Installing D:\worksheet\hello\pom.xml to C:\Users\litan\.m2\repository\com\zxy\hello\0.0.1-SNAPSHOT\hello-0.0.1-SNAPSHOT.pom
144 [INFO] 
145 [INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ hello ---
146 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-snapshots/com/zxy/hello/0.0.1-SNAPSHOT/maven-metadata.xml
147 [INFO] Uploading to : http://192.168.10.194:8081/repository/maven-snapshots/com/zxy/hello/0.0.1-SNAPSHOT/hello-0.0.1-20181027.121135-1.jar
148 [INFO] Uploaded to : http://192.168.10.194:8081/repository/maven-snapshots/com/zxy/hello/0.0.1-SNAPSHOT/hello-0.0.1-20181027.121135-1.jar (15 MB at 17 MB/s)
149 [INFO] Uploading to : http://192.168.10.194:8081/repository/maven-snapshots/com/zxy/hello/0.0.1-SNAPSHOT/hello-0.0.1-20181027.121135-1.pom
150 [INFO] Uploaded to : http://192.168.10.194:8081/repository/maven-snapshots/com/zxy/hello/0.0.1-SNAPSHOT/hello-0.0.1-20181027.121135-1.pom (1.7 kB at 51 kB/s)
151 [INFO] Downloading from : http://192.168.10.194:8081/repository/maven-snapshots/com/zxy/hello/maven-metadata.xml
152 [INFO] Uploading to : http://192.168.10.194:8081/repository/maven-snapshots/com/zxy/hello/0.0.1-SNAPSHOT/maven-metadata.xml
153 [INFO] Uploaded to : http://192.168.10.194:8081/repository/maven-snapshots/com/zxy/hello/0.0.1-SNAPSHOT/maven-metadata.xml (762 B at 33 kB/s)
154 [INFO] Uploading to : http://192.168.10.194:8081/repository/maven-snapshots/com/zxy/hello/maven-metadata.xml
155 [INFO] Uploaded to : http://192.168.10.194:8081/repository/maven-snapshots/com/zxy/hello/maven-metadata.xml (272 B at 3.7 kB/s)
156 [INFO] ------------------------------------------------------------------------
157 [INFO] BUILD SUCCESS
158 [INFO] ------------------------------------------------------------------------
159 [INFO] Total time: 02:30 min
160 [INFO] Finished at: 2018-10-27T20:11:37+08:00
161 [INFO] ------------------------------------------------------------------------
162 [WARNING] The requested profile "pom.xml" could not be activated because it does not exist.
View Code

打包后查看私服

到这里说明私服配置成功!

 然后我们新建自己的几个仓库,里面的配置和原有的配置完全一样

修改对应的setting.xml

把仓库更换到d盘

 1 <?xml version="1.0" encoding="UTF-8"?>
 2 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
 3           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 4           xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
 5 
 6 <localRepository>D:/javaEnvironment/repo</localRepository>
 7   <servers>    
 8         <server>
 9               <id>my-releases</id>
10               <username>zxy</username>
11                <password>zxy</password>
12         </server>
13         <server>
14               <id>my-snapshots</id>
15               <username>zxy</username>
16                <password>zxy</password>
17         </server>
18   </servers>
19    <mirrors>
20     <mirror>
21         <id>my-nenux</id>
22         <url>http://192.168.10.194:8081/repository/my-public/</url>
23         <mirrorOf>*</mirrorOf>        
24     </mirror>
25         
26   </mirrors>
27  <profiles>
28    <profile>
29       <id>my-nenux</id>
30       <repositories>
31         <repository>
32           <id>nenux</id>
33           <name>nenux</name>
34           <url>http://192.168.10.194:8081/repository/my-public/</url>
35           <releases>
36                   <enabled>true</enabled>
37               </releases>
38               <snapshots>
39                   <enabled>true</enabled>
40               </snapshots>
41         </repository>
42       </repositories>
43       <pluginRepositories>
44         <!--插件库地址-->
45         <pluginRepository>
46           <id>nexus</id>
47           <url>http://192.168.10.194:8081/repository/my-public/</url>
48           <releases>
49             <enabled>true</enabled>
50           </releases>
51           <snapshots>
52             <enabled>true</enabled>
53            </snapshots>
54         </pluginRepository>
55       </pluginRepositories>
56     </profile>
57   </profiles>
58 
59 
60   <activeProfiles>
61     <activeProfile>my-nenux</activeProfile>
62   </activeProfiles>
63 
64   
65 </settings>

maven项目配置引入setting.xml后本地仓库自动配置为d盘的路径

项目更新后,d盘本地仓库

再看私服中my-central也有上面的包

再次打包clean deploy 运行后,私服中也出现

需要注意的是

自己创建仓库版本一定要对应好,否则deploy时候会报错

创建仓库时选择对应的snapshot或者releases,一定要选对哦,否则deploy报错400

 

 

 

 

 

posted @ 2018-10-27 22:34  醉逍遥_001  阅读(1377)  评论(0编辑  收藏  举报