META-INF.maven.io.github.hyfsy.hot-refresh-server-all.pom.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>io.github.hyfsy</groupId> <artifactId>hot-refresh-parent</artifactId> <version>1.2.5</version> </parent> <groupId>io.github.hyfsy</groupId> <artifactId>hot-refresh-server-all</artifactId> <version>1.2.5</version> <licenses> <license> <name>The Apache License, Version 2.0</name> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> <distribution>repo</distribution> <comments>A business-friendly OSS license</comments> </license> </licenses> <properties> <generatedSourceDir>${project.build.directory}/src</generatedSourceDir> </properties> <dependencies> <dependency> <groupId>io.github.hyfsy</groupId> <artifactId>hot-refresh-server</artifactId> <version>1.2.5</version> <scope>compile</scope> <optional>true</optional> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <version>2.23.4</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-shade-plugin</artifactId> <executions> <execution> <id>shade</id> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <artifactSet> <includes> <include>${project.groupId}</include> </includes> </artifactSet> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" /> <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> <transformer implementation="org.springframework.boot.maven.PropertiesMergingResourceTransformer"> <resource>META-INF/spring.factories</resource> </transformer> </transformers> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>${spring-boot.version}</version> </dependency> </dependencies> </plugin> <plugin> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>locate-dependencies</id> <phase>initialize</phase> <goals> <goal>properties</goal> </goals> </execution> <execution> <id>unpack-sources</id> <phase>prepare-package</phase> <goals> <goal>unpack-dependencies</goal> </goals> <configuration> <classifier>sources</classifier> <includes>com/hyf/hotrefresh/**</includes> <includeScope>runtime</includeScope> <includeGroupIds>${project.groupId}</includeGroupIds> <outputDirectory>${generatedSourceDir}</outputDirectory> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>add-source</id> <phase>prepare-package</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>${generatedSourceDir}</source> </sources> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>clean-source-directory</id> <phase>package</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <delete quiet="true" dir="${generatedSourceDir}" /> <delete quiet="true" dir="${project.build.directory}/dependency-maven-plugin-markers" /> <delete quiet="true" dir="${project.build.directory}/antrun" /> </target> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>