This is an automated email from the ASF dual-hosted git repository.
zrlw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git
The following commit(s) were added to refs/heads/master by this push:
new 45847fc76 Show target directories for dependency issue checking (#1268)
45847fc76 is described below
commit 45847fc76d6811fa02a3a059b786faf1fff52032
Author: zrlw <[email protected]>
AuthorDate: Wed Nov 12 16:22:10 2025 +0800
Show target directories for dependency issue checking (#1268)
---
.../org/apache/dubbo/scenario/builder/ConfigurationImpl.java | 1 +
test/run-tests.sh | 12 ++++++++----
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git
a/test/dubbo-scenario-builder/src/main/java/org/apache/dubbo/scenario/builder/ConfigurationImpl.java
b/test/dubbo-scenario-builder/src/main/java/org/apache/dubbo/scenario/builder/ConfigurationImpl.java
index 941430939..516f47e50 100644
---
a/test/dubbo-scenario-builder/src/main/java/org/apache/dubbo/scenario/builder/ConfigurationImpl.java
+++
b/test/dubbo-scenario-builder/src/main/java/org/apache/dubbo/scenario/builder/ConfigurationImpl.java
@@ -268,6 +268,7 @@ public class ConfigurationImpl implements IConfiguration {
//mount ${project.basedir}/target : DUBBO_APP_DIR
String targetPath = new File(service.getBasedir(),
"target").getCanonicalPath();
service.getVolumes().add(targetPath + ":" + DUBBO_APP_DIR);
+ logger.info("mount " + targetPath + " to " + DUBBO_APP_DIR);
//mount ${scenario_home}/logs : DUBBO_LOG_DIR
service.getVolumes().add(scenarioLogDir + ":" + DUBBO_LOG_DIR);
diff --git a/test/run-tests.sh b/test/run-tests.sh
index 893120216..95db0a5bc 100755
--- a/test/run-tests.sh
+++ b/test/run-tests.sh
@@ -149,8 +149,7 @@ function run_test_with_version_profile() {
fi
echo "jvm_opts=$jvm_opts"
- # output all dependencies to the same directory (each module of multiple
module project has its own dependency output directory by default)
- mvn $BUILD_OPTS $jvm_opts
-DoutputDirectory=$project_home/target/dependency &> $project_home/mvn.log
+ mvn $BUILD_OPTS $jvm_opts &> $project_home/mvn.log
result=$?
if [ $result -ne 0 ]; then
echo "$log_prefix $TEST_FAILURE: Build failure with version: $jvm_opts,
please check log: $project_home/mvn.log" | tee -a $testResultFile
@@ -161,6 +160,9 @@ function run_test_with_version_profile() {
return 1
fi
+ # echo target directories
+ find `pwd` -name target -print
+
# generate case configuration
mkdir -p $scenario_home/logs
scenario_builder_log=$scenario_home/logs/scenario-builder.log
@@ -335,8 +337,7 @@ function process_case() {
find . -name target -d | xargs -I {} sudo rm -rf {}
fi
- # output all dependencies to the same directory (each module of
multiple module project has its own dependency output directory by default)
- mvn $BUILD_OPTS $version_profile
-DoutputDirectory=$project_home/target/dependency &> $project_home/mvn.log
+ mvn $BUILD_OPTS $version_profile &> $project_home/mvn.log
result=$?
if [ $result -ne 0 ]; then
echo "$log_prefix $TEST_FAILURE: Build failure with version:
$version_profile, please check log: $project_home/mvn.log" | tee -a
$testResultFile
@@ -346,6 +347,9 @@ function process_case() {
return 1
fi
+ # echo target directories
+ find `pwd` -name target -print
+
# generate case configuration
mkdir -p $scenario_home/logs
scenario_builder_log=$scenario_home/logs/scenario-builder.log
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]