1
0
-1

I followed this guide.

Joget Workflow Open Source

 

but, I got an error while building.

 

 

error log.

 

[INFO] Compiling 40 source files to /joget/install-libraries/jw-community/wflow-commons/target/classes [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] wflow-jdbc ......................................... SUCCESS [ 2.732 s] [INFO] wflow-commons ...................................... FAILURE [ 0.886 s] [INFO] wflow-plugin-base .................................. SKIPPED [INFO] wflow-plugin-archetype ............................. SKIPPED [INFO] wflow-directory .................................... SKIPPED [INFO] wflow-wfengine ..................................... SKIPPED [INFO] wflow-core ......................................... SKIPPED [INFO] wflow-consoleweb ................................... SKIPPED [INFO] wflow-designer ..................................... SKIPPED [INFO] wflow-designerweb .................................. SKIPPED [INFO] wflow-app .......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.618 s [INFO] Finished at: 2019-01-07T22:52:23-08:00 [INFO] Final Memory: 12M/30M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project wflow-commons: Compilation failure: Compilation failure: [ERROR] error: Source option 5 is no longer supported. Use 6 or later. [ERROR] error: Target option 1.5 is no longer supported. Use 1.6 or later. [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project wflow-commons: Compilation failure at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213) 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:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:564) 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) Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure at org.apache.maven.plugin.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:516) at org.apache.maven.plugin.CompilerMojo.execute (CompilerMojo.java:114) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134) 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:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:564) 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) [ERROR] [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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :wflow-commons parallels@parallels-Parallels-Virtual-Platform:/joget/install-libraries/jw-community/wflow-app$

 

 

how can I fix the problem?

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Ensure that your datasource has been set up correctly, running, and with the appropriate read-write permissions according to the configuration set in your wflow folder. And perhaps try to reinstall the install-libraries.zip again.

      1. leka2002

        thanks. I'll try. :)

      2. leka2002

        I set the 'skipTest' and I succeeded in building it. Is there a problem when skipping tests? If everything works properly, how can I do the final test?

      3. Chris Angel

        Skipping the test may have unpredictable behavior. Unfortunately I never tried skipping the tests.

      4. leka2002

        OK. If so, how can I run 'workflow' when the build succeeds? I want to make sure that I did it right.

      CommentAdd your comment...
    2.  
      1
      0
      -1

      May I know what version of Java JDK are you using?

      1. leka2002

        parallels@parallels-Parallels-Virtual-Platform:~$ javac -version javac 10.0.2 parallels@parallels-Parallels-Virtual-Platform:/joget/install-libraries/jw-community/wflow-app$ java -version openjdk version "10.0.2" 2018-07-17 OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4) OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

      2. Chris Angel

        Try building the source using Java 8 JDK instead

      3. leka2002

        it works! thanks Chris. but I got an error in the next step. Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 5.614 sec <<< FAILURE! Results : Tests in error: testUsersAndGroups(org.joget.directory.model.service.TestDirectoryManager) testOrganizationChart(org.joget.directory.model.service.TestDirectoryManager) testDeletion(org.joget.directory.model.service.TestDirectoryManager) Tests run: 3, Failures: 0, Errors: 3, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] wflow-jdbc ......................................... SUCCESS [ 2.077 s] [INFO] wflow-commons ...................................... SUCCESS [ 3.558 s] [INFO] wflow-plugin-base .................................. SUCCESS [ 5.132 s] [INFO] wflow-plugin-archetype ............................. SUCCESS [ 1.019 s] [INFO] wflow-directory .................................... FAILURE [ 9.704 s] [INFO] wflow-wfengine ..................................... SKIPPED [INFO] wflow-core ......................................... SKIPPED [INFO] wflow-consoleweb ................................... SKIPPED [INFO] wflow-designer ..................................... SKIPPED [INFO] wflow-designerweb .................................. SKIPPED [INFO] wflow-app .......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 22.071 s [INFO] Finished at: 2019-01-08T21:31:04-08:00 [INFO] Final Memory: 66M/157M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) on project wflow-directory: There are test failures. [ERROR] [ERROR] Please refer to /joget/install-libraries/jw-community/wflow-directory/target/surefire-reports for the individual test results. [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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :wflow-directory where should I check?

      CommentAdd your comment...