Quellcode durchsuchen

添加打包源代码插件

chejianzheng vor 3 Monaten
Ursprung
Commit
1e4a5fa324
1 geänderte Dateien mit 21 neuen und 0 gelöschten Zeilen
  1. 21 0
      pom.xml

+ 21 - 0
pom.xml

@@ -308,4 +308,25 @@
         </dependencies>
     </dependencyManagement>
 
+
+    <build>
+        <plugins>
+            <!-- 生成源代码 JAR -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-source-plugin</artifactId>
+                <version>3.3.0</version>
+                <executions>
+                    <execution>
+                        <id>attach-sources</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>jar-no-fork</goal>  <!-- 生成 sources.jar -->
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
 </project>