Skip to content

Commit

Permalink
updated some files
Browse files Browse the repository at this point in the history
  • Loading branch information
ucf4 committed Aug 22, 2024
1 parent 8f9eaff commit 96d0ada
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
distribution: temurin

- name: Build and deploy to Maven Central
run: mvn deploy -DrepositoryId=central -Durl=https://mvnrepository.com/gov.cdc.lib-hl7v2-nist-validator
run: mvn deploy #-DrepositoryId=central -Durl=https://mvnrepository.com/gov.cdc.lib-hl7v2-nist-validator#
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mvn-settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</servers>
<servers>
<server>
<id>sonatype</id>
<id>central</id>
<username>${env.SONATYPE_USERNAME}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
Expand Down
19 changes: 16 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,24 @@
<id>github</id>
<url>https://maven.pkg.github.com/cdcgov/lib-hl7v2-nist-validator</url>
<repository />

<!--Maven Central distribution -->
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.5.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
</configuration>
</plugin>
</plugins>
</build>
<!--Maven Central distribution
<repository>
<id>central</id>
<url>https://mvnrepository.com/gov.cdc.lib-hl7v2-nist-validator</url>
<repository />
</distributionManagement>
</distributionManagement> -->
</project>

0 comments on commit 96d0ada

Please sign in to comment.