Skip to content

Commit 9895ecc

Browse files
committed
fix: kører sources i egen deploy-file pga 409 konflikt i github ved deploy
1 parent 4cf309d commit 9895ecc

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

pom.xml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,17 +385,34 @@
385385
<goal>deploy-file</goal>
386386
</goals>
387387
<configuration>
388-
<repositoryId>github</repositoryId>
388+
<repositoryId>github</repositoryId>
389389
<packaging>jar</packaging>
390390
<generatePom>true</generatePom>
391391
<url>${project.distributionManagement.repository.url}</url>
392392
<artifactId>${project.artifactId}-jakarta</artifactId>
393393
<groupId>${project.groupId}</groupId>
394394
<version>${project.version}</version>
395395
<file>${project.build.directory}/${project.artifactId}-jakarta-${project.version}.jar</file>
396-
<sources>${project.build.directory}/${project.artifactId}-jakarta-${project.version}-sources.jar</sources>
397396
</configuration>
398397
</execution>
398+
<execution>
399+
<phase>deploy</phase>
400+
<id>deploy-file-sources</id>
401+
<goals>
402+
<goal>deploy-file</goal>
403+
</goals>
404+
<configuration>
405+
<repositoryId>github</repositoryId>
406+
<packaging>jar</packaging>
407+
<generatePom>true</generatePom>
408+
<url>${project.distributionManagement.repository.url}</url>
409+
<artifactId>${project.artifactId}-jakarta</artifactId>
410+
<groupId>${project.groupId}</groupId>
411+
<version>${project.version}</version>
412+
<classifier>sources</classifier>
413+
<file>${project.build.directory}/${project.artifactId}-jakarta-${project.version}-sources.jar</file>
414+
</configuration>
415+
</execution>
399416
</executions>
400417
</plugin>
401418
</plugins>

0 commit comments

Comments
 (0)