当我运行mvn clean install时,我得到了这个:
[警告] com.ubikingenierie.ubikloadpack.gwt的pOM:ubik-jmeter-gwt-plugin-above2:jar:4.1.0缺失,没有可用的依赖信息
[警告]缺少com.edgenius:geniuswiki-gwtserver:jar:3.23的POM,没有可用的依赖信息
[警告] com.edgenius的pOM:geniuswiki-serpol:jar:3.23缺失,没有可用的依赖项信息[错误]无法在项目my-app上执行目标com.lazerycode.jmeter:jmeter-maven-plugin:1.10.1:jmeter(jmeter-tests):执行jmeter-目标com.lazerycode.jmeter的测试: jmeter-maven-plugin:1.10.1:jmeter失败:插件com.lazerycode.jmeter:jmeter-maven-plugin:1.10.1或其中一个依赖项无法解析:以下工件无法解析:com.ubikingenierie .ubikloadpack.gwt:ubik-jmeter-gwt-plugin-above2:jar:4.1.0,com.edgenius:geniuswiki-gwtserver:jar:3.23,com.edgenius:geniuswiki-serpol:jar:3.23:找不到com。 ubikingenierie.ubikloadpack.gwt:ubik-jmeter-gwt-plugin-above2:https://repo.maven.apache.org/maven2中的jar:4.1.0被缓存在本地存储库中,在中心的更新间隔过去或更新后才会重新尝试解析强迫
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>my-app</name>
<url>http://maven.apache.org</url>
<build>
<plugins>
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>1.10.1</version>
<configuration>
<overrideRootLogLevel>INFO</overrideRootLogLevel>
<suppressJMeterOutput>false</suppressJMeterOutput>
<ignoreResultFailures>true</ignoreResultFailures>
</configuration>
<executions>
<execution>
<id>jmeter-tests</id>
<phase>verify</phase>
<goals>
<goal>jmeter</goal>
</goals>
<configuration>
<propertiesJMeter>
<jmeter.save.saveservice.response_data>false</jmeter.save.saveservice.response_data>
<jmeter.save.saveservice.samplerData>false</jmeter.save.saveservice.samplerData>
<jmeter.save.saveservice.requestHeaders>true</jmeter.save.saveservice.requestHeaders>
<jmeter.save.saveservice.url>true</jmeter.save.saveservice.url>
<jmeter.save.saveservice.responseHeaders>true</jmeter.save.saveservice.responseHeaders>
<ULP.gwt.licensepath>/data/ubik/ulp/licenses/trials/ubikloadpack/ubik-gwt-plugin.license</ULP.gwt.licensepath>
</propertiesJMeter>
<testFilesIncluded>
<jMeterTestFile>${testFile}</jMeterTestFile>
</testFilesIncluded>
<jmeterPlugins>
<plugin>
<groupId>com.ubikingenierie.ubikloadpack.gwt</groupId>
<artifactId>ubik-jmeter-gwt-plugin-above2</artifactId>
</plugin>
</jmeterPlugins>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.ubikingenierie.ubikloadpack.gwt</groupId>
<artifactId>ubik-jmeter-gwt-plugin-above2</artifactId>
<version>4.1.0</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>com.edgenius</groupId>
<artifactId>geniuswiki-gwtserver</artifactId>
<version>3.23</version>
</dependency>
<dependency>
<groupId>com.edgenius</groupId>
<artifactId>geniuswiki-serpol</artifactId>
<version>3.23</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
答案 0 :(得分:4)
您的问题是您没有在Maven存储库中安装以下依赖项:
所以你需要每个(Maven Repositories上没有公开的):
mvn install:安装文件....
按照:
例如 ubik-jmeter-gwt-plugin-above2-4.1.0.jar :
mvn install:install-file -Dfile = ubik-jmeter-gwt-plugin-above2.jar -DgroupId = com.ubikingenierie.ubikloadpack.gwt -DartifactId = ubik-jmeter-gwt-plugin-above2 -Dversion = 4.1。 0 -Dpackaging = jar
我让你猜其他的,确保你修改每一个: - 文件 - groupId - artifactId - 版本
您可以在此处阅读完整的说明:
此外,GWT插件的最新版本是4.2.2,请联系支持以获取更新版本。