Nick Dimiduk created YETUS-1220:
-----------------------------------

             Summary: [mvn] Module directory listing fails when run against an 
empty local repository
                 Key: YETUS-1220
                 URL: https://issues.apache.org/jira/browse/YETUS-1220
             Project: Yetus
          Issue Type: Bug
    Affects Versions: 0.12.0
            Reporter: Nick Dimiduk


Over in hbase-operator-tools, I noticed that the first time Yetus's maven 
plugin goes to collect a list of module paths, it will silently fail. It 
appears that maven's dependency resolver doesn't find a dependency module from 
the same multi-module project. Subsequent invocations of this code complete 
successfully, I presume because those indications happen after a {{mvn 
install}} has occurred, populating the local repo.

{noformat}
% cat output/maven-patch-dirlist-.txt
Tue May 16 16:06:46 UTC 2023
cd /Users/ndimiduk/tmp/operator-tools-testpatch/yetus-precommit-check/src
/usr/share/maven/bin/mvn --batch-mode 
-Dmaven.repo.local=/Users/ndimiduk/yetus-m2/unknown--full-4824 -fae -q 
exec:exec -Dexec.executable=pwd -Dexec.args=''
/Users/ndimiduk/tmp/operator-tools-testpatch/yetus-precommit-check/src
/Users/ndimiduk/tmp/operator-tools-testpatch/yetus-precommit-check/src/hbase-table-reporter
/Users/ndimiduk/tmp/operator-tools-testpatch/yetus-precommit-check/src/hbase-hbck2
/Users/ndimiduk/tmp/operator-tools-testpatch/yetus-precommit-check/src/hbase-kubernetes-deployment
[ERROR] Failed to execute goal on project hbase-tools: Could not resolve 
dependencies for project 
org.apache.hbase.operator.tools:hbase-tools:jar:1.3.0-SNAPSHOT: Could not find 
artifact org.apache.hbase.operator.tools:hbase-hbck2:jar:1.3.0-SNAPSHOT in 
apache.snapshots (https://repository.apache.org/snapshots) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :hbase-tools
{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to