JDK8: BUILD FAILURE

This issue has been tracked since 2021-06-07.

Failed to execute goal on project x_program_center: Could not resolve dependencies for project o2oa:x_program_center:war:6.1.java8: Failed to collect dependencies at nl.captcha:simplecaptcha:jar:1.2.1: Failed to read artifact descriptor for nl.captcha:simplecaptcha:jar:1.2.1: Could not transfer artifact nl.captcha:simplecaptcha:pom:1.2.1 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [nexus-o2oa (http://maven.o2oa.net/repository/maven-public/, default, releases+snapshots)]

tangxl0909 wrote this answer on 2021-07-30

Which branch have you selected

tangxl0909 wrote this answer on 2021-08-03

The source code has been modified. You can download the latest source code。
The latest source code has no dependencies

onlyGuo wrote this answer on 2021-08-20

The source code has been modified. You can download the latest source code。
The latest source code has no dependencies

Thank you!

gnu4cn wrote this answer on 2021-11-16

My attempt to build from source got this error. Pls help me.

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/peng/O2OA/o2server/x_base_core_project/src/main/java/com/x/base/core/project/gson/ScriptObjectMirrorSerializer.java:[13,33] package jdk.nashorn.api.scripting does not exist
[ERROR] /home/peng/O2OA/o2server/x_base_core_project/src/main/java/com/x/base/core/project/gson/ScriptObjectMirrorSerializer.java:[15,69] cannot find symbol
  symbol: class ScriptObjectMirror
[ERROR] /home/peng/O2OA/o2server/x_base_core_project/src/main/java/com/x/base/core/project/gson/ScriptObjectMirrorSerializer.java:[16,38] cannot find symbol
  symbol:   class ScriptObjectMirror
  location: class com.x.base.core.project.gson.ScriptObjectMirrorSerializer
[ERROR] /home/peng/O2OA/o2server/x_base_core_project/src/main/java/com/x/base/core/project/script/ScriptFactory.java:[23,33] package jdk.nashorn.api.scripting does not exist
[ERROR] /home/peng/O2OA/o2server/x_base_core_project/src/main/java/com/x/base/core/project/script/ScriptFactory.java:[24,36] package jdk.nashorn.internal.runtime does not exist
[ERROR] /home/peng/O2OA/o2server/x_base_core_project/src/main/java/com/x/base/core/project/gson/XGsonBuilder.java:[19,33] package jdk.nashorn.api.scripting does not exist
[INFO] 6 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for o2server 6.4:
[INFO]
[INFO] o2server ........................................... SUCCESS [  0.119 s]
[INFO] x_base_core_project ................................ FAILURE [  3.799 s]
[INFO] x_query_core_entity ................................ SKIPPED
[INFO] x_attendance_core_entity ........................... SKIPPED
[INFO] x_bbs_core_entity .................................. SKIPPED
[INFO] x_calendar_core_entity ............................. SKIPPED
[INFO] x_cms_core_entity .................................. SKIPPED
[INFO] x_component_core_entity ............................ SKIPPED
[INFO] x_file_core_entity ................................. SKIPPED
[INFO] x_general_core_entity .............................. SKIPPED
[INFO] x_hotpic_core_entity ............................... SKIPPED
[INFO] x_jpush_core_entity ................................ SKIPPED
[INFO] x_meeting_core_entity .............................. SKIPPED
[INFO] x_message_core_entity .............................. SKIPPED
[INFO] x_mind_core_entity ................................. SKIPPED
[INFO] x_organization_core_entity ......................... SKIPPED
[INFO] x_portal_core_entity ............................... SKIPPED
[INFO] x_processplatform_core_entity ...................... SKIPPED
[INFO] x_program_center_core_entity ....................... SKIPPED
[INFO] x_organization_core_express ........................ SKIPPED
[INFO] x_query_core_express ............................... SKIPPED
[INFO] x_processplatform_core_express ..................... SKIPPED
[INFO] x_bbs_assemble_control ............................. SKIPPED
[INFO] x_calendar_assemble_control ........................ SKIPPED
[INFO] x_cms_core_express ................................. SKIPPED
[INFO] x_cms_assemble_control ............................. SKIPPED
[INFO] x_attendance_assemble_control ...................... SKIPPED
[INFO] x_component_assemble_control ....................... SKIPPED
[INFO] x_file_assemble_control ............................ SKIPPED
[INFO] x_general_assemble_control ......................... SKIPPED
[INFO] x_hotpic_assemble_control .......................... SKIPPED
[INFO] x_jpush_assemble_control ........................... SKIPPED
[INFO] x_meeting_assemble_control ......................... SKIPPED
[INFO] x_message_assemble_communicate ..................... SKIPPED
[INFO] x_mind_assemble_control ............................ SKIPPED
[INFO] x_organization_assemble_authentication ............. SKIPPED
[INFO] x_organization_assemble_control .................... SKIPPED
[INFO] x_organization_assemble_express .................... SKIPPED
[INFO] x_organization_assemble_personal ................... SKIPPED
[INFO] x_portal_assemble_designer ......................... SKIPPED
[INFO] x_portal_assemble_surface .......................... SKIPPED
[INFO] x_processplatform_assemble_bam ..................... SKIPPED
[INFO] x_processplatform_assemble_designer ................ SKIPPED
[INFO] x_processplatform_assemble_surface ................. SKIPPED
[INFO] x_processplatform_service_processing ............... SKIPPED
[INFO] x_query_assemble_designer .......................... SKIPPED
[INFO] x_query_assemble_surface ........................... SKIPPED
[INFO] x_query_service_processing ......................... SKIPPED
[INFO] x_program_center ................................... SKIPPED
[INFO] x_console .......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.257 s
[INFO] Finished at: 2021-11-16T02:55:22Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default) on project x_base_core_project: Compilation failure: Compilation failure:
[ERROR] /home/peng/O2OA/o2server/x_base_core_project/src/main/java/com/x/base/core/project/gson/ScriptObjectMirrorSerializer.java:[13,33] package jdk.nashorn.api.scripting does not exist
[ERROR] /home/peng/O2OA/o2server/x_base_core_project/src/main/java/com/x/base/core/project/gson/ScriptObjectMirrorSerializer.java:[15,69] cannot find symbol
[ERROR]   symbol: class ScriptObjectMirror
[ERROR] /home/peng/O2OA/o2server/x_base_core_project/src/main/java/com/x/base/core/project/gson/ScriptObjectMirrorSerializer.java:[16,38] cannot find symbol
[ERROR]   symbol:   class ScriptObjectMirror
[ERROR]   location: class com.x.base.core.project.gson.ScriptObjectMirrorSerializer
[ERROR] /home/peng/O2OA/o2server/x_base_core_project/src/main/java/com/x/base/core/project/script/ScriptFactory.java:[23,33] package jdk.nashorn.api.scripting does not exist
[ERROR] /home/peng/O2OA/o2server/x_base_core_project/src/main/java/com/x/base/core/project/script/ScriptFactory.java:[24,36] package jdk.nashorn.internal.runtime does not exist
[ERROR] /home/peng/O2OA/o2server/x_base_core_project/src/main/java/com/x/base/core/project/gson/XGsonBuilder.java:[19,33] package jdk.nashorn.api.scripting does not exist
[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 <args> -rf :x_base_core_project
[02:55:22] 'build_server' errored after 6.62 s
[02:55:22] Error in plugin "gulp-shell"
Message:
    Command `npm run build_server_script` failed with exit code 1
zhouruicn wrote this answer on 2021-12-30

Use jdk and don't use jre. If you are using eclipse, jre may be used by default, which can be replaced by window->Java->Installed JRE.

More Details About Repo
Owner Name o2oa
Repo Name o2oa
Full Name o2oa/o2oa
Language JavaScript
Created Date 2017-02-14
Updated Date 2022-06-23
Star Count 3171
Watcher Count 120
Fork Count 1032
Issue Count 30

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date