提交 6a21b11d 编写于 作者: beckhampu's avatar beckhampu 提交者: Liang Zhang

Fixes #3063 Change plugin version of sharding-ui to fix build error. (#3082)

* Fix spring-boot-plugin version missing bug.

* Support jdk1.7 to change frontend-maven-plugin version
上级 99f529f3
......@@ -117,7 +117,7 @@
<findbugs-maven-plugin.version>3.0.2</findbugs-maven-plugin.version>
<maven-checkstyle-plugin.version>2.16</maven-checkstyle-plugin.version>
<maven-pmd-plugin.version>3.5</maven-pmd-plugin.version>
<frontend-maven-plugin.version>1.8.0</frontend-maven-plugin.version>
<frontend-maven-plugin.version>1.6</frontend-maven-plugin.version>
<jdepend-maven-plugin.version>2.0</jdepend-maven-plugin.version>
<taglist-maven-plugin.version>2.4</taglist-maven-plugin.version>
<os-maven-plugin.version>1.5.0.Final</os-maven-plugin.version>
......
......@@ -35,6 +35,6 @@
<module>shardingsphere-src-distribution</module>
<module>sharding-jdbc-distribution</module>
<module>sharding-proxy-distribution</module>
<!--<module>sharding-ui-distribution</module>-->
<module>sharding-ui-distribution</module>
</modules>
</project>
......@@ -70,62 +70,43 @@
</dependency>
</dependencies>
<!--<build>-->
<!--<finalName>sharding-ui</finalName>-->
<!--<plugins>-->
<!--<plugin>-->
<!--<groupId>org.apache.maven.plugins</groupId>-->
<!--<artifactId>maven-resources-plugin</artifactId>-->
<!--<configuration>-->
<!--<encoding>${project.build.sourceEncoding}</encoding>-->
<!--<outputDirectory>${project.build.outputDirectory}</outputDirectory>-->
<!--<resources>-->
<!--<resource>-->
<!--<targetPath>${project.build.directory}/classes/public</targetPath>-->
<!--<directory>${project.parent.basedir}/sharding-ui-frontend/dist</directory>-->
<!--</resource>-->
<!--<resource>-->
<!--<targetPath>${project.build.directory}/classes</targetPath>-->
<!--<directory>src/main/resources</directory>-->
<!--<excludes>-->
<!--<exclude>assembly/**</exclude>-->
<!--<exclude>bin/**</exclude>-->
<!--</excludes>-->
<!--</resource>-->
<!--</resources>-->
<!--</configuration>-->
<!--</plugin>-->
<!--<plugin>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-maven-plugin</artifactId>-->
<!--<executions>-->
<!--<execution>-->
<!--<goals>-->
<!--<goal>repackage</goal>-->
<!--</goals>-->
<!--</execution>-->
<!--</executions>-->
<!--</plugin>-->
<!--&lt;!&ndash;<plugin>&ndash;&gt;-->
<!--&lt;!&ndash;<groupId>org.apache.maven.plugins</groupId>&ndash;&gt;-->
<!--&lt;!&ndash;<artifactId>maven-assembly-plugin</artifactId>&ndash;&gt;-->
<!--&lt;!&ndash;<configuration>&ndash;&gt;-->
<!--&lt;!&ndash;<appendAssemblyId>false</appendAssemblyId>&ndash;&gt;-->
<!--&lt;!&ndash;<descriptors>&ndash;&gt;-->
<!--&lt;!&ndash;<descriptor>src/main/resources/assembly/assembly.xml</descriptor>&ndash;&gt;-->
<!--&lt;!&ndash;</descriptors>&ndash;&gt;-->
<!--&lt;!&ndash;<outputDirectory>${project.parent.build.directory}</outputDirectory>&ndash;&gt;-->
<!--&lt;!&ndash;</configuration>&ndash;&gt;-->
<!--&lt;!&ndash;<executions>&ndash;&gt;-->
<!--&lt;!&ndash;<execution>&ndash;&gt;-->
<!--&lt;!&ndash;<id>assembly</id>&ndash;&gt;-->
<!--&lt;!&ndash;<phase>package</phase>&ndash;&gt;-->
<!--&lt;!&ndash;<goals>&ndash;&gt;-->
<!--&lt;!&ndash;<goal>single</goal>&ndash;&gt;-->
<!--&lt;!&ndash;</goals>&ndash;&gt;-->
<!--&lt;!&ndash;</execution>&ndash;&gt;-->
<!--&lt;!&ndash;</executions>&ndash;&gt;-->
<!--&lt;!&ndash;</plugin>&ndash;&gt;-->
<!--</plugins>-->
<!--</build>-->
<build>
<finalName>sharding-ui</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<targetPath>${project.build.directory}/classes/public</targetPath>
<directory>${project.parent.basedir}/sharding-ui-frontend/dist</directory>
</resource>
<resource>
<targetPath>${project.build.directory}/classes</targetPath>
<directory>src/main/resources</directory>
<excludes>
<exclude>assembly/**</exclude>
<exclude>bin/**</exclude>
</excludes>
</resource>
</resources>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册