|
@@ -27,9 +27,108 @@
|
|
|
<artifactId>postgresql</artifactId>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-validation</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-bootstrap</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>javax.servlet</groupId>
|
|
|
+ <artifactId>javax.servlet-api</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.commons</groupId>
|
|
|
+ <artifactId>commons-lang3</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>cn.hutool</groupId>
|
|
|
+ <artifactId>hutool-all</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>fastjson</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
<groupId>edu.travel</groupId>
|
|
|
<artifactId>edu-travel-common-debezium</artifactId>
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
+ <profiles>
|
|
|
+ <profile>
|
|
|
+ <id>dev</id>
|
|
|
+ <properties>
|
|
|
+ <env>dev</env>
|
|
|
+ <versionCode>${version}-SNAPSHOT</versionCode>
|
|
|
+ <spark.compiler.score>compile</spark.compiler.score>
|
|
|
+ </properties>
|
|
|
+ <activation>
|
|
|
+ <activeByDefault>true</activeByDefault>
|
|
|
+ </activation>
|
|
|
+ </profile>
|
|
|
+ <profile>
|
|
|
+ <id>prod</id>
|
|
|
+ <properties>
|
|
|
+ <env>prod</env>
|
|
|
+ <versionCode>${version}</versionCode>
|
|
|
+ <spark.compiler.score>provided</spark.compiler.score>
|
|
|
+ </properties>
|
|
|
+ </profile>
|
|
|
+ </profiles>
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.8.1</version>
|
|
|
+ <configuration>
|
|
|
+ <source>1.8</source>
|
|
|
+ <target>1.8</target>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <delimiters>@</delimiters>
|
|
|
+ <useDefaultDelimiters>false</useDefaultDelimiters>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <!-- 打包插件 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ </plugin>
|
|
|
+ <!-- maven 打包时跳过测试 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <skipTests>true</skipTests>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <!--开启过滤,用指定的参数替换directory下的文件中的参数-->
|
|
|
+ <filtering>true</filtering>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ </build>
|
|
|
</project>
|