|
|
@@ -15,7 +15,7 @@
|
|
|
<!-- 核心模块 -->
|
|
|
<dependency>
|
|
|
<groupId>com.tuoren</groupId>
|
|
|
- <artifactId>nb-framework</artifactId>
|
|
|
+ <artifactId>nb-system</artifactId>
|
|
|
</dependency>
|
|
|
<!-- OSS文件存储模块 -->
|
|
|
<dependency>
|
|
|
@@ -28,6 +28,10 @@
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
</dependency>
|
|
|
|
|
|
+ <dependency>
|
|
|
+ <groupId>mysql</groupId>
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
+ </dependency>
|
|
|
<dependency>
|
|
|
<groupId>junit</groupId>
|
|
|
<artifactId>junit</artifactId>
|
|
|
@@ -42,14 +46,93 @@
|
|
|
<!--</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.coffee.admin.AdminApplication</mainClass>
|
|
|
+ <mainClass>com.nb.AdminApplication</mainClass>
|
|
|
+ <layout>ZIP</layout>
|
|
|
+ <layers>
|
|
|
+ <enabled>true</enabled>
|
|
|
+ </layers>
|
|
|
</configuration>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
@@ -59,14 +142,35 @@
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
- <!-- 跳过单元测试 -->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-surefire-plugin</artifactId>
|
|
|
- <configuration>
|
|
|
- <skipTests>true</skipTests>
|
|
|
- </configuration>
|
|
|
- </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>
|