鲁班持续集成环境搭建.
程序员文章站
2022-04-25 22:10:17
...
maven-surefire-plugin插件 打印打包的相关日志.
然后再配合后台的日志排查问题.
maven-resources-plugin 插件将相关资源文件拷贝过来.
然后打包是在122环境,所以zookeeper 和数据库都需要改成122 能连上的环境.
<build>
<finalName>console-batch-test</finalName>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
<resource>
<directory>src/test/java</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
<resource>
<directory>src/test/bus-resources</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
<resource>
<directory>src/test/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>2.18.1</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
<executions>
<execution>
<id>copy-xmls</id>
<phase>process-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/test-classes</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>${basedir}/src/test/java</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
<resource>
<directory>${basedir}/src/test/bus-resources</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
<resource>
<directory>${basedir}/src/test/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!--
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<findbugsXmlOutput>true</findbugsXmlOutput>
<xmlOutput>true</xmlOutput>
</configuration>
</plugin>
-->
</plugins>
</build>
上一篇: Gradle使用阿里镜像
下一篇: jenkins 持续集成解决方案
推荐阅读
-
centos下GitLab+Jenkins持续集成环境搭建(安装jenkins)
-
本地搭建持续集成(AzureDevops)
-
centos下GitLab+Jenkins持续集成环境搭建(安装jenkins)
-
基于Docker+K8S+GitLab/SVN+Jenkins+Harbor搭建持续集成交付环境的详细教程
-
Jenkins持续集成01—Jenkins服务搭建和部署
-
PHP开发环境搭建一:PHP集成环境XAMPP的安装与配置
-
Jenkins多环境持续集成架构实践
-
docker环境下使用gitlab,gitlab-runner 为 NetCore 持续集成
-
在CentOS7上搭建Jenkins+Maven+Git持续集成环境的方法
-
详解基于docker-swarm搭建持续集成集群服务