<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<includePom>true</includePom>
<excludeResources>true</excludeResources>
<attach>true</attach>
</configuration>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
springboot将jar包和源码包都打出来
最新推荐文章于 2025-01-01 16:57:06 发布
该博客内容涉及到了Maven构建工具的配置,具体是关于maven-source-plugin的使用,目的是在构建过程中附加源码 jar 文件。通过设置groupId、artifactId、version等属性,并在execution中定义id和goal,确保源码被正确地包含并打包。
1423

被折叠的 条评论
为什么被折叠?



