【发布时间】:2020-12-26 03:15:36
【问题描述】:
知道如何修复/删除此警告吗?
我只是在做一个
sencha app build 或
npm run clean && cross-env webpack --env.profile=modern --env.environment=production --env.treeshake=yes
操作系统是 Ubuntu 18 LTS。
i [ext]: ext-webpack-plugin v7.2.0, Ext JS v7.2.0 Commercial Edition, Sencha Cmd v7.2.0.84, webpack v4.44.1n/a
i [ext]: Starting production build for extjs
i [ext]: Processing Build Descriptor : modern (production environment)
i [ext]: [ERR] WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.gson.internal.bind.ReflectiveTypeAdapterFactory (file:/builds/interpid/extjs-package-ipdu/node_modules/@sencha/cmd/dist/lib/closure-compiler-v20180610.jar) to field java.io.File.path WARNING: Please consider reporting this to the maintainers of com.google.gson.internal.bind.ReflectiveTypeAdapterFactory WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release
i [ext]: [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: [ERR]
i [ext]: Loading compiler context
i [ext]: Loading app json manifest...
i [ext]: [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: Processing data with ClosureCompressor
i [ext]: Writing concatenated output to file /build/production/myApp/generatedFiles/modern/app.js
i [ext]: [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: Writing content to /build/temp/production/myApp/modern/slicer-temp/bootstrap.json
i [ext]: Writing content to /build/temp/production/myApp/modern/slicer-temp/bootstrap.js
i [ext]: [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: Writing content to /build/production/myApp/generatedFiles/modern.json
i [ext]: Fashion build complete for /build/temp/production/myApp/modern/sass/myApp-all.scss
i [ext]: Fashion build completed in 5.557 sec.
i [ext]: [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: Writing content to /build/production/myApp/generatedFiles/modern.json
i [ext]: Writing content to /build/production/myApp/microloader.js
i [ext]: Appending content to /build/production/myApp/microloader.js
i [ext]: Writing content to /build/production/myApp/index.html
i [ext]: [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: Ending production build for extjs
【问题讨论】:
-
我也一直在想这个问题...我实际上希望 Sencha 将 Cmd 重写为不需要 Java,但目前,我想我们必须处理那个错误输出。