The generated promote script fails to release the staging repository on JDK 17 and later
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 45/100
Línea de trabajo
The pinned plugin call is at line 74 of release.sh, which generates promote-$version.sh; the rc-drop call in the generated revert script needs the same check. Start by reproducing the rc-release failure on JDK 17 or later and confirming that the MAVEN_OPTS add-opens flags make it pass with 1.7.0. Done means the generated promote and revert scripts use one plugin version and the required opens, on both master and wicket-10.x.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The promote-$version.sh that release.sh generates fails at the Nexus release step when Maven runs on JDK 17 or later, and with set -e (#1749) it stops there. By then the tag is pushed and the distribution has moved to dist/release, but the staging repository isn't released and the next development version isn't set.
release.sh line 74 pins the plugin for that step:
mvn org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:rc-release -DstagingRepositoryId=$stagingrepoid ...
while rc-list, rc-close and rc-drop use LATEST. Version 1.6.7 bundles xstream 1.4.7, which can't run on a current JDK:
An API incompatibility was encountered while executing org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:rc-release: java.lang.ExceptionInInitializerError: null
... Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module
Moving to 1.7.0 (LATEST) is not enough on its own. rc-list and rc-close work with it, but rc-release serializes a list through xstream and fails the same way:
Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.7.0:rc-release ... No converter available
type : java.util.Arrays$ArrayList
message[1]: Unable to make field protected transient int java.util.AbstractList.modCount accessible: module java.base does not "opens java.util" to unnamed module
It succeeds with 1.7.0 when the JVM opens the packages xstream reflects on:
MAVEN_OPTS="--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED" \
mvn org.sonatype.plugins:nexus-staging-maven-plugin:1.7.0:rc-release ...
The generated promote script should use the same plugin version as the other steps and pass these options for the release step. rc-drop in the generated revert script runs the same plugin and should be checked for the same failure. Both master and wicket-10.x have the pin.
Found while promoting 11.0.0. Follows up on #1749.
- Lenguaje dominante
- Java
- Estrellas
- 799
- Forks
- 421
- Merge medio
- 20 h 5 min
- PR fusionados (30 d)
- 125
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/wicket
-
A second build without clean fails in resources-optimizer-maven-plugin because minified files are minified againPosiblemente ocupada @papegaaij la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
COOP and COEP exemptions compare with the context path, so page exemptions never matchPosiblemente ocupada @asvanberg la tomó hace 17 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
apache/wicket#1661 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
The CSP report-uri is lost in development mode because strict() clears itQuizá libre de nuevo @VelpulaGangavardhan la tomó hace 21 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/wicket#1660 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
apache/wicket#1567 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de apache/wicket
Issues similares
-
Keyboard crashes Chrome tabsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Julow/Unexpected-Keyboard#1490 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Vakore/ZappierGames#275 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
unitycatalog/unitycatalog#2148 ·
Los mantenedores suelen responder en 2 días
-
enhancement priority: low
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Riptide-Labs/riptide#1060 ·
Los mantenedores suelen responder en 1 día
-
bug key bindings source editor
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día