Skip to content

Commit

Permalink
Upgrade nexus-staging-maven-plugin to fix problems during release pro… (
Browse files Browse the repository at this point in the history
#283)

…cess

Motivation:

We need to upgrade the nexus-staging-maven-plugin to fix problems during
the release process when closing the staging repository:

```
[INFO]  * Closing staging repository with ID "ionetty-1551".

    Waiting for operation to complete...
    ............................

    [INFO] Remote staged 1 repositories, finished with success.
    [INFO] Remote staging repositories are being released...

    Waiting for operation to complete...
    Jan 16, 2024 2:08:03 PM com.sun.jersey.api.client.ClientResponse getEntity
    SEVERE: A message body reader for Java class com.sonatype.nexus.staging.api.dto.StagingProfileRepositoryDTO, and Java type class com.sonatype.nexus.staging.api.dto.StagingProfileRepositoryDTO, and MIME media type text/html was not found
    Jan 16, 2024 2:08:03 PM com.sun.jersey.api.client.ClientResponse getEntity
    SEVERE: The registered message body readers compatible with the MIME media type are:
    */* ->
      com.sun.jersey.core.impl.provider.entity.FormProvider
      com.sun.jersey.core.impl.provider.entity.StringProvider
      com.sun.jersey.core.impl.provider.entity.ByteArrayProvider
      com.sun.jersey.core.impl.provider.entity.FileProvider
      com.sun.jersey.core.impl.provider.entity.InputStreamProvider
      com.sun.jersey.core.impl.provider.entity.DataSourceProvider
      com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General
      com.sun.jersey.core.impl.provider.entity.ReaderProvider
      com.sun.jersey.core.impl.provider.entity.DocumentProvider
      com.sun.jersey.core.impl.provider.entity.SourceProvider$StreamSourceReader
      com.sun.jersey.core.impl.provider.entity.SourceProvider$SAXSourceReader
      com.sun.jersey.core.impl.provider.entity.SourceProvider$DOMSourceReader
      com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General
      com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General
      com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$General
      com.sun.jersey.core.impl.provider.entity.EntityHolderReader
      com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider

    ...

    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  03:06 min
    [INFO] Finished at: 2024-01-16T14:08:03Z
    [INFO] ------------------------------------------------------------------------
```

Modifications:

Upgrade to more recent version of plugin

Result:

Release process fixed
  • Loading branch information
normanmaurer authored Feb 9, 2024
1 parent 27e775d commit eeb14ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,14 @@
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<!-- Automatically release the artifacts after the verification was complete -->
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
<skipStagingRepositoryClose>true</skipStagingRepositoryClose>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit eeb14ed

Please sign in to comment.