From e227ad8732d17ba60325a9626123efe97cdb6585 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Tue, 6 Jul 2021 20:42:55 +0800 Subject: [PATCH] fix vmtool "Can't find dependent libraries" problem under windows. #1833 --- arthas-vmtool/pom.xml | 63 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/arthas-vmtool/pom.xml b/arthas-vmtool/pom.xml index 9766bf3c4..653a58287 100644 --- a/arthas-vmtool/pom.xml +++ b/arthas-vmtool/pom.xml @@ -60,6 +60,69 @@ -m64 libArthasJniLibrary-x64.dll + + + + org.codehaus.mojo + native-maven-plugin + 1.0-alpha-11 + true + + + + arthas.VmTool + + + ${project.basedir}/src/main/native/head + ${os_name} + + + src/main/native/src + + jni-library.cpp + + + + + generic-classic + g++ + + ${os_arch_option} + -fpic + -shared + -o + + + target + g++ + + ${os_arch_option} + -fpic + -shared + -o + + -static-libstdc++ + -static + + + -o ${project.build.directory}/${lib_name} + + + + + javah + compile + + javah + initialize + compile + link + + + + + +