You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

295 lines
11 KiB

<?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>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.12</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.techsor</groupId>
<artifactId>model2d3d-viewer-back</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>model2d3d-viewer-back</name>
<packaging>pom</packaging>
<modules>
<module>model2d3d-viewer-back-util</module>
<module>model2d3d-viewer-back-common</module>
<module>model2d3d-viewer-back-model</module>
<module>model2d3d-viewer-back-dao</module>
<module>model2d3d-viewer-back-service</module>
<module>model2d3d-viewer-back-controller</module>
</modules>
<description>data center business</description>
<properties>
<main.basedir>com.model2d3d.viewer.back.Model2d3dViewerApplication</main.basedir>
<java.version>17</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<!-- swagger -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.5.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/application.properties</exclude>
</excludes>
<archive>
<manifest>
<classpathPrefix>lib/</classpathPrefix>
<addClasspath>true</addClasspath>
<mainClass>${main.basedir}</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<!-- lib目录分离, 拷贝依赖到jar外面的lib目录 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<!-- 依赖包输出目录,将来不打进jar包里 -->
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<excludeTransitive>false</excludeTransitive>
<stripVersion>false</stripVersion>
<includeScope>runtime</includeScope>
</configuration>
</execution>
</executions>
</plugin>
<!-- resource插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<useDefaultDelimiters>true</useDefaultDelimiters>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
<nonFilteredFileExtension>xls</nonFilteredFileExtension>
<nonFilteredFileExtension>zip</nonFilteredFileExtension>
</nonFilteredFileExtensions>
</configuration>
<executions>
<!--copyresources,把resources目录下的文件复制到,打包目录下-->
<execution>
<id>copy-resources</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<outputDirectory>${project.build.directory}/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>
<profiles>
<profile>
<!--开发环境-->
<id>development</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<serverPort>30001</serverPort>
<apiEnable>true</apiEnable>
<!-- 数据库设置-->
<datasourceDNS>rm-bp11k2zm2fr7864428o.mysql.rds.aliyuncs.com:3306</datasourceDNS>
<datasourceTimeZone>Asia/Shanghai</datasourceTimeZone>
<datasourceUsername>zhc</datasourceUsername>
<datasourcePassword>Youqu48bnb1</datasourcePassword>
<loggingLevel>DEBUG</loggingLevel>
<loggingPath>E:/logDemo</loggingPath>
<loggingAppender>CONSOLELOG</loggingAppender>
<loggingMaxHistory>30</loggingMaxHistory>
<redisHost>r-uf63x4g5p6ir5xao87pd.redis.rds.aliyuncs.com</redisHost>
<redisPassword>B2BGn4gK4htgkEwP</redisPassword>
<webLoginUrl>http://49.234.37.33:92/#/user/login</webLoginUrl>
<mybatisLogLevel>DEBUG</mybatisLogLevel>
<awsAccesskey>AKIA5OFH5OOZHM3U3KX4</awsAccesskey>
<awsSecretkey>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</awsSecretkey>
<awsBucketImage>tokyobuild-stg-databucket-923770123186</awsBucketImage>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!--测试环境-->
<id>test</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<serverPort>30001</serverPort>
<apiEnable>true</apiEnable>
<!-- 数据库设置-->
<datasourceDNS>rm-bp11k2zm2fr7864428o.mysql.rds.aliyuncs.com:3306</datasourceDNS>
<datasourceTimeZone>Asia/Shanghai</datasourceTimeZone>
<datasourceUsername>zhc</datasourceUsername>
<datasourcePassword>Youqu48bnb1</datasourcePassword>
<loggingLevel>DEBUG</loggingLevel>
<loggingPath>E:/logDemo</loggingPath>
<loggingAppender>CONSOLELOG</loggingAppender>
<loggingMaxHistory>30</loggingMaxHistory>
<redisHost>r-uf63x4g5p6ir5xao87pd.redis.rds.aliyuncs.com</redisHost>
<redisPassword>B2BGn4gK4htgkEwP</redisPassword>
<webLoginUrl>http://49.234.37.33:92/#/user/login</webLoginUrl>
<mybatisLogLevel>DEBUG</mybatisLogLevel>
<awsAccesskey>AKIA5OFH5OOZHM3U3KX4</awsAccesskey>
<awsSecretkey>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</awsSecretkey>
<awsBucketImage>tokyobuild-stg-databucket-923770123186</awsBucketImage>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!--正式环境-->
<id>production</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<serverPort>30001</serverPort>
<apiEnable>true</apiEnable>
<!-- 数据库设置-->
<datasourceDNS>rm-bp11k2zm2fr7864428o.mysql.rds.aliyuncs.com:3306</datasourceDNS>
<datasourceTimeZone>Asia/Shanghai</datasourceTimeZone>
<datasourceUsername>zhc</datasourceUsername>
<datasourcePassword>Youqu48bnb1</datasourcePassword>
<loggingLevel>DEBUG</loggingLevel>
<loggingPath>E:/logDemo</loggingPath>
<loggingAppender>CONSOLELOG</loggingAppender>
<loggingMaxHistory>30</loggingMaxHistory>
<redisHost>r-uf63x4g5p6ir5xao87pd.redis.rds.aliyuncs.com</redisHost>
<redisPassword>B2BGn4gK4htgkEwP</redisPassword>
<webLoginUrl>http://49.234.37.33:92/#/user/login</webLoginUrl>
<mybatisLogLevel>DEBUG</mybatisLogLevel>
<awsAccesskey>AKIA5OFH5OOZHM3U3KX4</awsAccesskey>
<awsSecretkey>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</awsSecretkey>
<awsBucketImage>tokyobuild-stg-databucket-923770123186</awsBucketImage>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>