Uploaded image for project: 'WildFly Maven Plugin'
  1. WildFly Maven Plugin
  2. WFMP-114

Failure using JDK 11

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.1.Final
    • 2.0.0.Final
    • Maven Plugin
    • None

    Description

      I was using the plugin (v. 2.0.0.Final) with WF15.0.1 and JDK 11 but it was failing in starting WF.
      So i ran ServerFunctionMojoTest using JDK 11 and it failed:

      $ mvn -v
      Apache Maven 3.5.4 (Red Hat 3.5.4-4)
      Maven home: /usr/share/maven
      Java version: 11.0.2, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-11-openjdk-11.0.2.7-0.fc29.x86_64
      Default locale: en_US, platform encoding: UTF-8
      OS name: "linux", version: "4.20.5-200.fc29.x86_64", arch: "amd64", family: "unix"
      $ mvn -f tests/shared/pom.xml -Dtest=ServerFunctionMojoTest test 
      [INFO] Scanning for projects...
      [INFO] 
      [INFO] -------< org.wildfly.plugins:wildfly-maven-plugin-tests-shared >--------
      [INFO] Building wildfly-maven-plugin-tests-shared 2.0.1.Final-SNAPSHOT
      [INFO] --------------------------------[ jar ]---------------------------------
      [INFO] 
      [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-java-version) @ wildfly-maven-plugin-tests-shared ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven-version) @ wildfly-maven-plugin-tests-shared ---
      [INFO] 
      [INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ wildfly-maven-plugin-tests-shared ---
      [INFO] Executing: /bin/sh -c cd '/home/mrizzi/git/forked/wildfly-maven-plugin/tests/shared' && 'git' 'rev-parse' '--verify' 'HEAD'
      [INFO] Working directory: /home/mrizzi/git/forked/wildfly-maven-plugin/tests/shared
      [INFO] Storing buildNumber: 0dda0062d660813c469040f60999aac76660e1f4 at timestamp: 1549726446387
      [INFO] Storing buildScmBranch: master
      [INFO] 
      [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ wildfly-maven-plugin-tests-shared ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /home/mrizzi/git/forked/wildfly-maven-plugin/tests/shared/src/main/resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ wildfly-maven-plugin-tests-shared ---
      [INFO] Nothing to compile - all classes are up to date
      [INFO] 
      [INFO] --- maven-checkstyle-plugin:3.0.0:checkstyle (check-style) @ wildfly-maven-plugin-tests-shared ---
      [INFO] Starting audit...
      Audit done.
      [INFO] 
      [INFO] --- maven-dependency-plugin:3.1.1:unpack (unpack-wildfly) @ wildfly-maven-plugin-tests-shared ---
      [INFO] Configured Artifact: org.wildfly:wildfly-dist:14.0.1.Final:zip
      [INFO] Unpacking /home/mrizzi/.m2/repository/org/wildfly/wildfly-dist/14.0.1.Final/wildfly-dist-14.0.1.Final.zip to /home/mrizzi/git/forked/wildfly-maven-plugin/tests/shared/target with includes "" and excludes ""
      [INFO] 
      [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ wildfly-maven-plugin-tests-shared ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 10 resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ wildfly-maven-plugin-tests-shared ---
      [INFO] Nothing to compile - all classes are up to date
      [INFO] 
      [INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ wildfly-maven-plugin-tests-shared ---
      [INFO] 
      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [INFO] Running org.wildfly.plugin.server.ServerFunctionMojoTest
      [ERROR] Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 5.763 s <<< FAILURE! - in org.wildfly.plugin.server.ServerFunctionMojoTest
      [ERROR] testShutdownStandalone(org.wildfly.plugin.server.ServerFunctionMojoTest)  Time elapsed: 1.8 s  <<< ERROR!
      org.apache.maven.plugin.MojoExecutionException: The server failed to start
      	at org.wildfly.plugin.server.StartMojo.execute(StartMojo.java:289)
      	at org.wildfly.plugin.server.ServerFunctionMojoTest.testShutdownStandalone(ServerFunctionMojoTest.java:86)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.apache.maven.plugin.testing.MojoRule$2.evaluate(MojoRule.java:308)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
      	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
      Caused by: java.lang.RuntimeException: The process has unexpectedly exited with code 1
      	at org.wildfly.plugin.core.ServerHelper.waitForStandalone(ServerHelper.java:309)
      	at org.wildfly.plugin.server.StartMojo.execute(StartMojo.java:280)
      	... 29 more
      
      [ERROR] testStartStandalone(org.wildfly.plugin.server.ServerFunctionMojoTest)  Time elapsed: 0.433 s  <<< ERROR!
      org.apache.maven.plugin.MojoExecutionException: The server failed to start
      	at org.wildfly.plugin.server.StartMojo.execute(StartMojo.java:289)
      	at org.wildfly.plugin.server.ServerFunctionMojoTest.testStartStandalone(ServerFunctionMojoTest.java:74)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.apache.maven.plugin.testing.MojoRule$2.evaluate(MojoRule.java:308)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
      	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
      Caused by: java.lang.RuntimeException: The process has unexpectedly exited with code 1
      	at org.wildfly.plugin.core.ServerHelper.waitForStandalone(ServerHelper.java:309)
      	at org.wildfly.plugin.server.StartMojo.execute(StartMojo.java:280)
      	... 29 more
      
      [ERROR] testShutdownDomain(org.wildfly.plugin.server.ServerFunctionMojoTest)  Time elapsed: 0.927 s  <<< ERROR!
      org.apache.maven.plugin.MojoExecutionException: The server failed to start
      	at org.wildfly.plugin.server.StartMojo.execute(StartMojo.java:289)
      	at org.wildfly.plugin.server.ServerFunctionMojoTest.testShutdownDomain(ServerFunctionMojoTest.java:151)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.apache.maven.plugin.testing.MojoRule$2.evaluate(MojoRule.java:308)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
      	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
      Caused by: java.lang.RuntimeException: The process has unexpectedly exited with code 1
      	at org.wildfly.plugin.core.ServerHelper.waitForDomain(ServerHelper.java:165)
      	at org.wildfly.plugin.server.StartMojo.execute(StartMojo.java:278)
      	... 29 more
      
      [ERROR] testStartDomain(org.wildfly.plugin.server.ServerFunctionMojoTest)  Time elapsed: 0.744 s  <<< ERROR!
      org.apache.maven.plugin.MojoExecutionException: The server failed to start
      	at org.wildfly.plugin.server.StartMojo.execute(StartMojo.java:289)
      	at org.wildfly.plugin.server.ServerFunctionMojoTest.testStartDomain(ServerFunctionMojoTest.java:139)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.apache.maven.plugin.testing.MojoRule$2.evaluate(MojoRule.java:308)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
      	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
      Caused by: java.lang.RuntimeException: The process has unexpectedly exited with code 1
      	at org.wildfly.plugin.core.ServerHelper.waitForDomain(ServerHelper.java:165)
      	at org.wildfly.plugin.server.StartMojo.execute(StartMojo.java:278)
      	... 29 more
      
      [ERROR] testStartAndAddUserStandalone(org.wildfly.plugin.server.ServerFunctionMojoTest)  Time elapsed: 1.772 s  <<< ERROR!
      org.apache.maven.plugin.MojoExecutionException: The server failed to start
      	at org.wildfly.plugin.server.StartMojo.execute(StartMojo.java:289)
      	at org.wildfly.plugin.server.ServerFunctionMojoTest.testStartAndAddUserStandalone(ServerFunctionMojoTest.java:107)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.apache.maven.plugin.testing.MojoRule$2.evaluate(MojoRule.java:308)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
      	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
      Caused by: java.lang.RuntimeException: The process has unexpectedly exited with code 1
      	at org.wildfly.plugin.core.ServerHelper.waitForStandalone(ServerHelper.java:309)
      	at org.wildfly.plugin.server.StartMojo.execute(StartMojo.java:280)
      	... 29 more
      
      [INFO] 
      [INFO] Results:
      [INFO] 
      [ERROR] Errors: 
      [ERROR]   ServerFunctionMojoTest.testShutdownDomain:151 » MojoExecution The server faile...
      [ERROR]   ServerFunctionMojoTest.testShutdownStandalone:86 » MojoExecution The server fa...
      [ERROR]   ServerFunctionMojoTest.testStartAndAddUserStandalone:107 » MojoExecution The s...
      [ERROR]   ServerFunctionMojoTest.testStartDomain:139 » MojoExecution The server failed t...
      [ERROR]   ServerFunctionMojoTest.testStartStandalone:74 » MojoExecution The server faile...
      [INFO] 
      [ERROR] Tests run: 5, Failures: 0, Errors: 5, Skipped: 0
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 12.179 s
      [INFO] Finished at: 2019-02-09T16:34:17+01:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project wildfly-maven-plugin-tests-shared: There are test failures.
      [ERROR] 
      [ERROR] Please refer to /home/mrizzi/git/forked/wildfly-maven-plugin/tests/shared/target/surefire-reports for the individual test results.
      [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
      [ERROR] -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
      
      
      
      
      ##### AFTER FIX
      [mrizzi@localhost wildfly-maven-plugin]$ mvn -f tests/shared/pom.xml -Dtest=ServerFunctionMojoTest test 
      [INFO] Scanning for projects...
      [INFO] 
      [INFO] -------< org.wildfly.plugins:wildfly-maven-plugin-tests-shared >--------
      [INFO] Building wildfly-maven-plugin-tests-shared 2.0.1.Final-SNAPSHOT
      [INFO] --------------------------------[ jar ]---------------------------------
      [INFO] 
      [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-java-version) @ wildfly-maven-plugin-tests-shared ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven-version) @ wildfly-maven-plugin-tests-shared ---
      [INFO] 
      [INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ wildfly-maven-plugin-tests-shared ---
      [INFO] Executing: /bin/sh -c cd '/home/mrizzi/git/forked/wildfly-maven-plugin/tests/shared' && 'git' 'rev-parse' '--verify' 'HEAD'
      [INFO] Working directory: /home/mrizzi/git/forked/wildfly-maven-plugin/tests/shared
      [INFO] Storing buildNumber: 0dda0062d660813c469040f60999aac76660e1f4 at timestamp: 1549726558482
      [INFO] Storing buildScmBranch: master
      [INFO] 
      [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ wildfly-maven-plugin-tests-shared ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /home/mrizzi/git/forked/wildfly-maven-plugin/tests/shared/src/main/resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ wildfly-maven-plugin-tests-shared ---
      [INFO] Nothing to compile - all classes are up to date
      [INFO] 
      [INFO] --- maven-checkstyle-plugin:3.0.0:checkstyle (check-style) @ wildfly-maven-plugin-tests-shared ---
      [INFO] Starting audit...
      Audit done.
      [INFO] 
      [INFO] --- maven-dependency-plugin:3.1.1:unpack (unpack-wildfly) @ wildfly-maven-plugin-tests-shared ---
      [INFO] Configured Artifact: org.wildfly:wildfly-dist:14.0.1.Final:zip
      [INFO] Unpacking /home/mrizzi/.m2/repository/org/wildfly/wildfly-dist/14.0.1.Final/wildfly-dist-14.0.1.Final.zip to /home/mrizzi/git/forked/wildfly-maven-plugin/tests/shared/target with includes "" and excludes ""
      [INFO] 
      [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ wildfly-maven-plugin-tests-shared ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 10 resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ wildfly-maven-plugin-tests-shared ---
      [INFO] Nothing to compile - all classes are up to date
      [INFO] 
      [INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ wildfly-maven-plugin-tests-shared ---
      [INFO] 
      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [INFO] Running org.wildfly.plugin.server.ServerFunctionMojoTest
      [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 49.33 s - in org.wildfly.plugin.server.ServerFunctionMojoTest
      [INFO] 
      [INFO] Results:
      [INFO] 
      [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 57.381 s
      [INFO] Finished at: 2019-02-09T16:36:54+01:00
      [INFO] ------------------------------------------------------------------------
      

      I already fixed it locally so i'll open a PR so that you can evaluate if it's a good fix or how to improve it.
      Thanks,
      Marco

      Attachments

        Issue Links

          Activity

            People

              mrizzi@redhat.com Marco Rizzi
              mrizzi@redhat.com Marco Rizzi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: