IDEA 打包生成source.jar的方法
在pom.xml中添加插件:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
执行maven命令:
mvn source:jar
或者点击下图中的install