美文网首页
mavne 打可执行jar包

mavne 打可执行jar包

作者: 壹点零 | 来源:发表于2018-03-16 13:57 被阅读0次
    <parent>
            <artifactId>shorts</artifactId>
            <groupId>com.jy</groupId>
            <version>1.0-SNAPSHOT</version>
        </parent>
        <modelVersion>4.0.0</modelVersion>
    
        <artifactId>shorts-servlet</artifactId>
        <packaging>jar</packaging>
    
        <name>shorts-servlet</name>
        <url>http://maven.apache.org</url>
    
        <build>
            <finalName>shorts-servlet</finalName>
            <plugins>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <configuration>
                        <source>1.8</source>
                        <target>1.8</target>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <configuration>
                        <archive>
                            <manifest>
                                <addClasspath>true</addClasspath>
                                <useUniqueVersions>false</useUniqueVersions>
                                <classpathPrefix>lib/</classpathPrefix>
                                <mainClass>com.jy.shorts.MainApplication</mainClass>
                            </manifest>
                            <manifestEntries>
                                <version>${project.version}</version>
                            </manifestEntries>
                        </archive>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    

    相关文章

      网友评论

          本文标题:mavne 打可执行jar包

          本文链接:https://www.haomeiwen.com/subject/ngnlqftx.html