| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="http://maven.apache.org/POM/4.0.0"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <parent>
- <artifactId>nb-root</artifactId>
- <groupId>com.tuoren</groupId>
- <version>1.0</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <packaging>jar</packaging>
- <artifactId>nb-admin</artifactId>
- <dependencies>
- <!-- 核心模块 -->
- <dependency>
- <groupId>com.tuoren</groupId>
- <artifactId>nb-system</artifactId>
- </dependency>
- <!-- OSS文件存储模块 -->
- <dependency>
- <groupId>com.tuoren</groupId>
- <artifactId>nb-oss</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </dependency>
- </dependencies>
- <!--<build>-->
- <!--<plugins>-->
- <!--<plugin>-->
- <!--<groupId>org.springframework.boot</groupId>-->
- <!--<artifactId>spring-boot-maven-plugin</artifactId>-->
- <!--</plugin>-->
- <!--</plugins>-->
- <!--</build>-->
- <!--<build>-->
- <!--<finalName>${project.name}</finalName>-->
- <!--<resources>-->
- <!--<resource>-->
- <!--<directory>src/main/resources</directory>-->
- <!--<filtering>true</filtering>-->
- <!--</resource>-->
- <!--</resources>-->
- <!--<pluginManagement>-->
- <!--<plugins>-->
- <!--<!–<plugin>–>-->
- <!--<!–<groupId>org.springframework.boot</groupId>–>-->
- <!--<!–<artifactId>spring-boot-maven-plugin</artifactId>–>-->
- <!--<!–<version>${spring-boot.version}</version>–>-->
- <!--<!–<configuration>–>-->
- <!--<!–<mainClass>com.nb.AdminApplication</mainClass>–>-->
- <!--<!–<finalName>${project.build.finalName}</finalName>–>-->
- <!--<!–<layers>–>-->
- <!--<!–<enabled>true</enabled>–>-->
- <!--<!–</layers>–>-->
- <!--<!–</configuration>–>-->
- <!--<!–<executions>–>-->
- <!--<!–<execution>–>-->
- <!--<!–<goals>–>-->
- <!--<!–<goal>repackage</goal>–>-->
- <!--<!–</goals>–>-->
- <!--<!–</execution>–>-->
- <!--<!–</executions>–>-->
- <!--<!–</plugin>–>-->
- <!--<plugin>-->
- <!--<artifactId>maven-assembly-plugin</artifactId>-->
- <!--<configuration>-->
- <!--<archive>-->
- <!--<manifest>-->
- <!--<mainClass>com.nb.AdminApplication</mainClass>-->
- <!--</manifest>-->
- <!--<manifestEntries>-->
- <!--<Class-Path>.</Class-Path>-->
- <!--</manifestEntries>-->
- <!--</archive>-->
- <!--<descriptorRefs>-->
- <!--<descriptorRef>jar-with-dependencies</descriptorRef>-->
- <!--</descriptorRefs>-->
- <!--</configuration>-->
- <!--<executions>-->
- <!--<execution>-->
- <!--<id>make-assembly</id>-->
- <!--<phase>package</phase>-->
- <!--<goals>-->
- <!--<goal>single</goal>-->
- <!--</goals>-->
- <!--<configuration>-->
- <!--<descriptors>-->
- <!--<descriptor>src/main/resources/assembly.xml</descriptor>-->
- <!--</descriptors>-->
- <!--</configuration>-->
- <!--</execution>-->
- <!--</executions>-->
- <!--</plugin>-->
- <!--</plugins>-->
- <!--</pluginManagement>-->
- <!--</build>-->
- <build>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <artifactId>maven-install-plugin</artifactId>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <mainClass>com.nb.AdminApplication</mainClass>
- <layout>ZIP</layout>
- <layers>
- <enabled>true</enabled>
- </layers>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>dev</id>
- <properties>
- <!-- 环境标识,需要与配置文件的名称相对应 -->
- <profiles.active>dev</profiles.active>
- <!--<profiles.active>prod</profiles.active>-->
- <logging.level>debug</logging.level>
- </properties>
- <activation>
- <!-- 默认环境 -->
- <activeByDefault>true</activeByDefault>
- </activation>
- </profile>
- <profile>
- <id>test</id>
- <properties>
- <profiles.active>test</profiles.active>
- <logging.level>warn</logging.level>
- </properties>
- </profile>
- <profile>
- <id>prod</id>
- <properties>
- <profiles.active>prod</profiles.active>
- <logging.level>warn</logging.level>
- </properties>
- </profile>
- </profiles>
- </project>
|