Skip to content

Commit d9acd7c

Browse files
committed
build: generate sources jar
1 parent 5c5d3b6 commit d9acd7c

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

pom.xml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
5656
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
5757
<maven-site-plugin.version>3.20.0</maven-site-plugin.version>
58+
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
5859
<maven-surefire-plugin.version>3.5.0</maven-surefire-plugin.version>
5960
<neo4j.experimental>false</neo4j.experimental>
6061
<neo4j.version>4.4.11</neo4j.version>
@@ -255,6 +256,19 @@
255256
</execution>
256257
</executions>
257258
</plugin>
259+
<plugin>
260+
<groupId>org.apache.maven.plugins</groupId>
261+
<artifactId>maven-source-plugin</artifactId>
262+
<version>${maven-source-plugin.version}</version>
263+
<executions>
264+
<execution>
265+
<id>attach-sources</id>
266+
<goals>
267+
<goal>jar</goal>
268+
</goals>
269+
</execution>
270+
</executions>
271+
</plugin>
258272
<plugin>
259273
<groupId>org.apache.maven.plugins</groupId>
260274
<artifactId>maven-enforcer-plugin</artifactId>
@@ -415,19 +429,6 @@
415429
</execution>
416430
</executions>
417431
</plugin>
418-
<plugin>
419-
<groupId>org.apache.maven.plugins</groupId>
420-
<artifactId>maven-source-plugin</artifactId>
421-
<version>3.3.1</version>
422-
<executions>
423-
<execution>
424-
<id>attach-sources</id>
425-
<goals>
426-
<goal>jar</goal>
427-
</goals>
428-
</execution>
429-
</executions>
430-
</plugin>
431432
<plugin>
432433
<groupId>com.github.ekryd.sortpom</groupId>
433434
<artifactId>sortpom-maven-plugin</artifactId>
@@ -568,6 +569,10 @@
568569
<groupId>com.mycila</groupId>
569570
<artifactId>license-maven-plugin</artifactId>
570571
</plugin>
572+
<plugin>
573+
<groupId>org.apache.maven.plugins</groupId>
574+
<artifactId>maven-source-plugin</artifactId>
575+
</plugin>
571576
</plugins>
572577
</build>
573578
</profile>

0 commit comments

Comments
 (0)