diff --git a/project-management/backend/pom.xml b/project-management/backend/pom.xml index ecf239a272..aa20ba6e02 100644 --- a/project-management/backend/pom.xml +++ b/project-management/backend/pom.xml @@ -117,6 +117,53 @@ ${java.version} + + org.apache.maven.plugins + maven-dependency-plugin + + + copy + generate-resources + + copy + + + + + + + org.apache.jmeter + ApacheJMeter_functions + ${jmeter.version} + jar + true + src/main/resources/jmeter/lib/ext + ApacheJMeter_functions.jar + + + io.metersphere + metersphere-jmeter-functions + ${metersphere-jmeter-functions.version} + jar + true + src/main/resources/jmeter/lib/ext + metersphere-jmeter-functions.jar + + + org.python + jython-standalone + ${jython.version} + jar + true + src/main/resources/jmeter/lib/ext + jython-standalone.jar + + + ${project.build.directory}/wars + false + true + + diff --git a/project-management/backend/src/main/java/io/metersphere/listener/ProjectAppStartListener.java b/project-management/backend/src/main/java/io/metersphere/listener/ProjectAppStartListener.java index db8a2baafe..ce5b335750 100644 --- a/project-management/backend/src/main/java/io/metersphere/listener/ProjectAppStartListener.java +++ b/project-management/backend/src/main/java/io/metersphere/listener/ProjectAppStartListener.java @@ -2,6 +2,8 @@ package io.metersphere.listener; import io.metersphere.commons.utils.LogUtil; import org.apache.jmeter.util.JMeterUtils; +import org.python.core.Options; +import org.python.util.PythonInterpreter; import org.springframework.boot.context.event.ApplicationReadyEvent; import org.springframework.context.ApplicationListener; import org.springframework.context.i18n.LocaleContextHolder; @@ -14,8 +16,13 @@ public class ProjectAppStartListener implements ApplicationListener