Hi,
in two words - why the pre-build step whith twerking nucleus parent pom.xml is applied - the issue appeared because for some nasty reason the whole 5.1.0 documentation was reffering 5.1.0-SNAPSHOT nucleus/parent/pom.xml. To solve the issue it is enough to have
some dummy nucleus/parent/pom.xml in ~/.m2/repository/org/glassfish/main/nucleus-parent/5.1.0-SNAPSHOT/nucleus-parent-5.1.0-SNAPSHOT.pom (not in source code, but just in the local maven repository of actually running job).
The aim of the pre-build step is to generate a dummy 5.1.0-SNAPSHOT pom.xml and put it into ~/.m2/repository/org/glassfish/main/nucleus-parent/5.1.0-SNAPSHOT directory. After the pom.xml is there the whole source code is reverted back to its original state.
the reason why it started to fail is because that nucleus/parent/pom.xml changed and it started to use ${project.version} inside that pom.xml which did not happend before. Script did not count on that and started to fail. Since it's the only dummy pom.xml which
shall be generated, it is perfectly enought for that particular reason to take a commit which does not have modified pom.xml so it will work as before.
But after pre-build step is fixed, the whole job started to fail at:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.2:check (org.glassfish.docs-docs-checkstyle) on project docs: Execution org.glassfish.docs-docs-checkstyle of goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.2:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:3.1.2 or one of its dependencies could not be resolved: Could not find artifact org.glassfish.main:glassfish-qa-config:jar:6.1.1-SNAPSHOT in apache.snapshots (https://repository.apache.org/snapshots) -> [Help 1]
which is actually an issue inside the modified code. So, I think it is better solution to ask the author of the changes to
run
mvn -Ppublish-site clean deploy
inside docs folder of the GlassFish and fix the original issue which causes build to fail.
The local failure is prefectly similar to the build log, so it's easy to reproduce it.
Regards, Maxim.
Od: arjan tijms <arjan.tijms@xxxxxxxxx>
Odesláno: čtvrtek 27. května 2021 13:54
Komu: Maxim Nesen <maxim.nesen@xxxxxxxxxx>
Kopie: glassfish developer discussions <glassfish-dev@xxxxxxxxxxx>
Předmět: Re: [External] : Re: [glassfish-dev] glassfish.org publish job fails
Hi,
Hi,
Because validation is performed everywhere even if documentation is not supposed to be deployed for DEPLOY510 conditional.
Hmmm, any idea then why the job currently fails with "Could not find artifact org.glassfish.main:glassfish-qa-config:jar:5.1.0-SNAPSHOT in apache.snapshots ( https://repository.apache.org/snapshots)"?
Kind regards,
Arjan
Regards,
Maxim
Hi,
The error:
[INFO] --- maven-checkstyle-plugin:3.1.2:check (org.glassfish.main-nucleus-parent-checkstyle) @ nucleus-parent ---
[WARNING] The POM for org.glassfish.main:glassfish-qa-config:jar:5.1.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45.497 s
[INFO] Finished at: 2021-05-25T16:05:51Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.2:check (org.glassfish.main-nucleus-parent-checkstyle) on project nucleus-parent: Execution org.glassfish.main-nucleus-parent-checkstyle of goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.2:check
failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:3.1.2 or one of its dependencies could not be resolved: Could not find artifact org.glassfish.main:glassfish-qa-config:jar:5.1.0-SNAPSHOT in apache.snapshots ( https://repository.apache.org/snapshots)
-> [Help 1]
The script explicitly sets 5.1.0-SNAPSHOT:
#
# this part is required in order to publish 5.1.0 related documentation. We simulate 5.1.0-SNAPSHOT existence here
# otherwise publishing would file on 5.1.0-SNAPSHOT missing dependency.
#
Maybe that part needs to be in a if ${DEPLOY510} conditional?
Kind regards,
Arjan
|