1
0

feat: update framework

This commit is contained in:
MiaoWoo 2019-04-02 09:54:01 +08:00
parent 9ee3662420
commit d5189814a3
2 changed files with 42 additions and 37 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
# Eclipse stuff # Eclipse stuff
/.settings /.settings
/.project
# netbeans # netbeans
/nbproject /nbproject

78
pom.xml
View File

@ -18,27 +18,33 @@
<timezone>Asia/Shanghai</timezone> <timezone>Asia/Shanghai</timezone>
</contributor> </contributor>
</contributors> </contributors>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<repo.url>https://repo.yumc.pw</repo.url>
</properties>
<ciManagement> <ciManagement>
<system>Jenkins</system> <system>Jenkins</system>
<url>http://ci.yumc.pw/job/${project.artifactId}/</url> <url>https://ci.yumc.pw/job/Minecraft/${project.artifactId}/</url>
</ciManagement> </ciManagement>
<repositories> <repositories>
<repository> <repository>
<id>yumc-repo</id> <id>yumc-repo</id>
<url>https://repo.yumc.pw/repository/maven-public/</url> <url>${repo.url}/repository/maven-public/</url>
</repository> </repository>
</repositories> </repositories>
<pluginRepositories> <pluginRepositories>
<pluginRepository> <pluginRepository>
<id>yumc-repo</id> <id>yumc-repo</id>
<url>https://repo.yumc.pw/repository/maven-public/</url> <url>${repo.url}/repository/maven-public/</url>
</pluginRepository> </pluginRepository>
</pluginRepositories> </pluginRepositories>
<distributionManagement> <distributionManagement>
<repository> <repository>
<id>jtb</id> <id>jtb</id>
<name>YUMC</name> <name>YUMC</name>
<url>https://repo.yumc.pw/repository/yumcenter/</url> <url>${repo.url}/repository/yumcenter/</url>
</repository> </repository>
</distributionManagement> </distributionManagement>
<dependencies> <dependencies>
@ -59,38 +65,36 @@
<filtering>true</filtering> <filtering>true</filtering>
</resource> </resource>
</resources> </resources>
<pluginManagement> <plugins>
<plugins> <plugin>
<plugin> <groupId>org.apache.maven.plugins</groupId>
<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId>
<artifactId>maven-shade-plugin</artifactId> <version>3.2.0</version>
<version>3.2.0</version> <configuration>
<configuration> <createDependencyReducedPom>false</createDependencyReducedPom>
<createDependencyReducedPom>false</createDependencyReducedPom> <minimizeJar>true</minimizeJar>
<minimizeJar>true</minimizeJar> <artifactSet>
<artifactSet> <includes>
<includes> <include>pw.yumc:YumCore</include>
<include>pw.yumc:YumCore</include> </includes>
</includes> </artifactSet>
</artifactSet> <relocations>
<relocations> <relocation>
<relocation> <pattern>pw.yumc.YumCore</pattern>
<pattern>pw.yumc.YumCore</pattern> <shadedPattern>${project.groupId}.${project.artifactId}</shadedPattern>
<shadedPattern>${project.groupId}.${project.artifactId}</shadedPattern> </relocation>
</relocation> </relocations>
</relocations> </configuration>
</configuration> <executions>
<executions> <execution>
<execution> <phase>package</phase>
<phase>package</phase> <goals>
<goals> <!--suppress MybatisMapperXmlInspection -->
<!--suppress MybatisMapperXmlInspection --> <goal>shade</goal>
<goal>shade</goal> </goals>
</goals> </execution>
</execution> </executions>
</executions> </plugin>
</plugin> </plugins>
</plugins>
</pluginManagement>
</build> </build>
</project> </project>