This repository was archived by the owner on Jan 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +46
-1
lines changed
Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Original file line number Diff line number Diff line change 3131 cp .github/workflows/maven/m2-settings-release.xml ~/.m2/settings.xml
3232
3333 - name : Publish to OSSRH
34- run : mvn -B deploy -Possrh
34+ run : mvn -B deploy -Pxdev-build,ossrh
3535 env :
3636 JFROG_ARTIFACTORY_USERNAME : ${{ secrets.JFROG_ARTIFACTORY_USERNAME }}
3737 JFROG_ARTIFACTORY_TOKEN : ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
Original file line number Diff line number Diff line change 376376 </repository >
377377 </repositories >
378378 </profile >
379+
380+ <profile >
381+ <id >ossrh</id >
382+ <build >
383+ <plugins >
384+ <plugin >
385+ <groupId >org.apache.maven.plugins</groupId >
386+ <artifactId >maven-gpg-plugin</artifactId >
387+ <version >3.0.1</version >
388+ <executions >
389+ <execution >
390+ <id >sign-artifacts</id >
391+ <phase >verify</phase >
392+ <goals >
393+ <goal >sign</goal >
394+ </goals >
395+ <configuration >
396+ <!-- Fixes "gpg: signing failed: Inappropriate ioctl for device" -->
397+ <!-- Prevent `gpg` from using pinentry programs -->
398+ <gpgArguments >
399+ <arg >--pinentry-mode</arg >
400+ <arg >loopback</arg >
401+ </gpgArguments >
402+ </configuration >
403+ </execution >
404+ </executions >
405+ </plugin >
406+
407+ <plugin >
408+ <groupId >org.sonatype.plugins</groupId >
409+ <artifactId >nexus-staging-maven-plugin</artifactId >
410+ <version >1.6.8</version >
411+ <extensions >true</extensions >
412+ <configuration >
413+ <serverId >ossrh</serverId >
414+ <nexusUrl >https://oss.sonatype.org/</nexusUrl >
415+ <!-- Sometimes OSSRH is really slow -->
416+ <stagingProgressTimeoutMinutes >30</stagingProgressTimeoutMinutes >
417+ <autoReleaseAfterClose >true</autoReleaseAfterClose >
418+ </configuration >
419+ </plugin >
420+ </plugins >
421+ </build >
422+ </profile >
423+
379424 <profile >
380425 <id >run-all-tests</id >
381426 <properties >
You can’t perform that action at this time.
0 commit comments