maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry West (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SUREFIRE-1502) Forking fails on OS/X
Date Sat, 17 Mar 2018 01:07:00 GMT

    [ https://issues.apache.org/jira/browse/SUREFIRE-1502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16403179#comment-16403179
] 

Larry West commented on SUREFIRE-1502:
--------------------------------------

I just tried setting {{reuseForks=false}} and was able to build successfully seven times in
a row.  It might have been slower, but going back to earlier versions presents other problems
for us.

>From the {{mvn -X}} output on the *original, failing* build:

{noformat}
[INFO] --- maven-surefire-plugin:2.21.0:test (default-test) @ jsk-cc ---
[DEBUG] Using mirror central-mirror (http://nexus-proxy/nexus/content/groups/public) for snapshots
(http://snapshots.maven.codehaus.org/maven2).
[DEBUG] Using mirror central-mirror (http://nexus-proxy/nexus/content/groups/public) for central
(http://repo1.maven.org/maven2).
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=313522, ConflictMarker.markTime=102477,
ConflictMarker.nodeCount=114, ConflictIdSorter.graphTime=171914, ConflictIdSorter.topsortTime=41866,
ConflictIdSorter.conflictIdCount=37, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=1118242,
ConflictResolver.conflictItemCount=79, DefaultDependencyCollector.collectTime=50282293, DefaultDependencyCollector.transformTime=1773104}
[DEBUG] org.apache.maven.plugins:maven-surefire-plugin:jar:2.21.0:
[DEBUG]    org.apache.maven.surefire:maven-surefire-common:jar:2.21.0:compile
[DEBUG]       org.apache.maven:maven-plugin-api:jar:2.2.1:compile
[DEBUG]       org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.5:compile
[DEBUG]       org.apache.maven.surefire:surefire-api:jar:2.21.0:compile
[DEBUG]          org.apache.maven.surefire:surefire-logger-api:jar:2.21.0:compile
[DEBUG]       org.apache.maven.surefire:surefire-booter:jar:2.21.0:compile
[DEBUG]       org.apache.maven:maven-artifact:jar:2.2.1:compile
[DEBUG]          org.codehaus.plexus:plexus-utils:jar:1.5.15:compile
[DEBUG]       org.apache.maven:maven-plugin-descriptor:jar:2.2.1:compile
[DEBUG]          org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG]             junit:junit:jar:4.12:compile
[DEBUG]                org.hamcrest:hamcrest-core:jar:1.3:compile
[DEBUG]       org.apache.maven:maven-project:jar:2.2.1:compile
[DEBUG]          org.apache.maven:maven-settings:jar:2.2.1:compile
[DEBUG]          org.apache.maven:maven-profile:jar:2.2.1:compile
[DEBUG]          org.apache.maven:maven-artifact-manager:jar:2.2.1:compile
[DEBUG]             backport-util-concurrent:backport-util-concurrent:jar:3.1:compile
[DEBUG]          org.apache.maven:maven-plugin-registry:jar:2.2.1:compile
[DEBUG]          org.codehaus.plexus:plexus-interpolation:jar:1.11:compile
[DEBUG]       org.apache.maven:maven-model:jar:2.2.1:compile
[DEBUG]       org.apache.maven:maven-core:jar:2.2.1:compile
[DEBUG]          org.apache.maven:maven-plugin-parameter-documenter:jar:2.2.1:compile
[DEBUG]          org.slf4j:slf4j-jdk14:jar:1.5.6:runtime
[DEBUG]             org.slf4j:slf4j-api:jar:1.5.6:runtime
[DEBUG]          org.slf4j:jcl-over-slf4j:jar:1.5.6:runtime
[DEBUG]          org.apache.maven.reporting:maven-reporting-api:jar:3.0:compile
[DEBUG]          org.apache.maven:maven-repository-metadata:jar:2.2.1:compile
[DEBUG]          org.apache.maven:maven-error-diagnostics:jar:2.2.1:compile
[DEBUG]          org.apache.maven:maven-monitor:jar:2.2.1:compile
[DEBUG]          classworlds:classworlds:jar:1.1:compile
[DEBUG]          org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile
[DEBUG]             org.sonatype.plexus:plexus-cipher:jar:1.4:compile
[DEBUG]       org.apache.maven:maven-toolchain:jar:2.2.1:compile
[DEBUG]       org.codehaus.plexus:plexus-java:jar:0.9.3:compile
[DEBUG]          org.ow2.asm:asm:jar:6.0_BETA:compile
[DEBUG]          com.thoughtworks.qdox:qdox:jar:2.0-M7:compile
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-surefire-plugin:2.21.0
[DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-surefire-plugin:2.21.0
[DEBUG]   Imported:  < maven.api
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-surefire-plugin:2.21.0
[DEBUG]   Included: org.apache.maven.plugins:maven-surefire-plugin:jar:2.21.0
[DEBUG]   Included: org.apache.maven.surefire:maven-surefire-common:jar:2.21.0
[DEBUG]   Included: org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.5
[DEBUG]   Included: org.apache.maven.surefire:surefire-api:jar:2.21.0
[DEBUG]   Included: org.apache.maven.surefire:surefire-logger-api:jar:2.21.0
[DEBUG]   Included: org.apache.maven.surefire:surefire-booter:jar:2.21.0
[DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:1.5.15
[DEBUG]   Included: junit:junit:jar:4.12
[DEBUG]   Included: org.hamcrest:hamcrest-core:jar:1.3
[DEBUG]   Included: backport-util-concurrent:backport-util-concurrent:jar:3.1
[DEBUG]   Included: org.codehaus.plexus:plexus-interpolation:jar:1.11
[DEBUG]   Included: org.slf4j:slf4j-jdk14:jar:1.5.6
[DEBUG]   Included: org.slf4j:jcl-over-slf4j:jar:1.5.6
[DEBUG]   Included: org.apache.maven.reporting:maven-reporting-api:jar:3.0
[DEBUG]   Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3
[DEBUG]   Included: org.sonatype.plexus:plexus-cipher:jar:1.4
[DEBUG]   Included: org.codehaus.plexus:plexus-java:jar:0.9.3
[DEBUG]   Included: org.ow2.asm:asm:jar:6.0_BETA
[DEBUG]   Included: com.thoughtworks.qdox:qdox:jar:2.0-M7
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test from plugin
realm ClassRealm[plugin>org.apache.maven.plugins:maven-surefire-plugin:2.21.0, parent:
sun.misc.Launcher$AppClassLoader@3d4eac69]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test' with
basic configurator -->
[DEBUG]   (s) additionalClasspathElements = []
[DEBUG]   (s) basedir = /Users/lwest/git/caas/jsk-cc
[DEBUG]   (s) childDelegation = false
[DEBUG]   (s) classesDirectory = /Users/lwest/git/caas/jsk-cc/target/classes
[DEBUG]   (s) classpathDependencyExcludes = []
[DEBUG]   (s) dependenciesToScan = []
[DEBUG]   (s) disableXmlReport = false
[DEBUG]   (s) enableAssertions = true
[DEBUG]   (f) forkCount = 1
[DEBUG]   (s) forkMode = once
[DEBUG]   (s) forkedProcessExitTimeoutInSeconds = 30
[DEBUG]   (s) junitArtifactName = junit:junit
[DEBUG]   (s) localRepository =       id: local
      url: file:///Users/lwest/.m2/repository/
   layout: default
snapshots: [enabled => true, update => always]
 releases: [enabled => true, update => always]

[DEBUG]   (f) parallelMavenExecution = false
[DEBUG]   (s) parallelOptimized = true
[DEBUG]   (s) perCoreThreadCount = true
[DEBUG]   (s) pluginArtifactMap = {org.apache.maven.plugins:maven-surefire-plugin=org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.21.0:,
org.apache.maven.surefire:maven-surefire-common=org.apache.maven.surefire:maven-surefire-common:jar:2.21.0:compile,
org.apache.maven:maven-plugin-api=org.apache.maven:maven-plugin-api:jar:2.2.1:compile, org.apache.maven.plugin-tools:maven-plugin-annotations=org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.5:compile,
org.apache.maven.surefire:surefire-api=org.apache.maven.surefire:surefire-api:jar:2.21.0:compile,
org.apache.maven.surefire:surefire-logger-api=org.apache.maven.surefire:surefire-logger-api:jar:2.21.0:compile,
org.apache.maven.surefire:surefire-booter=org.apache.maven.surefire:surefire-booter:jar:2.21.0:compile,
org.apache.maven:maven-artifact=org.apache.maven:maven-artifact:jar:2.2.1:compile, org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:1.5.15:compile,
org.apache.maven:maven-plugin-descriptor=org.apache.maven:maven-plugin-descriptor:jar:2.2.1:compile,
org.codehaus.plexus:plexus-container-default=org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile,
junit:junit=junit:junit:jar:4.12:compile, org.hamcrest:hamcrest-core=org.hamcrest:hamcrest-core:jar:1.3:compile,
org.apache.maven:maven-project=org.apache.maven:maven-project:jar:2.2.1:compile, org.apache.maven:maven-settings=org.apache.maven:maven-settings:jar:2.2.1:compile,
org.apache.maven:maven-profile=org.apache.maven:maven-profile:jar:2.2.1:compile, org.apache.maven:maven-artifact-manager=org.apache.maven:maven-artifact-manager:jar:2.2.1:compile,
backport-util-concurrent:backport-util-concurrent=backport-util-concurrent:backport-util-concurrent:jar:3.1:compile,
org.apache.maven:maven-plugin-registry=org.apache.maven:maven-plugin-registry:jar:2.2.1:compile,
org.codehaus.plexus:plexus-interpolation=org.codehaus.plexus:plexus-interpolation:jar:1.11:compile,
org.apache.maven:maven-model=org.apache.maven:maven-model:jar:2.2.1:compile, org.apache.maven:maven-core=org.apache.maven:maven-core:jar:2.2.1:compile,
org.apache.maven:maven-plugin-parameter-documenter=org.apache.maven:maven-plugin-parameter-documenter:jar:2.2.1:compile,
org.slf4j:slf4j-jdk14=org.slf4j:slf4j-jdk14:jar:1.5.6:runtime, org.slf4j:slf4j-api=org.slf4j:slf4j-api:jar:1.5.6:runtime,
org.slf4j:jcl-over-slf4j=org.slf4j:jcl-over-slf4j:jar:1.5.6:runtime, org.apache.maven.reporting:maven-reporting-api=org.apache.maven.reporting:maven-reporting-api:jar:3.0:compile,
org.apache.maven:maven-repository-metadata=org.apache.maven:maven-repository-metadata:jar:2.2.1:compile,
org.apache.maven:maven-error-diagnostics=org.apache.maven:maven-error-diagnostics:jar:2.2.1:compile,
org.apache.maven:maven-monitor=org.apache.maven:maven-monitor:jar:2.2.1:compile, classworlds:classworlds=classworlds:classworlds:jar:1.1:compile,
org.sonatype.plexus:plexus-sec-dispatcher=org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile,
org.sonatype.plexus:plexus-cipher=org.sonatype.plexus:plexus-cipher:jar:1.4:compile, org.apache.maven:maven-toolchain=org.apache.maven:maven-toolchain:jar:2.2.1:compile,
org.codehaus.plexus:plexus-java=org.codehaus.plexus:plexus-java:jar:0.9.3:compile, org.ow2.asm:asm=org.ow2.asm:asm:jar:6.0_BETA:compile,
com.thoughtworks.qdox:qdox=com.thoughtworks.qdox:qdox:jar:2.0-M7:compile}
[DEBUG]   (f) pluginDescriptor = Component Descriptor: role: 'org.apache.maven.plugin.Mojo',
implementation: 'org.apache.maven.plugin.surefire.HelpMojo', role hint: 'org.apache.maven.plugins:maven-surefire-plugin:2.21.0:help'
role: 'org.apache.maven.plugin.Mojo', implementation: 'org.apache.maven.plugin.surefire.SurefirePlugin',
role hint: 'org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test'
---
[DEBUG]   (s) printSummary = true
[DEBUG]   (s) projectArtifactMap = {com.amazonaws:aws-java-sdk-s3=com.amazonaws:aws-java-sdk-s3:jar:1.11.295:compile,
com.amazonaws:aws-java-sdk-kms=com.amazonaws:aws-java-sdk-kms:jar:1.11.295:compile, com.amazonaws:aws-java-sdk-core=com.amazonaws:aws-java-sdk-core:jar:1.11.295:compile,
commons-logging:commons-logging=commons-logging:commons-logging:jar:1.1.3:compile, org.apache.httpcomponents:httpclient=org.apache.httpcomponents:httpclient:jar:4.5.5:compile,
org.apache.httpcomponents:httpcore=org.apache.httpcomponents:httpcore:jar:4.4.9:compile, software.amazon.ion:ion-java=software.amazon.ion:ion-java:jar:1.0.2:compile,
com.fasterxml.jackson.dataformat:jackson-dataformat-cbor=com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.6.7:compile,
joda-time:joda-time=joda-time:joda-time:jar:2.9.9:compile, com.amazonaws:jmespath-java=com.amazonaws:jmespath-java:jar:1.11.295:compile,
org.springframework.boot:spring-boot-autoconfigure=org.springframework.boot:spring-boot-autoconfigure:jar:1.4.7.RELEASE:compile,
org.springframework.boot:spring-boot=org.springframework.boot:spring-boot:jar:1.4.7.RELEASE:compile,
com.company.platform.config:spring-cloud-config-client=com.company.platform.config:spring-cloud-config-client:jar:1.2.1.10.RELEASE-INTUIT:compile,
org.springframework.cloud:spring-cloud-commons=org.springframework.cloud:spring-cloud-commons:jar:1.2.5.RELEASE:compile,
org.springframework.cloud:spring-cloud-context=org.springframework.cloud:spring-cloud-context:jar:1.2.5.RELEASE:compile,
org.springframework:spring-web=org.springframework:spring-web:jar:4.3.14.RELEASE:compile,
com.fasterxml.jackson.core:jackson-annotations=com.fasterxml.jackson.core:jackson-annotations:jar:2.6.5:compile,
com.fasterxml.jackson.core:jackson-databind=com.fasterxml.jackson.core:jackson-databind:jar:2.6.5:compile,
com.fasterxml.jackson.core:jackson-core=com.fasterxml.jackson.core:jackson-core:jar:2.6.5:compile,
org.springframework.security:spring-security-crypto=org.springframework.security:spring-security-crypto:jar:4.2.4.RELEASE:compile,
org.springframework:spring-context=org.springframework:spring-context:jar:4.3.14.RELEASE:compile,
org.springframework:spring-aop=org.springframework:spring-aop:jar:4.3.14.RELEASE:compile,
org.springframework:spring-beans=org.springframework:spring-beans:jar:4.3.14.RELEASE:compile,
org.springframework:spring-expression=org.springframework:spring-expression:jar:4.3.14.RELEASE:compile,
org.springframework:spring-core=org.springframework:spring-core:jar:4.3.14.RELEASE:compile,
org.apache.commons:commons-lang3=org.apache.commons:commons-lang3:jar:3.7:compile, com.google.code.findbugs:jsr305=com.google.code.findbugs:jsr305:jar:3.0.2:compile,
org.json:json=org.json:json:jar:20180130:compile, org.slf4j:slf4j-api=org.slf4j:slf4j-api:jar:1.7.25:compile,
com.company.cto.general.libraries:cto-lang-utils=com.company.cto.general.libraries:cto-lang-utils:jar:2.2.4:compile,
commons-io:commons-io=commons-io:commons-io:jar:2.6:compile, com.company.cto.general.libraries:cto-logging-utils=com.company.cto.general.libraries:cto-logging-utils:jar:2.3.5:compile,
com.company.cto.general.libraries:cto-hash-utils=com.company.cto.general.libraries:cto-hash-utils:jar:2.1.4:compile,
commons-codec:commons-codec=commons-codec:commons-codec:jar:1.11:compile, com.company.cto.general.libraries:cto-io-utils=com.company.cto.general.libraries:cto-io-utils:jar:2.1.6:compile,
javax.mail:javax.mail-api=javax.mail:javax.mail-api:jar:1.6.0:compile, com.sun.mail:javax.mail=com.sun.mail:javax.mail:jar:1.6.0:compile,
javax.activation:activation=javax.activation:activation:jar:1.1:compile, com.company.cto.general.libraries:cto-env-utils=com.company.cto.general.libraries:cto-env-utils:jar:3.0.4:compile,
com.google.guava:guava=com.google.guava:guava:jar:24.0-jre:compile, org.checkerframework:checker-compat-qual=org.checkerframework:checker-compat-qual:jar:2.0.0:compile,
com.google.errorprone:error_prone_annotations=com.google.errorprone:error_prone_annotations:jar:2.1.3:compile,
com.google.j2objc:j2objc-annotations=com.google.j2objc:j2objc-annotations:jar:1.1:compile,
org.codehaus.mojo:animal-sniffer-annotations=org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile,
org.springframework.boot:spring-boot-configuration-processor=org.springframework.boot:spring-boot-configuration-processor:jar:1.4.7.RELEASE:provided,
org.springframework.boot:spring-boot-starter-test=org.springframework.boot:spring-boot-starter-test:jar:1.4.7.RELEASE:test,
org.springframework.boot:spring-boot-test=org.springframework.boot:spring-boot-test:jar:1.4.7.RELEASE:test,
org.springframework.boot:spring-boot-test-autoconfigure=org.springframework.boot:spring-boot-test-autoconfigure:jar:1.4.7.RELEASE:test,
com.jayway.jsonpath:json-path=com.jayway.jsonpath:json-path:jar:2.2.0:test, net.minidev:json-smart=net.minidev:json-smart:jar:2.2.1:test,
net.minidev:accessors-smart=net.minidev:accessors-smart:jar:1.1:test, org.ow2.asm:asm=org.ow2.asm:asm:jar:5.0.3:test,
org.mockito:mockito-core=org.mockito:mockito-core:jar:1.10.19:test, org.objenesis:objenesis=org.objenesis:objenesis:jar:2.1:test,
org.hamcrest:hamcrest-core=org.hamcrest:hamcrest-core:jar:1.3:test, org.hamcrest:hamcrest-library=org.hamcrest:hamcrest-library:jar:1.3:test,
org.skyscreamer:jsonassert=org.skyscreamer:jsonassert:jar:1.3.0:test, junit:junit=junit:junit:jar:4.12:test,
com.company.cto.test.libraries:cto-test-utils=com.company.cto.test.libraries:cto-test-utils:jar:2.1.2:test,
org.mockito:mockito-all=org.mockito:mockito-all:jar:1.10.19:test, org.assertj:assertj-core=org.assertj:assertj-core:jar:3.8.0:test,
org.springframework:spring-test=org.springframework:spring-test:jar:4.3.14.RELEASE:test, org.slf4j:jcl-over-slf4j=org.slf4j:jcl-over-slf4j:jar:1.7.25:test,
org.slf4j:jul-to-slf4j=org.slf4j:jul-to-slf4j:jar:1.7.25:test, org.apache.logging.log4j:log4j-slf4j-impl=org.apache.logging.log4j:log4j-slf4j-impl:jar:2.9.0:test,
org.apache.logging.log4j:log4j-api=org.apache.logging.log4j:log4j-api:jar:2.9.0:test, org.apache.logging.log4j:log4j-core=org.apache.logging.log4j:log4j-core:jar:2.9.0:test,
org.powermock:powermock-api-mockito=org.powermock:powermock-api-mockito:jar:1.6.6:test, org.powermock:powermock-api-mockito-common=org.powermock:powermock-api-mockito-common:jar:1.6.6:test,
org.powermock:powermock-api-support=org.powermock:powermock-api-support:jar:1.6.6:test, org.powermock:powermock-module-junit4=org.powermock:powermock-module-junit4:jar:1.6.6:test,
org.powermock:powermock-module-junit4-common=org.powermock:powermock-module-junit4-common:jar:1.6.6:test,
org.powermock:powermock-core=org.powermock:powermock-core:jar:1.6.6:test, org.javassist:javassist=org.javassist:javassist:jar:3.21.0-GA:test,
org.powermock:powermock-reflect=org.powermock:powermock-reflect:jar:1.6.6:test, com.company.platform.jsk.docs:jsk-docs=com.company.platform.jsk.docs:jsk-docs:xml:site:2.2.3:provided}
[DEBUG]   (s) projectBuildDirectory = /Users/lwest/git/caas/jsk-cc/target
[DEBUG]   (s) redirectTestOutputToFile = false
[DEBUG]   (s) remoteRepositories = [      id: central-mirror
      url: http://nexus-proxy/nexus/content/groups/public
   layout: default
snapshots: [enabled => true, update => daily]
 releases: [enabled => true, update => daily]
,       id: fallback-plugin-repo
      url: http://nexus.company.net/nexus/content/groups/public
   layout: default
snapshots: [enabled => true, update => daily]
 releases: [enabled => true, update => daily]
]
[DEBUG]   (s) reportFormat = brief
[DEBUG]   (s) reportsDirectory = /Users/lwest/git/caas/jsk-cc/target/test-reports
[DEBUG]   (f) rerunFailingTestsCount = 0
[DEBUG]   (f) reuseForks = true
[DEBUG]   (s) runOrder = filesystem
[DEBUG]   (f) shutdown = testset
[DEBUG]   (s) skip = false
[DEBUG]   (f) skipAfterFailureCount = 0
[DEBUG]   (s) skipTests = false
[DEBUG]   (s) suiteXmlFiles = []
[DEBUG]   (s) tempDir = surefire
[DEBUG]   (s) testClassesDirectory = /Users/lwest/git/caas/jsk-cc/target/test-classes
[DEBUG]   (s) testFailureIgnore = false
[DEBUG]   (s) testNGArtifactName = org.testng:testng
[DEBUG]   (s) testSourceDirectory = /Users/lwest/git/caas/jsk-cc/src/test/java
[DEBUG]   (s) threadCountClasses = 0
[DEBUG]   (s) threadCountMethods = 0
[DEBUG]   (s) threadCountSuites = 0
[DEBUG]   (s) trimStackTrace = true
[DEBUG]   (s) useFile = true
[DEBUG]   (s) useManifestOnlyJar = true
[DEBUG]   (s) useSystemClassLoader = true
[DEBUG]   (s) useUnlimitedThreads = false
[DEBUG]   (s) workingDirectory = /Users/lwest/git/caas/jsk-cc
[DEBUG]   (s) project = MavenProject: com.company.platform.jsk.spring:jsk-cc:1.7.9-SNAPSHOT
@ /Users/lwest/git/caas/jsk-cc/pom.xml
[DEBUG]   (s) session = org.apache.maven.execution.MavenSession@eadb475
[DEBUG] -- end configuration --
[DEBUG] Surefire report directory: /Users/lwest/git/caas/jsk-cc/target/test-reports
[WARNING] file.encoding cannot be set as system property, use <argLine>-Dfile.encoding=...</argLine>
instead
[DEBUG] Setting system property [user.dir]=[/Users/lwest/git/caas/jsk-cc]
[DEBUG] Setting system property [file.encoding]=[UTF-8]
[DEBUG] Setting system property [localRepository]=[/Users/lwest/.m2/repository]
[DEBUG] Setting system property [basedir]=[/Users/lwest/git/caas/jsk-cc]
[DEBUG] dummy:dummy:jar:1.0 (selected for null)
[DEBUG]   org.apache.maven.surefire:surefire-booter:jar:2.21.0:compile (selected for compile)
[DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.21.0:compile (selected for compile)
[DEBUG]       org.apache.maven.surefire:surefire-logger-api:jar:2.21.0:compile (selected for
compile)
[DEBUG] Adding to surefire booter test classpath: /Users/lwest/.m2/repository/org/apache/maven/surefire/surefire-booter/2.21.0/surefire-booter-2.21.0.jar
Scope: compile
[DEBUG] Adding to surefire booter test classpath: /Users/lwest/.m2/repository/org/apache/maven/surefire/surefire-api/2.21.0/surefire-api-2.21.0.jar
Scope: compile
[DEBUG] Adding to surefire booter test classpath: /Users/lwest/.m2/repository/org/apache/maven/surefire/surefire-logger-api/2.21.0/surefire-logger-api-2.21.0.jar
Scope: compile
[DEBUG] Using JVM: /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/bin/java
with Java version 1.8
[DEBUG] dummy:dummy:jar:1.0 (selected for null)
[DEBUG]   org.apache.maven.surefire:surefire-junit4:jar:2.21.0:test (selected for test)
[DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.21.0:test (selected for test)
[DEBUG]       org.apache.maven.surefire:surefire-logger-api:jar:2.21.0:test (selected for
test)
[DEBUG] Adding to surefire test classpath: /Users/lwest/.m2/repository/org/apache/maven/surefire/surefire-junit4/2.21.0/surefire-junit4-2.21.0.jar
Scope: test
[DEBUG] Adding to surefire test classpath: /Users/lwest/.m2/repository/org/apache/maven/surefire/surefire-api/2.21.0/surefire-api-2.21.0.jar
Scope: test
[DEBUG] Adding to surefire test classpath: /Users/lwest/.m2/repository/org/apache/maven/surefire/surefire-logger-api/2.21.0/surefire-logger-api-2.21.0.jar
Scope: test
{noformat}

> Forking fails on OS/X
> ---------------------
>
>                 Key: SUREFIRE-1502
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1502
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: process forking
>    Affects Versions: 2.20.1, 2.21.0
>         Environment: OS/X 10.13.3
> Java 1.8.0_162
>            Reporter: Larry West
>            Assignee: Tibor Digana
>            Priority: Major
>             Fix For: 2.21.0
>
>         Attachments: surefire3972773662020453876tmp, surefire_06790995305937656848tmp
>
>
> This is very similar to SUREFIRE-1422, but is still present _intermittently_ on version
2.21.0 as well as 2.20.1.  It was not present on 2.19.1.
> The symptom is that all tests run fine (the reports are there), but as soon as they do,
there is an error:
> {noformat}
> The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
>  ...
> Process Exit Code: 0
> {noformat}
> This of course fails the build.
> This occurs on roughly half the builds (with 2.21.0, at least).
> Maven version 3.5.3. Java 1.8.0_162. OS/X 10.13.3.
> h5. Selected output from mvn -X
> {noformat}
> [DEBUG] Forking command line: /bin/sh -c cd /Users/lwest/git/caas/jsk-cc && /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/bin/java
-jar /Users/lwest/git/caas/jsk-cc/target/surefire/surefirebooter4496843559994461722.jar /Users/lwest/git/caas/jsk-cc/target/surefire
2018-03-16T16-08-09_300-jvmRun1 surefire3972773662020453876tmp surefire_06790995305937656848tmp
> {noformat}
> ... then, after all the tests have run, successfully, it reports failure:
> {noformat}
> Caused by: org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM
terminated without properly saying goodbye. VM crash or System.exit called?
> Command was /bin/sh -c cd /Users/lwest/git/caas/jsk-cc && /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/bin/java
-jar /Users/lwest/git/caas/jsk-cc/target/surefire/surefirebooter4496843559994461722.jar /Users/lwest/git/caas/jsk-cc/target/surefire
2018-03-16T16-08-09_300-jvmRun1 surefire3972773662020453876tmp surefire_06790995305937656848tmp
> Process Exit Code: 0
>     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork (ForkStarter.java:671)
>     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork (ForkStarter.java:533)
>     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run (ForkStarter.java:278)
>     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run (ForkStarter.java:244)
>     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider (AbstractSurefireMojo.java:1148)
>     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked
(AbstractSurefireMojo.java:977)
>     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute (AbstractSurefireMojo.java:853)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
>     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
>     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
>     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:56)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:498)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
>     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)
> {noformat}
> There are no "[date]-jvmRun[N].dump", "[date].dumpstream" or "[date]-jvmRun[N].dumpstream"
files.
> h5. Addendum
> One detail that is perhaps not relevant is that our projects always use {{file.encoding=UTF-8}},
but I see that ForkStarter has hard-coded {{ISO_8859_1}} as the StreamCharset param to executeCommandLineAsCallable().



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message