wlm2421331 发表于 2021-4-2 14:04:28

task never defined:default

源码编译出现task never defined:default


D:\o2oa\O2OA>gulp
Using gulpfile D:\o2oa\O2OA\gulpfile.js
Task never defined: default
To list available tasks, try running: gulp --tasks
D:\o2oa\O2OA>gulp --tasks
Tasks for D:\o2oa\O2OA\gulpfile.js
├── build_web_move
├─┬ build_concat
│ └─┬ <parallel>
│   ├── build_concat_o2
│   ├── build_concat_base
│   ├── build_concat_desktop
│   ├── build_concat_xform
│   ├── build_concat_cms_xform
│   ├── build_bundle
│   ├─┬ <series>
│   │ ├── build_concat_basework_style
│   │ ├── build_concat_basework_action
│   │ ├── build_concat_basework_body
│   │ └── build_concat_basework_clean
│   ├─┬ <series>
│   │ ├── build_concat_baseportal_style
│   │ ├── build_concat_baseportal_action
│   │ ├── build_concat_baseportal_body
│   │ └── build_concat_baseportal_clean
│   └─┬ <series>
│   ├── build_concat_basedocument_style
│   ├── build_concat_basedocument_action
│   ├── build_concat_basedocument_body
│   └── build_concat_basedocument_clean
├─┬ build_api
│ └─┬ <series>
│   ├── build_doc
│   └── build_web_api
├── clear_build
├── clear_deploy
├─┬ preperation
│ └─┬ <series>
│   ├── download_commons_and_jvm
│   ├── decompress_commons_and_jvm
│   ├── move_commons
│   ├── move_jvm
│   ├── clear_commons_git
│   └── clear_jvm_git
├── build_server
├─┬ build_web
│ └─┬ <series>
│   ├── build_web_minimize
│   ├── build_web_move
│   ├─┬ <parallel>
│   │ ├── build_concat_o2
│   │ ├── build_concat_base
│   │ ├── build_concat_desktop
│   │ ├── build_concat_xform
│   │ ├── build_concat_cms_xform
│   │ ├─┬ <series>
│   │ │ ├── build_concat_basework_style
│   │ │ ├── build_concat_basework_action
│   │ │ ├── build_concat_basework_body
│   │ │ └── build_concat_basework_clean
│   │ ├─┬ <series>
│   │ │ ├── build_concat_baseportal_style
│   │ │ ├── build_concat_baseportal_action
│   │ │ ├── build_concat_baseportal_body
│   │ │ └── build_concat_baseportal_clean
│   │ ├─┬ <series>
│   │ │ ├── build_concat_basedocument_style
│   │ │ ├── build_concat_basedocument_action
│   │ │ ├── build_concat_basedocument_body
│   │ │ └── build_concat_basedocument_clean
│   │ └── build_bundle
│   ├── build_web_v_html
│   ├── build_web_v_o2
│   └─┬ <series>
│   ├── build_doc
│   └── build_web_api
└─┬ deploy
   └─┬ <series>
   └── deploy_server
D:\o2oa\O2OA>

论坛管理员 发表于 2021-4-2 17:18:33

您好:编译参考
https://www.o2oa.net/course/ng5iqb.html

wlm2421331 发表于 2021-4-2 21:27:21

视频里面的命令已经不能使用了吗,谢谢

wlm2421331 发表于 2021-4-2 21:32:51

Finished at: 2021-04-02T21:32:12+08:00
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default) on project x_base_core_project: Fatal error compiling: 无效的目标发行版: 11 ->

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

After correcting the problems, you can resume the build with the command
   mvn <args> -rf :x_base_core_project
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! o2oa@4.0.3763 build_server_script: `cd o2server && mvn clean && mvn install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the o2oa@4.0.3763 build_server_script script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!   C:\Users\admin\AppData\Roaming\npm-cache\_logs\2021-04-02T13_32_12_183Z-debug.log
'build_server' errored after 8.32 s
Error in plugin "gulp-shell"
Message:
    Command `npm run build_server_script` failed with exit code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! o2oa@4.0.3763 build_server: `gulp build_server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the o2oa@4.0.3763 build_server script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!   C:\Users\admin\AppData\Roaming\npm-cache\_logs\2021-04-02T13_32_12_216Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! o2oa@4.0.3763 build_parallel: `npm run build_server && npm run build_web`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the o2oa@4.0.3763 build_parallel script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!   C:\Users\admin\AppData\Roaming\npm-cache\_logs\2021-04-02T13_32_12_238Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! o2oa@4.0.3763 build:win: `npm run clear && npm run build_parallel && npm run deploy:win `
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the o2oa@4.0.3763 build:win script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!   C:\Users\admin\AppData\Roaming\npm-cache\_logs\2021-04-02T13_32_12_271Z-debug.log

现在是这个错误了

论坛管理员 发表于 2021-4-6 10:12:33

您好:请问您使用的jdk是什么版本!
以及您下载的源码是什么版本。
这一般是
问题原因:jdk环境和maven配置的jdk不一样
可将pom.xml文件中的jdk环境修改为maven配置
您可以搜索一下,Fatal error compiling: 无效的目标发行版的解决方案!
页: [1]
查看完整版本: task never defined:default