Skip to content

Commit b2db543

Browse files
committed
Fix sources plugin
Signed-off-by: Ricardo Zanini <[email protected]>
1 parent 4696acf commit b2db543

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

pom.xml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@
277277
<publishingServerId>central</publishingServerId>
278278
<autoPublish>true</autoPublish>
279279
<waitUntil>published</waitUntil>
280+
<excludeArtifacts>
281+
<excludeArtifact>serverlessworkflow-examples-events</excludeArtifact>
282+
<excludeArtifact>serverlessworkflow-examples-simpleGet</excludeArtifact>
283+
</excludeArtifacts>
280284
</configuration>
281285
</plugin>
282286
<!-- Set properties containing the scm revision -->
@@ -443,14 +447,6 @@
443447
<groupId>org.apache.maven.plugins</groupId>
444448
<artifactId>maven-source-plugin</artifactId>
445449
<version>${version.source.plugin}</version>
446-
<executions>
447-
<execution>
448-
<id>attach-sources</id>
449-
<goals>
450-
<goal>jar-no-fork</goal>
451-
</goals>
452-
</execution>
453-
</executions>
454450
<configuration>
455451
<archive>
456452
<index>true</index>
@@ -596,6 +592,20 @@
596592
<id>release</id>
597593
<build>
598594
<plugins>
595+
<plugin>
596+
<groupId>org.apache.maven.plugins</groupId>
597+
<artifactId>maven-source-plugin</artifactId>
598+
<version>${version.source.plugin}</version>
599+
<executions>
600+
<execution>
601+
<id>attach-sources</id>
602+
<phase>package</phase>
603+
<goals>
604+
<goal>jar-no-fork</goal>
605+
</goals>
606+
</execution>
607+
</executions>
608+
</plugin>
599609
<plugin>
600610
<groupId>org.apache.maven.plugins</groupId>
601611
<artifactId>maven-gpg-plugin</artifactId>

0 commit comments

Comments
 (0)