我试图通过Gatling运行一个简单的性能测试。我使用maven来运行这个过程。为了便于在代码中的更改破坏我的gatling测试时,我希望maven构建失败。我已经确保在我的<failOnError>true</failOnError>文件中添加了pom.xml。
我现在的脚本是这样的:
class MySim extends Simulation {
val httpProtocol = http.baseURL("http://localhost:8080")
val scn = scenario("Test")
我最近在jenkins上构建作业时遇到了一个错误,同样的构建在几周内就成功了,但昨天构建失败了,错误如下:
[ERROR] Error resolving version for plugin 'org.apache.maven.plugins:maven- eclipse-plugin' from the repositories [local (/cip/home/jenkins-V1/.m2/repository-Project), central (http://mrm.fr.company.com/Project-virtual), snapshots (http:
早些时候,我使用sonar-maven-plugin version 3.2,然后当一个声纳质量门失败时,构建也会失败。现在我使用的是sonar-maven-plugin version 3.7.0.1746,这种情况不会发生。即使质量门失败了,maven构建也成功了。现在,当我在pom.xml中使用3.2版时,它给出了错误
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar (default-cli) on project maven-webapp: Unable
我正在将一个需要Maven 3.0.4的应用程序部署到Heroku Cedar堆栈,但是构建失败了,并发出了以下警告:
Rule 1: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:
Build with Maven 3.0.4 or later. Maven 3.0 through 3.0.3 inclusive do not pass
correct settings.xml to Maven Release Plugin.
我相信这个失败是由这个Maven错误引起的:
。
我的智力有个奇怪的问题。我能够通过maven install成功地构建我的项目。当我想在intellij上运行单单元测试时,intellij构建失败并出现错误:
Error:(15, 20) cannot find symbol class B
当我打开这个类时,没有红线,没有错误。我尝试重新加载maven项目,通过maven清理并运行install,但是当使用intellij运行单元测试时,它失败了。我检查了设置->编译-> excludes,那里什么都没有。
这里会有什么问题呢?为什么intellij不能构建它?
我正在尝试为我的Maven多模块项目构建一个CircleCI构建。问题是,当在circle-ci上构建时,模块B无法找到模块A的依赖项。
如果我检查日志,模块A的构建会失败。这里的问题是,CircleCI正在Maven Central Repo上查找A.jar。它应该是本地可用的,因为它是一个maven子模块。
[ERROR] Failed to execute goal on project post-processor:
Could not resolve dependencies for `B`: Could not find artifact
A:1.1-snapshot in c