[
https://issues.apache.org/jira/browse/CAMEL-24985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18118751#comment-18118751
]
Guillaume Nodet commented on CAMEL-24985:
-----------------------------------------
Root cause identified and fix submitted.
The error message in the JIRA description
({{camel-yaml-dsl-validator-maven-plugin}}) was fixed by commit c3ef718de2e82
(Sep 23). However, a second failure surfaced in a fresh run afterwards:
{{Could not find artifact org.apache.camel:camel-core:test-jar:4.23.0-SNAPSHOT}}
*Root cause:* {{pilot:dependencies}} 0.4.0 resolves _all_ declared dependency
artifacts (including test-scope) before running analysis — even when
{{-Dpilot.skipTestScope=true}} is set. The flag skips test-scope _analysis_,
not test-scope _resolution_. Several modules ({{camel-management}},
{{camel-main}}, and others) declare {{camel-core:test-jar}} (classifier=tests)
as a test-scope dependency. The test-jar is only produced at the {{package}}
phase, so it is never present in a clean CI checkout, causing the failure.
*Fix:* PR #26838 installs an empty stub JAR with {{classifier=tests}} before
the compile step, using the same pattern already in place for other
unresolvable SNAPSHOT artifacts. The stub satisfies pilot's resolution step
without affecting analysis results (test-scope analysis is still skipped
entirely).
PR: https://github.com/apache/camel/pull/26838
> Dependency analysis Github wokflow is often failing with No plugin descriptor
> found at META-INF/maven/plugin.xml
> ----------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-24985
> URL: https://issues.apache.org/jira/browse/CAMEL-24985
> Project: Camel
> Issue Type: Task
> Components: build system
> Reporter: Aurélien Pupier
> Assignee: Guillaume Nodet
> Priority: Major
>
> 03
> [ERROR] Failed to parse plugin descriptor for
> org.apache.camel:camel-yaml-dsl-validator-maven-plugin:4.23.0-SNAPSHOT
> (/home/runner/work/camel/camel/dsl/camel-yaml-dsl/camel-yaml-dsl-validator-maven-plugin/target/classes):
> No plugin descriptor found at META-INF/maven/plugin.xml -> [Help 1]
> it is marking the top-level PR checks with a red mark whoch is making it
> harder to folllow which PRs are ready to be reviewed/merged
--
This message was sent by Atlassian Jira
(v8.20.10#820010)