maven包一个默认的jar

时间:2018-06-05 11:08:29

标签: maven package

我使用maven包装插件罐子,但总是生成2个罐子但是我只想要一个罐子

        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <fork>true</fork>
                <mainClass>com.server.Bootstrap</mainClass>

            </configuration>
            <executions>
                <execution>
                    <goals>
                        <goal>repackage</goal>
                    </goals>
                    <configuration>
                        <finalName>mercury-server-jar-with-dependencies</finalName>
                    </configuration>
                </execution>
            </executions>
        </plugin>

然后我使用“mvn package

有两个罐子:

1.mercury-server-jar-with-dependencies.jar,

2 mercury-server-0.1-SNAPSHOT.jar

我怎样才能生成默认jar *-0.1-SNAPSHOT.jar

0 个答案:

没有答案