查看: 2365|回复: 4

task never defined:default

升级   0.89%

3

主题

3

回帖

89

积分

注册会员

Rank: 2

积分
89
发表于 2021-4-2 14:04:28 | 显示全部楼层 |阅读模式
源码编译出现task never defined:default


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

使用道具 举报

升级   100%

139

主题

1万

回帖

4万

积分

超级版主

Rank: 8Rank: 8

积分
41458
发表于 2021-4-2 17:18:33 | 显示全部楼层
您好:编译参考
https://www.o2oa.net/course/ng5iqb.html
回复

使用道具 举报

升级   0.89%

3

主题

3

回帖

89

积分

注册会员

Rank: 2

积分
89
发表于 2021-4-2 21:27:21 | 显示全部楼层
视频里面的命令已经不能使用了吗,谢谢
回复

使用道具 举报

升级   0.89%

3

主题

3

回帖

89

积分

注册会员

Rank: 2

积分
89
发表于 2021-4-2 21:32:51 | 显示全部楼层
[INFO] Finished at: 2021-04-02T21:32:12+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] 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 -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   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
[21:32:12] 'build_server' errored after 8.32 s
[21:32:12] 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

现在是这个错误了
回复

使用道具 举报

升级   100%

139

主题

1万

回帖

4万

积分

超级版主

Rank: 8Rank: 8

积分
41458
发表于 2021-4-6 10:12:33 | 显示全部楼层
您好:请问您使用的jdk是什么版本!
以及您下载的源码是什么版本。
这一般是
问题原因:jdk环境和maven配置的jdk不一样
可将pom.xml文件中的jdk环境修改为maven配置
您可以搜索一下,Fatal error compiling: 无效的目标发行版的解决方案!
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系客服 关注微信 下载APP 返回顶部 返回列表
viewthread