代码拉取完成,页面将自动刷新
同步操作将从 apple888/nacos-seata-demo 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mcy</groupId>
<artifactId>nacos-seata-demo</artifactId>
<version>1.0.0.RELEASE</version>
<name>nacos-seata-demo</name>
<packaging>pom</packaging>
<description>电商微服务脚手架,基于阿里巴巴springCloudAlibaba组件</description>
<properties>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.build.timestamp.format>yyyy-MM-dd HH</maven.build.timestamp.format>
<spring-cloud.version>Hoxton.SR12</spring-cloud.version>
<spring-cloud-alibaba.version>2.2.6.RELEASE</spring-cloud-alibaba.version>
<seata-spring-boot-starter.version>1.4.2</seata-spring-boot-starter.version>
<spring-boot.version>2.3.12.RELEASE</spring-boot.version>
<sentinel.version>1.8.0</sentinel.version>
<mybatis-plus.version>3.3.2</mybatis-plus.version>
<skywalking.version>8.7.0</skywalking.version>
<xxljob.version>2.3.0</xxljob.version>
<nepxion.version>6.11.0</nepxion.version>
<knife4j.version>3.0.3</knife4j.version>
<fastjson.version>1.2.78</fastjson.version>
<spring.boot.admin.version>2.3.1</spring.boot.admin.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
<maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
<maven.jar.version>3.2.0</maven.jar.version>
<maven.surefire.version>2.22.2</maven.surefire.version>
<maven.versions.plugin.version>2.8.1</maven.versions.plugin.version>
<maven.sonar.version>3.6.0.1398</maven.sonar.version>
<maven.jacoco.version>0.8.3</maven.jacoco.version>
</properties>
<modules>
<!-- 微服务业务模块 -->
<module>auth</module>
<module>admin</module>
<module>business</module>
<module>user</module>
<module>product</module>
<module>order</module>
<module>demo</module>
<!-- 微服务支撑组件 -->
<module>common</module>
<module>dashboard</module>
<module>webgate</module>
<module>support</module>
</modules>
<developers>
<developer>
<name>fuweidi</name>
<url>https://github.com/apple987</url>
</developer>
</developers>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!--spring cloud alibaba-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>${spring-cloud-alibaba.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-dependencies</artifactId>
<version>${spring.boot.admin.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>${mybatis-plus.version}</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
<version>${mybatis-plus.version}</version>
</dependency>
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-dependencies</artifactId>
<version>${knife4j.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}-${project.version}</finalName>
<!-- 全局打包替换属性-->
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.yml</include>
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>**/*.jks</include>
</includes>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<!-- resources资源插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
<configuration>
<delimiters>
<delimiter>@</delimiter>
</delimiters>
<useDefaultDelimiters>false</useDefaultDelimiters>
<encoding>UTF-8</encoding>
<!-- 后缀为pem、pfx的证书文件,字体不过滤,解决字体无法显示 -->
<nonFilteredFileExtensions>
<nonFilteredFileExtension>pem</nonFilteredFileExtension>
<nonFilteredFileExtension>pfx</nonFilteredFileExtension>
<nonFilteredFileExtension>p12</nonFilteredFileExtension>
<nonFilteredFileExtension>key</nonFilteredFileExtension>
<nonFilteredFileExtension>woff</nonFilteredFileExtension>
<nonFilteredFileExtension>woff2</nonFilteredFileExtension>
<nonFilteredFileExtension>eot</nonFilteredFileExtension>
<nonFilteredFileExtension>ttf</nonFilteredFileExtension>
<nonFilteredFileExtension>svg</nonFilteredFileExtension>
</nonFilteredFileExtensions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven.jar.version}</version>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
</plugin>
<!--生成源码jar包-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- java文档插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
</plugin>
<!-- 版本号管理,https://blog.csdn.net/bluetjs/article/details/90295973,一键更新子模块版本号 mvn -N versions:update-child-modules,mvn versions:set -DnewVersion=1.0.0.RELEASE -DgenerateBackupPoms=false -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>${maven.versions.plugin.version}</version>
<configuration>
<generateBackupPoms>false</generateBackupPoms>
</configuration>
</plugin>
<!-- maven单元测试插件,上传sonar分析覆盖率,参考资料:
https://www.pkslow.com/archives/maven-jacoco-sonar
执行如下maven命令:
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install -Pcoverage-per-test sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.login=admin -Dsonar.password=admin -Dsonar.scm.provider=git
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.version}</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${maven.jacoco.version}</version>
<configuration>
<!--<skip>${maven.test.skip}</skip>-->
<destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile>
<dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile>
<output>file</output>
<append>true</append>
<!--<excludes>
<exclude>com/pkslow/basic/containsperformance/**</exclude>
<exclude>com/pkslow/basic/ReadPropertiesFile</exclude>
</excludes>-->
</configuration>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<phase>test-compile</phase>
</execution>
<execution>
<id>jacoco-site</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>post-test</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- sonar分析代码质量插件-->
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>${maven.sonar.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<!-- 对于yaml文件properties可以直接打包替换,yaml有问题,暂时写死吧
可以在profile里面写死固定的环境参数,yaml读取pom参数
生产环境的时候,只需要[email protected]@,打包即可
目前分为4套环境,dev:开发环境 fat:测试环境 uat:集成环境 pro:生产环境
https://docs.spring.io/spring-boot/docs/2.5.3/maven-plugin/reference/htmlsingle
-->
<profiles>
<profile>
<id>dev</id>
<properties>
<profile.active>dev</profile.active>
<service.nacos.host>106.12.32.225</service.nacos.host>
<service.nacos.port>8848</service.nacos.port>
<service.nacos.username>dev</service.nacos.username>
<service.nacos.password>123456</service.nacos.password>
<service.nacos.namespace>5c34b722-fb10-4ae3-872a-c7e46d40f2da</service.nacos.namespace>
<service.group>MALL_GROUP</service.group>
<service.metadata.group>discovery-guide-group</service.metadata.group>
<service.metadata.env>dev</service.metadata.env>
<service.metadata.version>${project.version}</service.metadata.version>
<service.metadata.region>qa</service.metadata.region>
<service.metadata.zone>zone</service.metadata.zone>
<service.log.root>/logs</service.log.root>
<service.admin.username>admin</service.admin.username>
<service.admin.password>admin</service.admin.password>
</properties>
<activation>
<jdk>[1.8,)</jdk>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>fat</id>
<properties>
<profile.active>fat</profile.active>
<service.nacos.host>127.0.0.1</service.nacos.host>
<service.nacos.port>8848</service.nacos.port>
<service.nacos.username>fat</service.nacos.username>
<service.nacos.password>123456</service.nacos.password>
<service.nacos.namespace>77bf9103-a8b8-43fa-a65d-0c0f9b88ae49</service.nacos.namespace>
<service.group>MALL_GROUP</service.group>
<service.metadata.group>MALL_GROUP</service.metadata.group>
<service.metadata.env>dev</service.metadata.env>
<service.metadata.version>${project.version}</service.metadata.version>
<service.metadata.region>qa</service.metadata.region>
<service.metadata.zone>zone</service.metadata.zone>
<service.log.root>/logs</service.log.root>
<service.admin.username>admin</service.admin.username>
<service.admin.password>admin</service.admin.password>
</properties>
</profile>
<profile>
<id>uat</id>
<properties>
<profile.active>uat</profile.active>
<service.nacos.host>127.0.0.1</service.nacos.host>
<service.nacos.port>8848</service.nacos.port>
<service.nacos.username>uat</service.nacos.username>
<service.nacos.password>123456</service.nacos.password>
<service.nacos.namespace>d6a6a5ee-533a-47a4-82e8-dd0a1cfc0bab</service.nacos.namespace>
<service.group>MALL_GROUP</service.group>
<service.metadata.group>discovery-guide-group</service.metadata.group>
<service.metadata.env>dev</service.metadata.env>
<service.metadata.version>${project.version}</service.metadata.version>
<service.metadata.region>qa</service.metadata.region>
<service.metadata.zone>zone</service.metadata.zone>
<service.log.root>/logs</service.log.root>
<service.admin.username>admin</service.admin.username>
<service.admin.password>admin</service.admin.password>
</properties>
</profile>
<profile>
<id>pro</id>
<properties>
<profile.active>pro</profile.active>
<service.nacos.host>127.0.0.1</service.nacos.host>
<service.nacos.port>8848</service.nacos.port>
<service.nacos.username>pro</service.nacos.username>
<service.nacos.password>123456</service.nacos.password>
<service.nacos.namespace>6526a5ee-533a-47a4-82e8-dd0a1cfc0bab</service.nacos.namespace>
<service.group>MALL_GROUP</service.group>
<service.metadata.group>discovery-guide-group</service.metadata.group>
<service.metadata.env>dev</service.metadata.env>
<service.metadata.version>${project.version}</service.metadata.version>
<service.metadata.region>qa</service.metadata.region>
<service.metadata.zone>zone</service.metadata.zone>
<service.log.root>/logs</service.log.root>
<service.admin.username>admin</service.admin.username>
<service.admin.password>admin</service.admin.password>
</properties>
</profile>
</profiles>
</project>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。