[jira] [Created] (MCHECKSTYLE-295) Test resources are not included
Csaba Kozák created MCHECKSTYLE-295: --- Summary: Test resources are not included Key: MCHECKSTYLE-295 URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-295 Project: Maven Checkstyle Plugin Issue Type: Bug Components: checkstyle:check Affects Versions: 2.15 Reporter: Csaba Kozák The documentation says the plugin includes test resources by default, but apparently it never does. After examining the code, it seems {{CheckstyleViolationCheckMojo.execute()}} forgets to call {{request.setTestResources()}}, hence that is always null and skipped from audit. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SUREFIRE-1159) JUnit47 runner failing in parallel mode
[ https://issues.apache.org/jira/browse/SUREFIRE-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14558080#comment-14558080 ] Sergey Mashkov commented on SUREFIRE-1159: -- Yes, it is 4.12. However I believe the root case is inside custom JUnit Runner. In spite of I still think the mentioned line that checking junit version looks incorrect and should be done another way > JUnit47 runner failing in parallel mode > --- > > Key: SUREFIRE-1159 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1159 > Project: Maven Surefire > Issue Type: Bug > Components: Junit 4.7+ (parallel) support >Affects Versions: 2.18.1 >Reporter: Sergey Mashkov >Assignee: Tibor Digana > Labels: parallel > > JUnit47 runner failing in parallel mode. Due to some reason at > TestSet.java:115 it evaluates isJunit3 = true and trying to get first > children of empty TestSetDescription > {noformat} > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on > project kotlinx.css: ExecutionException: java.lang.RuntimeException: There > was an error in the forked process > [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: > java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 0, > Size: 0 > [ERROR] at > org.apache.maven.surefire.common.junit4.JUnit4RunListener.rethrowAnyTestMechanismFailures(JUnit4RunListener.java:213) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:109) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeLazy(JUnitCoreWrapper.java:89) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:58) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:144) > [ERROR] at > org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) > [ERROR] at > org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) > [ERROR] at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) > [ERROR] Caused by: java.lang.RuntimeException: > java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > [ERROR] at > org.apache.maven.surefire.junitcore.TestSet.replay(TestSet.java:100) > [ERROR] at > org.apache.maven.surefire.junitcore.ConcurrentRunListener.testSetCompleted(ConcurrentRunListener.java:82) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreRunListener.testRunFinished(JUnitCoreRunListener.java:73) > [ERROR] at > org.junit.runner.notification.SynchronizedRunListener.testRunFinished(SynchronizedRunListener.java:42) > [ERROR] at > org.junit.runner.notification.RunNotifier$2.notifyListener(RunNotifier.java:103) > [ERROR] at > org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:72) > [ERROR] at > org.junit.runner.notification.RunNotifier.fireTestRunFinished(RunNotifier.java:100) > [ERROR] at org.junit.runner.JUnitCore.run(JUnitCore.java:138) > [ERROR] at org.junit.runner.JUnitCore.run(JUnitCore.java:115) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:108) > [ERROR] ... 6 more > [ERROR] Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > [ERROR] at java.util.ArrayList.rangeCheck(ArrayList.java:653) > [ERROR] at java.util.ArrayList.get(ArrayList.java:429) > [ERROR] at > org.apache.maven.surefire.junitcore.TestSet.createReportEntry(TestSet.java:115) > [ERROR] at org.apache.maven.surefire.junitcore.TestSet.replay(TestSet.java:74) > [ERROR] ... 15 more > [ERROR] -> [Help 1] > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (MEAR-217) Snapshot dependencies are not deleted from skinny WARs
[ https://issues.apache.org/jira/browse/MEAR-217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Heinz Marbaise updated MEAR-217: - Fix Version/s: more-investigation > Snapshot dependencies are not deleted from skinny WARs > -- > > Key: MEAR-217 > URL: https://issues.apache.org/jira/browse/MEAR-217 > Project: Maven Ear Plugin > Issue Type: Bug >Reporter: Tamás Baráth > Fix For: more-investigation > > Attachments: test-project.zip > > > EAR plugin doesn't delete snapshot dependencies from skinny WARs if Maven has > downloaded that dependencies from a remote repository. The EAR contains the > files in library bundle directory and in WEB-INF/lib folder of the WARs as > well. > When snapshots are installed to local repository with 'mvn install' command, > the plugin works fine. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Closed] (MEAR-201) Exception during parallel execution (
[ https://issues.apache.org/jira/browse/MEAR-201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Heinz Marbaise closed MEAR-201. Resolution: Fixed Assignee: Karl Heinz Marbaise Has been fixed with Release 2.10. > Exception during parallel execution ( > - > > Key: MEAR-201 > URL: https://issues.apache.org/jira/browse/MEAR-201 > Project: Maven Ear Plugin > Issue Type: Bug > Environment: Maven 3.1.1 > -T 4.0 > maven-ear-plugin:2.9.1 >Reporter: Karl Heinz Marbaise >Assignee: Karl Heinz Marbaise > Fix For: 2.10 > > > {code} > 00:15:15.602 [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-ear-plugin:2.9.1:ear (default-ear) on project > xyz-ear: Execution default-ear of goal > org.apache.maven.plugins:maven-ear-plugin:2.9.1:ear failed: file mode must > be 3 or 4 characters -> [Help 1] > 00:15:15.602 org.apache.maven.lifecycle.LifecycleExecutionException: Failed > to execute goal org.apache.maven.plugins:maven-ear-plugin:2.9.1:ear > (default-ear) on project xyz-ear: Execution default-ear of goal > org.apache.maven.plugins:maven-ear-plugin:2.9.1:ear failed: file mode must > be 3 or 4 characters > 00:15:15.602 at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224) > 00:15:15.602 at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > 00:15:15.602 at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > 00:15:15.602 at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > 00:15:15.602 at > org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:169) > 00:15:15.602 at > org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:165) > 00:15:15.602 at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314) > 00:15:15.602 at java.util.concurrent.FutureTask.run(FutureTask.java:149) > 00:15:15.602 at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452) > 00:15:15.602 at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314) > 00:15:15.602 at java.util.concurrent.FutureTask.run(FutureTask.java:149) > 00:15:15.602 at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897) > 00:15:15.602 at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919) > 00:15:15.602 at java.lang.Thread.run(Thread.java:770) > 00:15:15.602 Caused by: org.apache.maven.plugin.PluginExecutionException: > Execution default-ear of goal > org.apache.maven.plugins:maven-ear-plugin:2.9.1:ear failed: file mode must > be 3 or 4 characters > 00:15:15.602 at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:115) > 00:15:15.602 at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) > 00:15:15.602 ... 13 more > 00:15:15.602 Caused by: java.lang.IllegalArgumentException: file mode must > be 3 or 4 characters > 00:15:15.602 at > org.codehaus.plexus.archiver.util.FilePermissionUtils.getFilePermissionFromMode(FilePermissionUtils.java:55) > 00:15:15.602 at > org.codehaus.plexus.archiver.util.ArchiveEntryUtils.applyPermissionsWithJvm(ArchiveEntryUtils.java:133) > 00:15:15.602 at > org.codehaus.plexus.archiver.util.ArchiveEntryUtils.chmod(ArchiveEntryUtils.java:61) > 00:15:15.602 at > org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.extractFile(AbstractZipUnArchiver.java:238) > 00:15:15.602 at > org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.extractFileIfIncluded(AbstractZipUnArchiver.java:185) > 00:15:15.602 at > org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.execute(AbstractZipUnArchiver.java:149) > 00:15:15.602 at > org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:120) > 00:15:15.602 at > org.apache.maven.plugin.ear.EarMojo.changeManifestClasspath(EarMojo.java:669) > 00:15:15.602 at org.apache.maven.plugin.ear.EarMojo.execute(EarMojo.java:338) > 00:15:15.602 at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106) > 00:15:15.602 ... 14 more > 00:15:15.603 [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-ear-plugin:2.9.1:ear (default-ear) on project > abc-ear: Execution default-ear of goal > org.apache.maven.plugins:maven-ear-plugin:2.9.1:ear failed: file mode must > be 3 or 4 characters -> [Help 1] > 00:15:15.603 org.apache.maven.lifecycle.LifecycleExecutionException: Failed > to execute goal org.apache.maven.plugins:maven-ear-plugin:2.9.1:ear > (default-ear) on project abc-ear: Execution default-ear of goal > org.apache.maven.plugins:maven-ear-plugin:2.9.1:ea
[jira] [Closed] (MWAR-255) " Negative time"
[ https://issues.apache.org/jira/browse/MWAR-255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Heinz Marbaise closed MWAR-255. Resolution: Cannot Reproduce Assignee: Karl Heinz Marbaise I will close the issue, cause it's related to an very old version. If you have newer versions etc. don't hesitate to reopen the issue. > " Negative time" > > > Key: MWAR-255 > URL: https://issues.apache.org/jira/browse/MWAR-255 > Project: Maven WAR Plugin > Issue Type: Bug >Affects Versions: 2.1.1 > Environment: Linux x64, JDK 1.6.0_25, Maven 3.0.3 >Reporter: Roman Ksoenko >Assignee: Karl Heinz Marbaise > > {noformat} > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project > library: Execution default-war of goal > org.apache.maven.plugins:maven-war-plugin:2.1.1:war failed: Negative time -> > [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on > project library: Execution default-war of goal > org.apache.maven.plugins:maven-war-plugin:2.1.1:war failed: Negative time > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > Caused by: org.apache.maven.plugin.PluginExecutionException: Execution > default-war of goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war > failed: Negative time > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > ... 19 more > Caused by: java.lang.IllegalArgumentException: Negative time > at java.io.File.setLastModified(File.java:1258) > at > org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFile(AbstractWarPackagingTask.java:295) > at > org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask$1.registered(AbstractWarPackagingTask.java:150) > at > org.apache.maven.plugin.war.util.WebappStructure.registerFile(WebappStructure.java:211) > at > org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFile(AbstractWarPackagingTask.java:145) > at > org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFiles(AbstractWarPackagingTask.java:103) > at > org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFiles(AbstractWarPackagingTask.java:125) > at > org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.handeWebAppSourceDirectory(WarProjectPackagingTask.java:168) > at > org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.performPackaging(WarProjectPackagingTask.java:93) > at > org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:472) > at > org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:404) > at > org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:197) > at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:159) > at > org.apache.maven.plugin.Def
[jira] [Commented] (SUREFIRE-1159) JUnit47 runner failing in parallel mode
[ https://issues.apache.org/jira/browse/SUREFIRE-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14558262#comment-14558262 ] Tibor Digana commented on SUREFIRE-1159: Can you send us test project where we will reproduce this issue? How often it happens? Do you use your own runner implementations ? > JUnit47 runner failing in parallel mode > --- > > Key: SUREFIRE-1159 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1159 > Project: Maven Surefire > Issue Type: Bug > Components: Junit 4.7+ (parallel) support >Affects Versions: 2.18.1 >Reporter: Sergey Mashkov >Assignee: Tibor Digana > Labels: parallel > > JUnit47 runner failing in parallel mode. Due to some reason at > TestSet.java:115 it evaluates isJunit3 = true and trying to get first > children of empty TestSetDescription > {noformat} > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on > project kotlinx.css: ExecutionException: java.lang.RuntimeException: There > was an error in the forked process > [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: > java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 0, > Size: 0 > [ERROR] at > org.apache.maven.surefire.common.junit4.JUnit4RunListener.rethrowAnyTestMechanismFailures(JUnit4RunListener.java:213) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:109) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeLazy(JUnitCoreWrapper.java:89) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:58) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:144) > [ERROR] at > org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) > [ERROR] at > org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) > [ERROR] at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) > [ERROR] Caused by: java.lang.RuntimeException: > java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > [ERROR] at > org.apache.maven.surefire.junitcore.TestSet.replay(TestSet.java:100) > [ERROR] at > org.apache.maven.surefire.junitcore.ConcurrentRunListener.testSetCompleted(ConcurrentRunListener.java:82) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreRunListener.testRunFinished(JUnitCoreRunListener.java:73) > [ERROR] at > org.junit.runner.notification.SynchronizedRunListener.testRunFinished(SynchronizedRunListener.java:42) > [ERROR] at > org.junit.runner.notification.RunNotifier$2.notifyListener(RunNotifier.java:103) > [ERROR] at > org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:72) > [ERROR] at > org.junit.runner.notification.RunNotifier.fireTestRunFinished(RunNotifier.java:100) > [ERROR] at org.junit.runner.JUnitCore.run(JUnitCore.java:138) > [ERROR] at org.junit.runner.JUnitCore.run(JUnitCore.java:115) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:108) > [ERROR] ... 6 more > [ERROR] Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > [ERROR] at java.util.ArrayList.rangeCheck(ArrayList.java:653) > [ERROR] at java.util.ArrayList.get(ArrayList.java:429) > [ERROR] at > org.apache.maven.surefire.junitcore.TestSet.createReportEntry(TestSet.java:115) > [ERROR] at org.apache.maven.surefire.junitcore.TestSet.replay(TestSet.java:74) > [ERROR] ... 15 more > [ERROR] -> [Help 1] > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (MECLIPSE-760) Source-Zip in distribution does not contain all test-resources
Andreas Gudian created MECLIPSE-760: --- Summary: Source-Zip in distribution does not contain all test-resources Key: MECLIPSE-760 URL: https://issues.apache.org/jira/browse/MECLIPSE-760 Project: Maven Eclipse Plugin Issue Type: Task Reporter: Andreas Gudian Priority: Critical Fix For: 3.0 When building from the source-distribution, some tests fail because not all resources end up in the zip file (e.g. the {{.metadata}} directories are missing). -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SUREFIRE-1159) JUnit47 runner failing in parallel mode
[ https://issues.apache.org/jira/browse/SUREFIRE-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14558505#comment-14558505 ] Tibor Digana commented on SUREFIRE-1159: [~cy6ergn0m] [~Sergey.Mashkov] Possible root cause is that your test case does not have any test methods. Pls confirm real root cause and we can easier fix this issue in next release 2.19. > JUnit47 runner failing in parallel mode > --- > > Key: SUREFIRE-1159 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1159 > Project: Maven Surefire > Issue Type: Bug > Components: Junit 4.7+ (parallel) support >Affects Versions: 2.18.1 >Reporter: Sergey Mashkov >Assignee: Tibor Digana > Labels: parallel > > JUnit47 runner failing in parallel mode. Due to some reason at > TestSet.java:115 it evaluates isJunit3 = true and trying to get first > children of empty TestSetDescription > {noformat} > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on > project kotlinx.css: ExecutionException: java.lang.RuntimeException: There > was an error in the forked process > [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: > java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 0, > Size: 0 > [ERROR] at > org.apache.maven.surefire.common.junit4.JUnit4RunListener.rethrowAnyTestMechanismFailures(JUnit4RunListener.java:213) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:109) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeLazy(JUnitCoreWrapper.java:89) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:58) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:144) > [ERROR] at > org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) > [ERROR] at > org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) > [ERROR] at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) > [ERROR] Caused by: java.lang.RuntimeException: > java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > [ERROR] at > org.apache.maven.surefire.junitcore.TestSet.replay(TestSet.java:100) > [ERROR] at > org.apache.maven.surefire.junitcore.ConcurrentRunListener.testSetCompleted(ConcurrentRunListener.java:82) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreRunListener.testRunFinished(JUnitCoreRunListener.java:73) > [ERROR] at > org.junit.runner.notification.SynchronizedRunListener.testRunFinished(SynchronizedRunListener.java:42) > [ERROR] at > org.junit.runner.notification.RunNotifier$2.notifyListener(RunNotifier.java:103) > [ERROR] at > org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:72) > [ERROR] at > org.junit.runner.notification.RunNotifier.fireTestRunFinished(RunNotifier.java:100) > [ERROR] at org.junit.runner.JUnitCore.run(JUnitCore.java:138) > [ERROR] at org.junit.runner.JUnitCore.run(JUnitCore.java:115) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:108) > [ERROR] ... 6 more > [ERROR] Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > [ERROR] at java.util.ArrayList.rangeCheck(ArrayList.java:653) > [ERROR] at java.util.ArrayList.get(ArrayList.java:429) > [ERROR] at > org.apache.maven.surefire.junitcore.TestSet.createReportEntry(TestSet.java:115) > [ERROR] at org.apache.maven.surefire.junitcore.TestSet.replay(TestSet.java:74) > [ERROR] ... 15 more > [ERROR] -> [Help 1] > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SUREFIRE-1159) JUnit47 runner failing in parallel mode
[ https://issues.apache.org/jira/browse/SUREFIRE-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14558535#comment-14558535 ] Sergey Mashkov commented on SUREFIRE-1159: -- Yes, it is caused by custom runner so it is JMM visibility issue causes tests list to be empty. And it need to be fixed on custom runner side, not at surefire side. However I believe presence of tests list is not a flag to be used to detect JUnit version so I guess something should be done at TestSet.java:115 anyway. To reproduce it see https://github.com/cy6erGn0m/kotlinx.css/tree/SUREFIRE-1159 (notice branch name) If I use forkCount=N instead of parallel mode, or disable concurrent execution at all then issue disappear. > JUnit47 runner failing in parallel mode > --- > > Key: SUREFIRE-1159 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1159 > Project: Maven Surefire > Issue Type: Bug > Components: Junit 4.7+ (parallel) support >Affects Versions: 2.18.1 >Reporter: Sergey Mashkov >Assignee: Tibor Digana > Labels: parallel > > JUnit47 runner failing in parallel mode. Due to some reason at > TestSet.java:115 it evaluates isJunit3 = true and trying to get first > children of empty TestSetDescription > {noformat} > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on > project kotlinx.css: ExecutionException: java.lang.RuntimeException: There > was an error in the forked process > [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: > java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 0, > Size: 0 > [ERROR] at > org.apache.maven.surefire.common.junit4.JUnit4RunListener.rethrowAnyTestMechanismFailures(JUnit4RunListener.java:213) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:109) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeLazy(JUnitCoreWrapper.java:89) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:58) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:144) > [ERROR] at > org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) > [ERROR] at > org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) > [ERROR] at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) > [ERROR] Caused by: java.lang.RuntimeException: > java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > [ERROR] at > org.apache.maven.surefire.junitcore.TestSet.replay(TestSet.java:100) > [ERROR] at > org.apache.maven.surefire.junitcore.ConcurrentRunListener.testSetCompleted(ConcurrentRunListener.java:82) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreRunListener.testRunFinished(JUnitCoreRunListener.java:73) > [ERROR] at > org.junit.runner.notification.SynchronizedRunListener.testRunFinished(SynchronizedRunListener.java:42) > [ERROR] at > org.junit.runner.notification.RunNotifier$2.notifyListener(RunNotifier.java:103) > [ERROR] at > org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:72) > [ERROR] at > org.junit.runner.notification.RunNotifier.fireTestRunFinished(RunNotifier.java:100) > [ERROR] at org.junit.runner.JUnitCore.run(JUnitCore.java:138) > [ERROR] at org.junit.runner.JUnitCore.run(JUnitCore.java:115) > [ERROR] at > org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:108) > [ERROR] ... 6 more > [ERROR] Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > [ERROR] at java.util.ArrayList.rangeCheck(ArrayList.java:653) > [ERROR] at java.util.ArrayList.get(ArrayList.java:429) > [ERROR] at > org.apache.maven.surefire.junitcore.TestSet.createReportEntry(TestSet.java:115) > [ERROR] at org.apache.maven.surefire.junitcore.TestSet.replay(TestSet.java:74) > [ERROR] ... 15 more > [ERROR] -> [Help 1] > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (MNG-5830) maven.multiModuleProjectDirectory system propery is not set
[ https://issues.apache.org/jira/browse/MNG-5830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Krzysztof Sobkowiak updated MNG-5830: - Component/s: Command Line Bootstrap & Build > maven.multiModuleProjectDirectory system propery is not set > --- > > Key: MNG-5830 > URL: https://issues.apache.org/jira/browse/MNG-5830 > Project: Maven > Issue Type: Bug > Components: Bootstrap & Build, Command Line >Affects Versions: 3.3.1, 3.3.3 >Reporter: Krzysztof Sobkowiak >Priority: Critical > Labels: Linux > > I have downloaded the newest Maven 3.3.3 and point the M2_HOME to the > directory with unpacked Maven. {{mvn -v}} produces following error (whereas > the versions prior to 3.1.1 worked correctly) > {code} > kso@lenovo:/tmp$ export > M2_HOME=/home/kso/work/pde/dev/maven/apache-maven-3.3.3/ > kso@lenovo:/tmp$ mvn -v > -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME > environment variable and mvn script match.kso@lenovo:/tmp$ > {code} > The same problem when I want to build any maven project. > Below the same output with Maven 3.2.5 to give you informations about my > environment > {code} > kso@lenovo:/tmp$ export > M2_HOME=/home/kso/work/pde/dev/maven/apache-maven-3.2.5/ > kso@lenovo:/tmp$ mvn -v > Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; > 2014-12-14T18:29:23+01:00) > Maven home: /home/kso/work/pde/dev/maven/apache-maven-3.2.5 > Java version: 1.7.0_71, vendor: Oracle Corporation > Java home: /home/kso/work/pde/run/jvm/jdk1.7.0_71/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "3.16.0-38-generic", arch: "amd64", family: "unix" > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (MNG-5830) maven.multiModuleProjectDirectory system propery is not set
Krzysztof Sobkowiak created MNG-5830: Summary: maven.multiModuleProjectDirectory system propery is not set Key: MNG-5830 URL: https://issues.apache.org/jira/browse/MNG-5830 Project: Maven Issue Type: Bug Affects Versions: 3.3.3, 3.3.1 Reporter: Krzysztof Sobkowiak Priority: Critical I have downloaded the newest Maven 3.3.3 and point the M2_HOME to the directory with unpacked Maven. {{mvn -v}} produces following error (whereas the versions prior to 3.1.1 worked correctly) {code} kso@lenovo:/tmp$ export M2_HOME=/home/kso/work/pde/dev/maven/apache-maven-3.3.3/ kso@lenovo:/tmp$ mvn -v -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.kso@lenovo:/tmp$ {code} The same problem when I want to build any maven project. Below the same output with Maven 3.2.5 to give you informations about my environment {code} kso@lenovo:/tmp$ export M2_HOME=/home/kso/work/pde/dev/maven/apache-maven-3.2.5/ kso@lenovo:/tmp$ mvn -v Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T18:29:23+01:00) Maven home: /home/kso/work/pde/dev/maven/apache-maven-3.2.5 Java version: 1.7.0_71, vendor: Oracle Corporation Java home: /home/kso/work/pde/run/jvm/jdk1.7.0_71/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.16.0-38-generic", arch: "amd64", family: "unix" {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (MNG-5830) maven.multiModuleProjectDirectory system propery is not set
[ https://issues.apache.org/jira/browse/MNG-5830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Krzysztof Sobkowiak updated MNG-5830: - Labels: Linux (was: ) > maven.multiModuleProjectDirectory system propery is not set > --- > > Key: MNG-5830 > URL: https://issues.apache.org/jira/browse/MNG-5830 > Project: Maven > Issue Type: Bug > Components: Bootstrap & Build, Command Line >Affects Versions: 3.3.1, 3.3.3 >Reporter: Krzysztof Sobkowiak >Priority: Critical > Labels: Linux > > I have downloaded the newest Maven 3.3.3 and point the M2_HOME to the > directory with unpacked Maven. {{mvn -v}} produces following error (whereas > the versions prior to 3.1.1 worked correctly) > {code} > kso@lenovo:/tmp$ export > M2_HOME=/home/kso/work/pde/dev/maven/apache-maven-3.3.3/ > kso@lenovo:/tmp$ mvn -v > -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME > environment variable and mvn script match.kso@lenovo:/tmp$ > {code} > The same problem when I want to build any maven project. > Below the same output with Maven 3.2.5 to give you informations about my > environment > {code} > kso@lenovo:/tmp$ export > M2_HOME=/home/kso/work/pde/dev/maven/apache-maven-3.2.5/ > kso@lenovo:/tmp$ mvn -v > Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; > 2014-12-14T18:29:23+01:00) > Maven home: /home/kso/work/pde/dev/maven/apache-maven-3.2.5 > Java version: 1.7.0_71, vendor: Oracle Corporation > Java home: /home/kso/work/pde/run/jvm/jdk1.7.0_71/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "3.16.0-38-generic", arch: "amd64", family: "unix" > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (MNG-5831) NoClassDefFoundError: org/apache/commons/cli/ParseException
FeiCao created MNG-5831: --- Summary: NoClassDefFoundError: org/apache/commons/cli/ParseException Key: MNG-5831 URL: https://issues.apache.org/jira/browse/MNG-5831 Project: Maven Issue Type: Bug Components: Bootstrap & Build, Command Line Affects Versions: 3.2.5 Environment: OS Name: Microsoft Windows 7 Enterprise OS Version:6.1.7601 Service Pack 1 Build 7601 java version "1.6.0_45" Java(TM) SE Runtime Environment (build 1.6.0_45-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode) apache-maven-3.2.5 Reporter: FeiCao C:\>java -version java version "1.6.0_45" Java(TM) SE Runtime Environment (build 1.6.0_45-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode) C:\>mvn -v Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2436) at java.lang.Class.getMethod0(Class.java:2679) at java.lang.Class.getMethod(Class.java:1605) at org.codehaus.plexus.classworlds.launcher.Launcher.getEnhancedMainMethod(Launcher.java:172) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:268) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.ParseException at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:254) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) ... 9 more C:\>set |findstr M2 M2=C:\cc\apache-maven-3.2.5 -- This message was sent by Atlassian JIRA (v6.3.4#6332)