123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?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>gihon.component</groupId>
- <artifactId>component-parent</artifactId>
- <version>0.3.0-SNAPSHOT</version>
- <relativePath>../</relativePath>
- </parent>
- <artifactId>component-springboot</artifactId>
- <name>component-springboot</name>
- <description>Demo project for Spring Boot</description>
- <dependencies>
- <dependency>
- <groupId>gihon.component</groupId>
- <artifactId>component-common</artifactId>
- </dependency>
- <!-- 单元测试 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <groupId>org.junit.vintage</groupId>
- <artifactId>junit-vintage-engine</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- <scope>test</scope>
- </dependency>
-
- <!-- springboot -->
- <!-- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-quartz</artifactId>
- </dependency> -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-devtools</artifactId>
- <scope>provided</scope>
- <optional>true</optional><!-- 可选依赖不传递 -->
- </dependency>
- <!-- 数据库 -->
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <scope>runtime</scope>
- </dependency>
-
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>3.4.2</version>
- <configuration>
- <filters>
- <filter>${assembly.filter.path}</filter>
- </filters>
- </configuration>
- <executions>
- <execution>
- <id>make-assembly</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <finalName>${project.name}</finalName>
- <skipAssembly>false</skipAssembly>
- <appendAssemblyId>false</appendAssemblyId>
- <descriptors>
- <descriptor>${assembly.path}/package.xml</descriptor>
- </descriptors>
- </configuration>
- </execution>
- <execution>
- <id>make-assembly-lib</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <finalName>lib</finalName>
- <skipAssembly>false</skipAssembly>
- <appendAssemblyId>false</appendAssemblyId>
- <descriptors>
- <descriptor>${assembly.path}package-lib.xml</descriptor>
- </descriptors>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|