|
|
@@ -12,14 +12,22 @@
|
|
|
<artifactId>nb-admin</artifactId>
|
|
|
|
|
|
<dependencies>
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>com.tuoren</groupId>
|
|
|
<artifactId>config-common</artifactId>
|
|
|
</dependency>
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>com.tuoren</groupId>
|
|
|
<artifactId>web-service</artifactId>
|
|
|
</dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>javax.servlet</groupId>
|
|
|
+ <artifactId>javax.servlet-api</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
<!-- OSS文件存储模块 -->
|
|
|
<dependency>
|
|
|
<groupId>com.tuoren</groupId>
|
|
|
@@ -35,97 +43,125 @@
|
|
|
<groupId>mysql</groupId>
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
</dependency>
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>junit</groupId>
|
|
|
<artifactId>junit</artifactId>
|
|
|
</dependency>
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>com.tuoren</groupId>
|
|
|
<artifactId>iot-service</artifactId>
|
|
|
- <scope>test</scope>
|
|
|
</dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
+ <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-undertow</artifactId>
|
|
|
</dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.yaml</groupId>
|
|
|
+ <artifactId>snakeyaml</artifactId>
|
|
|
+ </dependency>
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
+ <!--<build>-->
|
|
|
+ <!--<resources>-->
|
|
|
+ <!--<resource>-->
|
|
|
+ <!--<directory>src/main/resources</directory>-->
|
|
|
+ <!--<includes>-->
|
|
|
+ <!--<!– **/* –>-->
|
|
|
+ <!--<include>**/*.xml</include>-->
|
|
|
+ <!--<include>**/*.yml</include>-->
|
|
|
+ <!--</includes>-->
|
|
|
+ <!--<filtering>true</filtering>-->
|
|
|
+ <!--</resource>-->
|
|
|
+ <!--</resources>-->
|
|
|
+ <!--<plugins>-->
|
|
|
+ <!--<plugin>-->
|
|
|
+ <!--<groupId>org.apache.maven.plugins</groupId>-->
|
|
|
+ <!--<artifactId>maven-compiler-plugin</artifactId>-->
|
|
|
+ <!--<version>3.6.2</version>-->
|
|
|
+ <!--<configuration>-->
|
|
|
+ <!--<source>${maven.compile.source}</source>-->
|
|
|
+ <!--<target>${maven.compile.target}</target>-->
|
|
|
+ <!--<encoding>${project.build.sourceEncoding}</encoding>-->
|
|
|
+ <!--</configuration>-->
|
|
|
+ <!--</plugin>-->
|
|
|
+
|
|
|
+ <!--<!–<plugin>–>-->
|
|
|
+ <!--<!–<artifactId>maven-assembly-plugin</artifactId>–>-->
|
|
|
+ <!--<!–<configuration>–>-->
|
|
|
+ <!--<!–<archive>–>-->
|
|
|
+ <!--<!–<manifest>–>-->
|
|
|
+ <!--<!–<mainClass>com.nb.admin.AdminApplication</mainClass>–>-->
|
|
|
+ <!--<!–</manifest>–>-->
|
|
|
+ <!--<!–<manifestEntries>–>-->
|
|
|
+ <!--<!–<Class-Path>.</Class-Path>–>-->
|
|
|
+ <!--<!–</manifestEntries>–>-->
|
|
|
+ <!--<!–</archive>–>-->
|
|
|
+ <!--<!–</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>-->
|
|
|
+ <!--</build>-->
|
|
|
+
|
|
|
<build>
|
|
|
+ <finalName>${project.name}</finalName>
|
|
|
<resources>
|
|
|
<resource>
|
|
|
<directory>src/main/resources</directory>
|
|
|
- <!--开启过滤,用指定的参数替换directory下的文件中的参数-->
|
|
|
<filtering>true</filtering>
|
|
|
</resource>
|
|
|
</resources>
|
|
|
- <plugins>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
|
- <configuration>
|
|
|
- <source>8</source>
|
|
|
- <target>8</target>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-assembly-plugin</artifactId>
|
|
|
- <version>2.4.1</version>
|
|
|
- <configuration>
|
|
|
- <archive>
|
|
|
- <manifest>
|
|
|
- <mainClass>com.nb.AdminApplication</mainClass>
|
|
|
- </manifest>
|
|
|
- </archive>
|
|
|
- <!--打包时,包含所有依赖的jar包-->
|
|
|
- <descriptorRefs>
|
|
|
- <descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
- </descriptorRefs>
|
|
|
- </configuration>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>make-assembly</id>
|
|
|
- <phase>package</phase>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
-
|
|
|
- </plugin>
|
|
|
- <!--生成javadoc文件-->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-javadoc-plugin</artifactId>
|
|
|
- <version>3.2.0</version>
|
|
|
- <configuration>
|
|
|
- <encoding>UTF-8</encoding>
|
|
|
- <charset>UTF-8</charset>
|
|
|
- <docencoding>UTF-8</docencoding>
|
|
|
- <doclint>none</doclint>
|
|
|
- </configuration>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>attach-javadocs</id>
|
|
|
- <goals>
|
|
|
- <goal>jar</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- <!--生成source文件-->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-source-plugin</artifactId>
|
|
|
- <version>2.4</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>attach-sources</id>
|
|
|
- <goals>
|
|
|
- <goal>jar</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
+ <!--<pluginManagement>-->
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <version>${spring-boot.version}</version>
|
|
|
+ <configuration>
|
|
|
+ <mainClass>com.nb.admin.AdminApplication</mainClass>
|
|
|
+ <finalName>${project.build.finalName}</finalName>
|
|
|
+ <layers>
|
|
|
+ <enabled>true</enabled>
|
|
|
+ </layers>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>repackage</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ <!--</pluginManagement>-->
|
|
|
</build>
|
|
|
|
|
|
<profiles>
|