我已经注意到,有时候在Jenkins上运行maven时,运行的J687测试的数量在不同的运行中有所不同。在分析日志时,我看到以下片段:
Failed to run story stories/cancel.story
java.lang.InterruptedException: stories/cancel.story
at org.jbehave.core.embedder.StoryRunner$RunContext.interruptIfCancelled(StoryRunner.java:616)
at org.jbehave.core.embedder.St
在从Jenkins作业执行PhantomJS时,我得到的错误代码为255,如下所示:
20140804 18:43:55.362,10,SEVERE,"Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (PhantomJS Unit Test) on project XXXXXX: Command execution failed. Process exited with an error: 255 (Exit value: 255) -> [Help 1]",hudson.mave
我想跳过构建失败,即使集成测试失败。我正在使用maven-故障安全进行集成测试。目前,我得到了以下信息:
Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.15:verify (default) on project xxxxx: There are test failures.
问题:我可以使用下面的Maven故障安全插件吗?我知道它适用于万无一失的插件,但不确定是否可靠。
-Dmaven.test.failure.ignore=true
Maven I希望定义项目范围的接口,用于@Category 注释,并配置Maven以在构建整个项目.时排除其带注释的测试。
在应用程序项目中,有一个我想分类的测试:
@Category(Integration.class)
@Test
public void testExternalResource() { ... }
背景:
我已经建立了一个多模块maven项目:
/container (has a pom with <modules> element)
/parent (all other modules inherit from its pom. has no so
如果不满足Cobertura报告的代码覆盖率限制,我已经将我的项目的Maven构建配置为失败。效果很好。当我使用Maven的站点生成工具时,我已经尝试在Cobertura报告中生成和链接,但是在执行mvn site时我得到了这个错误
Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on project kb-framework:
failed to get report for org.codehaus.mojo:cobertura-maven-plugin:
我把詹金斯和索纳尔都装好了。我可以使用Jenkins构建一个maven android项目。不,我想运行android项目的Sonar。我在詹金斯安装了声纳插件。在配置系统模块中配置声纳模块,并为声纳运行添加了一个后置任务。
[ERROR] Plugin org.codehaus.mojo:sonar-maven-plugin:sonar or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:sonar-maven-plugin:jar
我构建了一个使用Swing和Flatlaf作为主题的java应用程序。
当我通过IDE(InteliJ)运行应用程序时,它运行时没有任何问题。在我使用来自Maven的package命令成功地构建了它之后,当我尝试运行它时,我将收到以下错误:
(如果我通过maven-jar-plugin:3.1.0插件构建它,我会得到相同的结果)
Error: Unable to initialize main class com.Yad2AutomationWithGUI.bouncer.Main
Caused by: java.lang.NoClassDefFoundError: com/formdev/f
在maven项目中,我有一些junit测试,在运行测试时需要引用一些运行时库( birt运行时):
@Before
public void setup() {
// init osgi/birt rte.
BEngine.getEngine().init("C:\\birt-runtime-2_6_1\\ReportEngine\\");
}
@Test
public void testname() {
// run test that requires the initialization of the above rte.