mirror of https://github.com/halo-dev/halo
Mvn package exclude application-dev.yaml and application-test.yaml
parent
89a3d76160
commit
d99f3ea1d1
38
assembly.xml
38
assembly.xml
|
@ -1,38 +0,0 @@
|
||||||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
|
||||||
|
|
||||||
<id>distribution</id>
|
|
||||||
<formats>
|
|
||||||
<format>dir</format>
|
|
||||||
</formats>
|
|
||||||
|
|
||||||
<includeBaseDirectory>false</includeBaseDirectory>
|
|
||||||
|
|
||||||
<fileSets>
|
|
||||||
<fileSet>
|
|
||||||
<directory>src/main/resources/</directory>
|
|
||||||
<outputDirectory>/resources</outputDirectory>
|
|
||||||
</fileSet>
|
|
||||||
<fileSet>
|
|
||||||
<directory>bin/</directory>
|
|
||||||
<outputDirectory>/</outputDirectory>
|
|
||||||
</fileSet>
|
|
||||||
</fileSets>
|
|
||||||
|
|
||||||
<dependencySets>
|
|
||||||
<dependencySet>
|
|
||||||
<outputDirectory>/lib</outputDirectory>
|
|
||||||
<scope>runtime</scope>
|
|
||||||
<excludes>
|
|
||||||
<exclude>${project.groupId}:${project.artifactId}</exclude>
|
|
||||||
</excludes>
|
|
||||||
</dependencySet>
|
|
||||||
<dependencySet>
|
|
||||||
<outputDirectory>/</outputDirectory>
|
|
||||||
<includes>
|
|
||||||
<include>${project.groupId}:${project.artifactId}</include>
|
|
||||||
</includes>
|
|
||||||
</dependencySet>
|
|
||||||
</dependencySets>
|
|
||||||
</assembly>
|
|
190
pom.xml
190
pom.xml
|
@ -240,185 +240,17 @@
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<version>3.0.2</version>
|
||||||
|
<configuration>
|
||||||
|
<excludes>
|
||||||
|
<exclude>/**/application-dev.yaml</exclude>
|
||||||
|
<exclude>/**/application-test.yaml</exclude>
|
||||||
|
</excludes>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<!--<profiles>-->
|
|
||||||
<!--<!– 生产环境打包配置 –>-->
|
|
||||||
<!--<profile>-->
|
|
||||||
<!--<id>prod</id>-->
|
|
||||||
<!--<repositories>-->
|
|
||||||
<!--<repository>-->
|
|
||||||
<!--<id>aliyun</id>-->
|
|
||||||
<!--<url>http://maven.aliyun.com/nexus/content/groups/public</url>-->
|
|
||||||
<!--</repository>-->
|
|
||||||
<!--</repositories>-->
|
|
||||||
<!--<pluginRepositories>-->
|
|
||||||
<!--<pluginRepository>-->
|
|
||||||
<!--<id>aliyun</id>-->
|
|
||||||
<!--<url>http://maven.aliyun.com/nexus/content/groups/public</url>-->
|
|
||||||
<!--</pluginRepository>-->
|
|
||||||
<!--</pluginRepositories>-->
|
|
||||||
<!--<build>-->
|
|
||||||
<!--<finalName>halo</finalName>-->
|
|
||||||
<!--<resources>-->
|
|
||||||
<!--<resource>-->
|
|
||||||
<!--<directory>src/main/java</directory>-->
|
|
||||||
<!--<filtering>false</filtering>-->
|
|
||||||
<!--<excludes>-->
|
|
||||||
<!--<exclude>**/*.java</exclude>-->
|
|
||||||
<!--</excludes>-->
|
|
||||||
<!--</resource>-->
|
|
||||||
<!--</resources>-->
|
|
||||||
<!--<plugins>-->
|
|
||||||
<!--<plugin>-->
|
|
||||||
<!--<groupId>org.apache.maven.plugins</groupId>-->
|
|
||||||
<!--<artifactId>maven-surefire-plugin</artifactId>-->
|
|
||||||
<!--<configuration>-->
|
|
||||||
<!--<skip>true</skip>-->
|
|
||||||
<!--</configuration>-->
|
|
||||||
<!--</plugin>-->
|
|
||||||
|
|
||||||
<!--<plugin>-->
|
|
||||||
<!--<artifactId>maven-compiler-plugin</artifactId>-->
|
|
||||||
<!--<configuration>-->
|
|
||||||
<!--<source>1.8</source>-->
|
|
||||||
<!--<target>1.8</target>-->
|
|
||||||
<!--<encoding>UTF-8</encoding>-->
|
|
||||||
<!--</configuration>-->
|
|
||||||
<!--</plugin>-->
|
|
||||||
|
|
||||||
<!--<plugin>-->
|
|
||||||
<!--<artifactId>maven-assembly-plugin</artifactId>-->
|
|
||||||
<!--<configuration>-->
|
|
||||||
<!--<appendAssemblyId>false</appendAssemblyId>-->
|
|
||||||
<!--<descriptors>-->
|
|
||||||
<!--<descriptor>assembly.xml</descriptor>-->
|
|
||||||
<!--</descriptors>-->
|
|
||||||
<!--<outputDirectory>${project.build.directory}/dist/</outputDirectory>-->
|
|
||||||
<!--</configuration>-->
|
|
||||||
<!--<executions>-->
|
|
||||||
<!--<execution>-->
|
|
||||||
<!--<id>make-assembly</id>-->
|
|
||||||
<!--<phase>package</phase>-->
|
|
||||||
<!--<goals>-->
|
|
||||||
<!--<goal>single</goal>-->
|
|
||||||
<!--</goals>-->
|
|
||||||
<!--</execution>-->
|
|
||||||
<!--</executions>-->
|
|
||||||
<!--</plugin>-->
|
|
||||||
<!--<plugin>-->
|
|
||||||
<!--<groupId>org.apache.maven.plugins</groupId>-->
|
|
||||||
<!--<artifactId>maven-jar-plugin</artifactId>-->
|
|
||||||
<!--<version>3.1.0</version>-->
|
|
||||||
<!--<configuration>-->
|
|
||||||
<!--<archive>-->
|
|
||||||
<!--<manifest>-->
|
|
||||||
<!--<mainClass>cc.ryanc.halo.Application</mainClass>-->
|
|
||||||
<!--<classpathPrefix>lib/</classpathPrefix>-->
|
|
||||||
<!--<addClasspath>true</addClasspath>-->
|
|
||||||
<!--</manifest>-->
|
|
||||||
<!--<manifestEntries>-->
|
|
||||||
<!--<Class-Path>resources/</Class-Path>-->
|
|
||||||
<!--</manifestEntries>-->
|
|
||||||
<!--</archive>-->
|
|
||||||
<!--</configuration>-->
|
|
||||||
<!--</plugin>-->
|
|
||||||
<!--</plugins>-->
|
|
||||||
<!--</build>-->
|
|
||||||
<!--</profile>-->
|
|
||||||
|
|
||||||
<!--<!–CI环境–>-->
|
|
||||||
<!--<profile>-->
|
|
||||||
<!--<id>ci</id>-->
|
|
||||||
<!--<build>-->
|
|
||||||
<!--<finalName>halo</finalName>-->
|
|
||||||
<!--<resources>-->
|
|
||||||
<!--<resource>-->
|
|
||||||
<!--<directory>src/main/java</directory>-->
|
|
||||||
<!--<filtering>false</filtering>-->
|
|
||||||
<!--<excludes>-->
|
|
||||||
<!--<exclude>**/*.java</exclude>-->
|
|
||||||
<!--</excludes>-->
|
|
||||||
<!--</resource>-->
|
|
||||||
<!--</resources>-->
|
|
||||||
<!--<plugins>-->
|
|
||||||
<!--<plugin>-->
|
|
||||||
<!--<groupId>org.apache.maven.plugins</groupId>-->
|
|
||||||
<!--<artifactId>maven-surefire-plugin</artifactId>-->
|
|
||||||
<!--<configuration>-->
|
|
||||||
<!--<skip>true</skip>-->
|
|
||||||
<!--</configuration>-->
|
|
||||||
<!--</plugin>-->
|
|
||||||
|
|
||||||
<!--<plugin>-->
|
|
||||||
<!--<artifactId>maven-compiler-plugin</artifactId>-->
|
|
||||||
<!--<configuration>-->
|
|
||||||
<!--<source>1.8</source>-->
|
|
||||||
<!--<target>1.8</target>-->
|
|
||||||
<!--<encoding>UTF-8</encoding>-->
|
|
||||||
<!--</configuration>-->
|
|
||||||
<!--</plugin>-->
|
|
||||||
|
|
||||||
<!--<plugin>-->
|
|
||||||
<!--<artifactId>maven-assembly-plugin</artifactId>-->
|
|
||||||
<!--<configuration>-->
|
|
||||||
<!--<appendAssemblyId>false</appendAssemblyId>-->
|
|
||||||
<!--<descriptors>-->
|
|
||||||
<!--<descriptor>assembly.xml</descriptor>-->
|
|
||||||
<!--</descriptors>-->
|
|
||||||
<!--<outputDirectory>${project.build.directory}/dist/</outputDirectory>-->
|
|
||||||
<!--</configuration>-->
|
|
||||||
<!--<executions>-->
|
|
||||||
<!--<execution>-->
|
|
||||||
<!--<id>make-assembly</id>-->
|
|
||||||
<!--<phase>package</phase>-->
|
|
||||||
<!--<goals>-->
|
|
||||||
<!--<goal>single</goal>-->
|
|
||||||
<!--</goals>-->
|
|
||||||
<!--</execution>-->
|
|
||||||
<!--</executions>-->
|
|
||||||
<!--</plugin>-->
|
|
||||||
<!--<plugin>-->
|
|
||||||
<!--<groupId>org.apache.maven.plugins</groupId>-->
|
|
||||||
<!--<artifactId>maven-jar-plugin</artifactId>-->
|
|
||||||
<!--<version>3.1.0</version>-->
|
|
||||||
<!--<configuration>-->
|
|
||||||
<!--<archive>-->
|
|
||||||
<!--<manifest>-->
|
|
||||||
<!--<mainClass>cc.ryanc.halo.Application</mainClass>-->
|
|
||||||
<!--<classpathPrefix>lib/</classpathPrefix>-->
|
|
||||||
<!--<addClasspath>true</addClasspath>-->
|
|
||||||
<!--</manifest>-->
|
|
||||||
<!--<manifestEntries>-->
|
|
||||||
<!--<Class-Path>resources/</Class-Path>-->
|
|
||||||
<!--</manifestEntries>-->
|
|
||||||
<!--</archive>-->
|
|
||||||
<!--</configuration>-->
|
|
||||||
<!--</plugin>-->
|
|
||||||
<!--</plugins>-->
|
|
||||||
<!--</build>-->
|
|
||||||
<!--</profile>-->
|
|
||||||
|
|
||||||
<!--<!– 开发环境 –>-->
|
|
||||||
<!--<profile>-->
|
|
||||||
<!--<id>dev</id>-->
|
|
||||||
<!--<build>-->
|
|
||||||
<!--<plugins>-->
|
|
||||||
<!--<plugin>-->
|
|
||||||
<!--<groupId>org.springframework.boot</groupId>-->
|
|
||||||
<!--<artifactId>spring-boot-maven-plugin</artifactId>-->
|
|
||||||
<!--<configuration>-->
|
|
||||||
<!--<fork>true</fork>-->
|
|
||||||
<!--</configuration>-->
|
|
||||||
<!--</plugin>-->
|
|
||||||
<!--<plugin>-->
|
|
||||||
<!--<groupId>org.apache.maven.plugins</groupId>-->
|
|
||||||
<!--<artifactId>maven-javadoc-plugin</artifactId>-->
|
|
||||||
<!--<version>3.0.0</version>-->
|
|
||||||
<!--</plugin>-->
|
|
||||||
<!--</plugins>-->
|
|
||||||
<!--</build>-->
|
|
||||||
<!--</profile>-->
|
|
||||||
<!--</profiles>-->
|
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in New Issue