Skip to content

Commit 7bed2b3

Browse files
committedOct 12, 2023
Use verify goal in CI (#271)
1 parent 473d6d2 commit 7bed2b3

File tree

2 files changed

+30
-15
lines changed

2 files changed

+30
-15
lines changed
 

‎.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ jobs:
4646
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
4747
restore-keys: ${{ runner.os }}-m2
4848
- name: mvn verify
49-
run: mvn test
49+
run: mvn verify -Dnosign

‎pom.xml

+29-14
Original file line numberDiff line numberDiff line change
@@ -325,20 +325,6 @@
325325
<artifactId>maven-release-plugin</artifactId>
326326
<version>3.0.0-M1</version>
327327
</plugin>
328-
<plugin>
329-
<groupId>org.apache.maven.plugins</groupId>
330-
<artifactId>maven-gpg-plugin</artifactId>
331-
<version>1.6</version>
332-
<executions>
333-
<execution>
334-
<id>sign-artifacts</id>
335-
<goals>
336-
<goal>sign</goal>
337-
</goals>
338-
<phase>verify</phase>
339-
</execution>
340-
</executions>
341-
</plugin>
342328
<plugin>
343329
<groupId>org.sonatype.plugins</groupId>
344330
<artifactId>nexus-staging-maven-plugin</artifactId>
@@ -411,4 +397,33 @@
411397
</extensions>
412398
</build>
413399

400+
<profiles>
401+
<profile>
402+
<id>sign</id>
403+
<activation>
404+
<property>
405+
<name>!nosign</name>
406+
</property>
407+
</activation>
408+
<build>
409+
<plugins>
410+
<plugin>
411+
<groupId>org.apache.maven.plugins</groupId>
412+
<artifactId>maven-gpg-plugin</artifactId>
413+
<version>1.6</version>
414+
<executions>
415+
<execution>
416+
<id>sign-artifacts</id>
417+
<goals>
418+
<goal>sign</goal>
419+
</goals>
420+
<phase>verify</phase>
421+
</execution>
422+
</executions>
423+
</plugin>
424+
</plugins>
425+
</build>
426+
</profile>
427+
</profiles>
428+
414429
</project>

0 commit comments

Comments
 (0)
Please sign in to comment.