SpringBoot打包

<build>
    <plugins>

        <plugin>
            <groupId>org.apache.maven.pluginsgroupId>
            <artifactId>maven-surefire-pluginartifactId>
            <version>2.22.2version>
            <configuration>
                <skipTests>trueskipTests>
            configuration>
        plugin>

        <plugin>
            <groupId>org.apache.maven.pluginsgroupId>
            <artifactId>maven-compiler-pluginartifactId>
            <version>3.8.1version>
            <configuration>
                <source>1.8source>
                <target>1.8target>
                <encoding>UTF-8encoding>
            configuration>
        plugin>


        <plugin>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-maven-pluginartifactId>
            <configuration>
                <includeSystemScope>trueincludeSystemScope>
                <mainClass>com.iristar.TestApplicationmainClass>
            configuration>
            <executions>
                <execution>
                    <id>repackageid>
                    <goals>
                        <goal>repackagegoal>
                    goals>
                execution>
            executions>
        plugin>

    plugins>
build>

你可能感兴趣的:(spring,boot,java,数据库)