美文网首页
胖包输出

胖包输出

作者: 后知不觉1 | 来源:发表于2023-08-13 14:25 被阅读0次

配置入下,只通过maven-assembly-plugin插件即可

<build>

  <plugins>
    <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->

    <plugin>
      <artifactId>maven-assembly-plugin</artifactId>
      <executions>
        <execution>
          <phase>package</phase>
          <goals>
            <goal>single</goal>
          </goals>
        </execution>
      </executions>
      <configuration>
        <descriptorRefs>
          <descriptorRef>jar-with-dependencies</descriptorRef>
        </descriptorRefs>
        <archive>
          <manifest>
            <mainClass>org.example.App</mainClass>
          </manifest>
        </archive>
      </configuration>
    </plugin>
  </plugins>
</build>

相关文章

网友评论

      本文标题:胖包输出

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