You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by LB <co...@googlemail.com.INVALID> on 2022/02/21 10:52:38 UTC

Fuseki UI build fails

Hi all,

Fuseki UI module build fails when doing

> mvn clean install 

on latest main branch for me. Did the last PR change something? Do I 
need something specific?

> [INFO] --- maven-remote-resources-plugin:1.7.0:process 
> (process-resource-bundles) @ jena-fuseki-ui ---
> [INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4
> [INFO] Copying 3 resources from 1 bundle.
> [INFO]
> [INFO] --- frontend-maven-plugin:1.10.4:install-node-and-yarn (install 
> node and yarn) @ jena-fuseki-ui ---
> [INFO] Node v16.13.1 is already installed.
> [INFO] Yarn 1.22.17 is already installed.
> [INFO]
> [INFO] --- frontend-maven-plugin:1.10.4:yarn (yarn install) @ 
> jena-fuseki-ui ---
> [INFO] Running 'yarn install --frozen-lockfile' in 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui
> [INFO] yarn install v1.22.17
> [INFO] [1/4] Resolving packages...
> [INFO] [2/4] Fetching packages...
> [INFO] [3/4] Linking dependencies...
> [INFO] warning " > @triply/yasqe@4.2.20" has unmet peer dependency 
> "@triply/yasgui@4.x".
> [INFO] warning " > @triply/yasr@4.2.21" has unmet peer dependency 
> "@triply/yasgui@4.x".
> [INFO] warning " > bootstrap@5.1.3" has unmet peer dependency 
> "@popperjs/core@^2.10.2".
> [INFO] warning "bootstrap-vue > bootstrap@4.6.1" has unmet peer 
> dependency "jquery@1.9.1 - 3".
> [INFO] warning " > @babel/register@7.17.0" has unmet peer dependency 
> "@babel/core@^7.0.0-0".
> [INFO] warning "@vue/cli-service > 
> @babel/helper-compilation-targets@7.16.7" has unmet peer dependency 
> "@babel/core@^7.0.0".
> [INFO] warning " > @vue/cli-plugin-e2e-cypress@5.0.1" has unmet peer 
> dependency "cypress@*".
> [INFO] warning "@vue/cli-plugin-unit-mocha > mochapack@2.1.4" has 
> unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
> [INFO] warning "@vue/cli-service > css-minimizer-webpack-plugin > 
> schema-utils > ajv-keywords@5.1.0" has incorrect peer dependency 
> "ajv@^8.8.2".
> [INFO] warning " > @vue/eslint-config-standard@6.1.0" has incorrect 
> peer dependency "eslint-plugin-promise@^4.2.1 || ^5.0.0".
> [INFO] warning " > @vue/eslint-config-standard@6.1.0" has incorrect 
> peer dependency "eslint-plugin-vue@^7.0.0".
> [INFO] warning "@vue/eslint-config-standard > 
> eslint-config-standard@16.0.3" has incorrect peer dependency 
> "eslint-plugin-promise@^4.2.1 || ^5.0.0".
> [INFO] warning "@vue/eslint-config-standard > 
> eslint-import-resolver-webpack@0.13.2" has unmet peer dependency 
> "webpack@>=1.11.0".
> [INFO] warning " > istanbul-instrumenter-loader@3.0.1" has unmet peer 
> dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
> [INFO] warning " > sass-loader@10.2.1" has unmet peer dependency 
> "webpack@^4.36.0 || ^5.0.0".
> [INFO] [4/4] Building fresh packages...
> [INFO] Done in 6.56s.
> [INFO]
> [INFO] --- frontend-maven-plugin:1.10.4:yarn (yarn run build) @ 
> jena-fuseki-ui ---
> [INFO] Running 'yarn run build' in 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui
> [INFO] yarn run v1.22.17
> [INFO] $ vue-cli-service build
> [INFO]
> [INFO] -  Building legacy bundle for production...
> [INFO]  ERROR  Error: Cannot find module 'ajv/dist/compile/codegen'
> [INFO]         Require stack:
> [INFO]         - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js 
>
> [INFO]         - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js 
>
> [INFO]         - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/index.js 
>
> [INFO]         - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/index.js 
>
> [INFO]         - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/validate.js 
>
> [INFO]         - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/index.js 
>
> [INFO]         - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/dist/index.js 
>
> [INFO]         - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/lib/config/css.js 
>
> [INFO]         - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/lib/Service.js 
>
> [INFO]         - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/bin/vue-cli-service.js 
>
> [INFO] Error: Cannot find module 'ajv/dist/compile/codegen'
> [INFO] Require stack:
> [INFO] - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js 
>
> [INFO] - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js 
>
> [INFO] - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/index.js 
>
> [INFO] - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/index.js 
>
> [INFO] - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/validate.js 
>
> [INFO] - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/index.js 
>
> [INFO] - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/dist/index.js 
>
> [INFO] - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/lib/config/css.js 
>
> [INFO] - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/lib/Service.js 
>
> [INFO] - 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/bin/vue-cli-service.js 
>
> [INFO]     at Function.Module._resolveFilename 
> (node:internal/modules/cjs/loader:933:15)
> [INFO]     at Function.Module._load 
> (node:internal/modules/cjs/loader:778:27)
> [INFO]     at Module.require (node:internal/modules/cjs/loader:1005:19)
> [INFO]     at require (node:internal/modules/cjs/helpers:102:18)
> [INFO]     at Object.<anonymous> 
> (/home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js:3:19) 
>
> [INFO]     at Module._compile (node:internal/modules/cjs/loader:1101:14)
> [INFO]     at Object.Module._extensions..js 
> (node:internal/modules/cjs/loader:1153:10)
> [INFO]     at Module.load (node:internal/modules/cjs/loader:981:32)
> [INFO]     at Function.Module._load 
> (node:internal/modules/cjs/loader:822:12)
> [INFO]     at Module.require (node:internal/modules/cjs/loader:1005:19)
> [INFO]     at require (node:internal/modules/cjs/helpers:102:18)
> [INFO]     at Object.<anonymous> 
> (/home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js:6:34) 
>
> [INFO]     at Module._compile (node:internal/modules/cjs/loader:1101:14)
> [INFO]     at Object.Module._extensions..js 
> (node:internal/modules/cjs/loader:1153:10)
> [INFO]     at Module.load (node:internal/modules/cjs/loader:981:32)
> [INFO]     at Function.Module._load 
> (node:internal/modules/cjs/loader:822:12)
> [INFO] error Command failed with exit code 1.
> [INFO] error Command failed with exit code 1.info Visit 
> https://yarnpkg.com/en/docs/cli/run for documentation about this command.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  10.038 s
> [INFO] Finished at: 2022-02-21T11:37:29+01:00
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> com.github.eirslett:frontend-maven-plugin:1.10.4:yarn (yarn run build) 
> on project jena-fuseki-ui: Failed to run task: 'yarn run build' 
> failed. org.apache.commons.exec.ExecuteException: Process exited with 
> an error: 1 (Exit value: 1) -> [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
I also deleted node and node_modules folders, didn't help.

Looks like 3 versions of avj are missing? Do I have to install them 
manually?

> npm ls ajv
> apache-jena-fuseki@1.0.0 
> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui
> ├─┬ @vue/cli-plugin-babel@5.0.1
> │ └─┬ babel-loader@8.2.3
> │   └─┬ schema-utils@2.7.1
> │     └── ajv@6.12.6  deduped
> ├─┬ @vue/cli-service@5.0.1
> │ └─┬ css-minimizer-webpack-plugin@3.4.1
> │   └─┬ schema-utils@4.0.0
> │     └─┬ ajv-formats@2.1.1
> │       └── UNMET DEPENDENCY ajv@^8.0.0
> ├─┬ eslint@7.32.0
> │ ├─┬ @eslint/eslintrc@0.4.3
> │ │ └── ajv@6.12.6  deduped
> │ ├── ajv@6.12.6
> │ └─┬ table@6.8.0
> │   └── UNMET DEPENDENCY ajv@^8.0.1
> ├─┬ istanbul-instrumenter-loader@3.0.1
> │ └─┬ schema-utils@0.3.0
> │   └── UNMET DEPENDENCY ajv@^5.0.0
> └─┬ sass-loader@10.2.1
>   └─┬ schema-utils@3.1.1
>     └── ajv@6.12.6  deduped
>
> npm ERR! missing: ajv@^8.0.0, required by ajv-formats@2.1.1
> npm ERR! missing: ajv@^8.0.1, required by table@6.8.0
> npm ERR! missing: ajv@^5.0.0, required by schema-utils@0.3.0

Cheers,

Lorenz


Re: Fuseki UI build fails

Posted by Andy Seaborne <an...@apache.org>.
Fixed - although we need to figure out how to best deal with a moderate 
security alert from an upstream dependency.

     Andy

On 21/02/2022 13:41, Andy Seaborne wrote:
> looks like:
> 
> https://stackoverflow.com/questions/70020046/quasar-error-cannot-find-module-ajv-dist-compile-codegen 
> 
> 
> On 21/02/2022 10:52, LB wrote:
>> Hi all,
>>
>> Fuseki UI module build fails when doing
>>
>>> mvn clean install 
>>
>> on latest main branch for me. Did the last PR change something? Do I 
>> need something specific?
>>
>>> [INFO] --- maven-remote-resources-plugin:1.7.0:process 
>>> (process-resource-bundles) @ jena-fuseki-ui ---
>>> [INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4
>>> [INFO] Copying 3 resources from 1 bundle.
>>> [INFO]
>>> [INFO] --- frontend-maven-plugin:1.10.4:install-node-and-yarn 
>>> (install node and yarn) @ jena-fuseki-ui ---
>>> [INFO] Node v16.13.1 is already installed.
>>> [INFO] Yarn 1.22.17 is already installed.
>>> [INFO]
>>> [INFO] --- frontend-maven-plugin:1.10.4:yarn (yarn install) @ 
>>> jena-fuseki-ui ---
>>> [INFO] Running 'yarn install --frozen-lockfile' in 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui
>>> [INFO] yarn install v1.22.17
>>> [INFO] [1/4] Resolving packages...
>>> [INFO] [2/4] Fetching packages...
>>> [INFO] [3/4] Linking dependencies...
>>> [INFO] warning " > @triply/yasqe@4.2.20" has unmet peer dependency 
>>> "@triply/yasgui@4.x".
>>> [INFO] warning " > @triply/yasr@4.2.21" has unmet peer dependency 
>>> "@triply/yasgui@4.x".
>>> [INFO] warning " > bootstrap@5.1.3" has unmet peer dependency 
>>> "@popperjs/core@^2.10.2".
>>> [INFO] warning "bootstrap-vue > bootstrap@4.6.1" has unmet peer 
>>> dependency "jquery@1.9.1 - 3".
>>> [INFO] warning " > @babel/register@7.17.0" has unmet peer dependency 
>>> "@babel/core@^7.0.0-0".
>>> [INFO] warning "@vue/cli-service > 
>>> @babel/helper-compilation-targets@7.16.7" has unmet peer dependency 
>>> "@babel/core@^7.0.0".
>>> [INFO] warning " > @vue/cli-plugin-e2e-cypress@5.0.1" has unmet peer 
>>> dependency "cypress@*".
>>> [INFO] warning "@vue/cli-plugin-unit-mocha > mochapack@2.1.4" has 
>>> unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
>>> [INFO] warning "@vue/cli-service > css-minimizer-webpack-plugin > 
>>> schema-utils > ajv-keywords@5.1.0" has incorrect peer dependency 
>>> "ajv@^8.8.2".
>>> [INFO] warning " > @vue/eslint-config-standard@6.1.0" has incorrect 
>>> peer dependency "eslint-plugin-promise@^4.2.1 || ^5.0.0".
>>> [INFO] warning " > @vue/eslint-config-standard@6.1.0" has incorrect 
>>> peer dependency "eslint-plugin-vue@^7.0.0".
>>> [INFO] warning "@vue/eslint-config-standard > 
>>> eslint-config-standard@16.0.3" has incorrect peer dependency 
>>> "eslint-plugin-promise@^4.2.1 || ^5.0.0".
>>> [INFO] warning "@vue/eslint-config-standard > 
>>> eslint-import-resolver-webpack@0.13.2" has unmet peer dependency 
>>> "webpack@>=1.11.0".
>>> [INFO] warning " > istanbul-instrumenter-loader@3.0.1" has unmet peer 
>>> dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
>>> [INFO] warning " > sass-loader@10.2.1" has unmet peer dependency 
>>> "webpack@^4.36.0 || ^5.0.0".
>>> [INFO] [4/4] Building fresh packages...
>>> [INFO] Done in 6.56s.
>>> [INFO]
>>> [INFO] --- frontend-maven-plugin:1.10.4:yarn (yarn run build) @ 
>>> jena-fuseki-ui ---
>>> [INFO] Running 'yarn run build' in 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui
>>> [INFO] yarn run v1.22.17
>>> [INFO] $ vue-cli-service build
>>> [INFO]
>>> [INFO] -  Building legacy bundle for production...
>>> [INFO]  ERROR  Error: Cannot find module 'ajv/dist/compile/codegen'
>>> [INFO]         Require stack:
>>> [INFO]         - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js 
>>>
>>> [INFO]         - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js 
>>>
>>> [INFO]         - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/index.js 
>>>
>>> [INFO]         - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/index.js 
>>>
>>> [INFO]         - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/validate.js 
>>>
>>> [INFO]         - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/index.js 
>>>
>>> [INFO]         - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/dist/index.js 
>>>
>>> [INFO]         - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/lib/config/css.js 
>>>
>>> [INFO]         - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/lib/Service.js 
>>>
>>> [INFO]         - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/bin/vue-cli-service.js 
>>>
>>> [INFO] Error: Cannot find module 'ajv/dist/compile/codegen'
>>> [INFO] Require stack:
>>> [INFO] - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js 
>>>
>>> [INFO] - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js 
>>>
>>> [INFO] - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/index.js 
>>>
>>> [INFO] - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/index.js 
>>>
>>> [INFO] - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/validate.js 
>>>
>>> [INFO] - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/index.js 
>>>
>>> [INFO] - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/dist/index.js 
>>>
>>> [INFO] - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/lib/config/css.js 
>>>
>>> [INFO] - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/lib/Service.js 
>>>
>>> [INFO] - 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/bin/vue-cli-service.js 
>>>
>>> [INFO]     at Function.Module._resolveFilename 
>>> (node:internal/modules/cjs/loader:933:15)
>>> [INFO]     at Function.Module._load 
>>> (node:internal/modules/cjs/loader:778:27)
>>> [INFO]     at Module.require (node:internal/modules/cjs/loader:1005:19)
>>> [INFO]     at require (node:internal/modules/cjs/helpers:102:18)
>>> [INFO]     at Object.<anonymous> 
>>> (/home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js:3:19) 
>>>
>>> [INFO]     at Module._compile (node:internal/modules/cjs/loader:1101:14)
>>> [INFO]     at Object.Module._extensions..js 
>>> (node:internal/modules/cjs/loader:1153:10)
>>> [INFO]     at Module.load (node:internal/modules/cjs/loader:981:32)
>>> [INFO]     at Function.Module._load 
>>> (node:internal/modules/cjs/loader:822:12)
>>> [INFO]     at Module.require (node:internal/modules/cjs/loader:1005:19)
>>> [INFO]     at require (node:internal/modules/cjs/helpers:102:18)
>>> [INFO]     at Object.<anonymous> 
>>> (/home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js:6:34) 
>>>
>>> [INFO]     at Module._compile (node:internal/modules/cjs/loader:1101:14)
>>> [INFO]     at Object.Module._extensions..js 
>>> (node:internal/modules/cjs/loader:1153:10)
>>> [INFO]     at Module.load (node:internal/modules/cjs/loader:981:32)
>>> [INFO]     at Function.Module._load 
>>> (node:internal/modules/cjs/loader:822:12)
>>> [INFO] error Command failed with exit code 1.
>>> [INFO] error Command failed with exit code 1.info Visit 
>>> https://yarnpkg.com/en/docs/cli/run for documentation about this 
>>> command.
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> [INFO] BUILD FAILURE
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> [INFO] Total time:  10.038 s
>>> [INFO] Finished at: 2022-02-21T11:37:29+01:00
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> [ERROR] Failed to execute goal 
>>> com.github.eirslett:frontend-maven-plugin:1.10.4:yarn (yarn run 
>>> build) on project jena-fuseki-ui: Failed to run task: 'yarn run 
>>> build' failed. org.apache.commons.exec.ExecuteException: Process 
>>> exited with an error: 1 (Exit value: 1) -> [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
>> I also deleted node and node_modules folders, didn't help.
>>
>> Looks like 3 versions of avj are missing? Do I have to install them 
>> manually?
>>
>>> npm ls ajv
>>> apache-jena-fuseki@1.0.0 
>>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui
>>> ├─┬ @vue/cli-plugin-babel@5.0.1
>>> │ └─┬ babel-loader@8.2.3
>>> │   └─┬ schema-utils@2.7.1
>>> │     └── ajv@6.12.6  deduped
>>> ├─┬ @vue/cli-service@5.0.1
>>> │ └─┬ css-minimizer-webpack-plugin@3.4.1
>>> │   └─┬ schema-utils@4.0.0
>>> │     └─┬ ajv-formats@2.1.1
>>> │       └── UNMET DEPENDENCY ajv@^8.0.0
>>> ├─┬ eslint@7.32.0
>>> │ ├─┬ @eslint/eslintrc@0.4.3
>>> │ │ └── ajv@6.12.6  deduped
>>> │ ├── ajv@6.12.6
>>> │ └─┬ table@6.8.0
>>> │   └── UNMET DEPENDENCY ajv@^8.0.1
>>> ├─┬ istanbul-instrumenter-loader@3.0.1
>>> │ └─┬ schema-utils@0.3.0
>>> │   └── UNMET DEPENDENCY ajv@^5.0.0
>>> └─┬ sass-loader@10.2.1
>>>   └─┬ schema-utils@3.1.1
>>>     └── ajv@6.12.6  deduped
>>>
>>> npm ERR! missing: ajv@^8.0.0, required by ajv-formats@2.1.1
>>> npm ERR! missing: ajv@^8.0.1, required by table@6.8.0
>>> npm ERR! missing: ajv@^5.0.0, required by schema-utils@0.3.0
>>
>> Cheers,
>>
>> Lorenz
>>

Re: Fuseki UI build fails

Posted by Andy Seaborne <an...@apache.org>.
looks like:

https://stackoverflow.com/questions/70020046/quasar-error-cannot-find-module-ajv-dist-compile-codegen

On 21/02/2022 10:52, LB wrote:
> Hi all,
> 
> Fuseki UI module build fails when doing
> 
>> mvn clean install 
> 
> on latest main branch for me. Did the last PR change something? Do I 
> need something specific?
> 
>> [INFO] --- maven-remote-resources-plugin:1.7.0:process 
>> (process-resource-bundles) @ jena-fuseki-ui ---
>> [INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4
>> [INFO] Copying 3 resources from 1 bundle.
>> [INFO]
>> [INFO] --- frontend-maven-plugin:1.10.4:install-node-and-yarn (install 
>> node and yarn) @ jena-fuseki-ui ---
>> [INFO] Node v16.13.1 is already installed.
>> [INFO] Yarn 1.22.17 is already installed.
>> [INFO]
>> [INFO] --- frontend-maven-plugin:1.10.4:yarn (yarn install) @ 
>> jena-fuseki-ui ---
>> [INFO] Running 'yarn install --frozen-lockfile' in 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui
>> [INFO] yarn install v1.22.17
>> [INFO] [1/4] Resolving packages...
>> [INFO] [2/4] Fetching packages...
>> [INFO] [3/4] Linking dependencies...
>> [INFO] warning " > @triply/yasqe@4.2.20" has unmet peer dependency 
>> "@triply/yasgui@4.x".
>> [INFO] warning " > @triply/yasr@4.2.21" has unmet peer dependency 
>> "@triply/yasgui@4.x".
>> [INFO] warning " > bootstrap@5.1.3" has unmet peer dependency 
>> "@popperjs/core@^2.10.2".
>> [INFO] warning "bootstrap-vue > bootstrap@4.6.1" has unmet peer 
>> dependency "jquery@1.9.1 - 3".
>> [INFO] warning " > @babel/register@7.17.0" has unmet peer dependency 
>> "@babel/core@^7.0.0-0".
>> [INFO] warning "@vue/cli-service > 
>> @babel/helper-compilation-targets@7.16.7" has unmet peer dependency 
>> "@babel/core@^7.0.0".
>> [INFO] warning " > @vue/cli-plugin-e2e-cypress@5.0.1" has unmet peer 
>> dependency "cypress@*".
>> [INFO] warning "@vue/cli-plugin-unit-mocha > mochapack@2.1.4" has 
>> unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
>> [INFO] warning "@vue/cli-service > css-minimizer-webpack-plugin > 
>> schema-utils > ajv-keywords@5.1.0" has incorrect peer dependency 
>> "ajv@^8.8.2".
>> [INFO] warning " > @vue/eslint-config-standard@6.1.0" has incorrect 
>> peer dependency "eslint-plugin-promise@^4.2.1 || ^5.0.0".
>> [INFO] warning " > @vue/eslint-config-standard@6.1.0" has incorrect 
>> peer dependency "eslint-plugin-vue@^7.0.0".
>> [INFO] warning "@vue/eslint-config-standard > 
>> eslint-config-standard@16.0.3" has incorrect peer dependency 
>> "eslint-plugin-promise@^4.2.1 || ^5.0.0".
>> [INFO] warning "@vue/eslint-config-standard > 
>> eslint-import-resolver-webpack@0.13.2" has unmet peer dependency 
>> "webpack@>=1.11.0".
>> [INFO] warning " > istanbul-instrumenter-loader@3.0.1" has unmet peer 
>> dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
>> [INFO] warning " > sass-loader@10.2.1" has unmet peer dependency 
>> "webpack@^4.36.0 || ^5.0.0".
>> [INFO] [4/4] Building fresh packages...
>> [INFO] Done in 6.56s.
>> [INFO]
>> [INFO] --- frontend-maven-plugin:1.10.4:yarn (yarn run build) @ 
>> jena-fuseki-ui ---
>> [INFO] Running 'yarn run build' in 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui
>> [INFO] yarn run v1.22.17
>> [INFO] $ vue-cli-service build
>> [INFO]
>> [INFO] -  Building legacy bundle for production...
>> [INFO]  ERROR  Error: Cannot find module 'ajv/dist/compile/codegen'
>> [INFO]         Require stack:
>> [INFO]         - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js 
>>
>> [INFO]         - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js 
>>
>> [INFO]         - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/index.js 
>>
>> [INFO]         - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/index.js 
>>
>> [INFO]         - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/validate.js 
>>
>> [INFO]         - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/index.js 
>>
>> [INFO]         - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/dist/index.js 
>>
>> [INFO]         - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/lib/config/css.js 
>>
>> [INFO]         - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/lib/Service.js 
>>
>> [INFO]         - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/bin/vue-cli-service.js 
>>
>> [INFO] Error: Cannot find module 'ajv/dist/compile/codegen'
>> [INFO] Require stack:
>> [INFO] - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js 
>>
>> [INFO] - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js 
>>
>> [INFO] - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/index.js 
>>
>> [INFO] - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/index.js 
>>
>> [INFO] - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/validate.js 
>>
>> [INFO] - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/index.js 
>>
>> [INFO] - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/dist/index.js 
>>
>> [INFO] - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/lib/config/css.js 
>>
>> [INFO] - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/lib/Service.js 
>>
>> [INFO] - 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/@vue/cli-service/bin/vue-cli-service.js 
>>
>> [INFO]     at Function.Module._resolveFilename 
>> (node:internal/modules/cjs/loader:933:15)
>> [INFO]     at Function.Module._load 
>> (node:internal/modules/cjs/loader:778:27)
>> [INFO]     at Module.require (node:internal/modules/cjs/loader:1005:19)
>> [INFO]     at require (node:internal/modules/cjs/helpers:102:18)
>> [INFO]     at Object.<anonymous> 
>> (/home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/definitions/typeof.js:3:19) 
>>
>> [INFO]     at Module._compile (node:internal/modules/cjs/loader:1101:14)
>> [INFO]     at Object.Module._extensions..js 
>> (node:internal/modules/cjs/loader:1153:10)
>> [INFO]     at Module.load (node:internal/modules/cjs/loader:981:32)
>> [INFO]     at Function.Module._load 
>> (node:internal/modules/cjs/loader:822:12)
>> [INFO]     at Module.require (node:internal/modules/cjs/loader:1005:19)
>> [INFO]     at require (node:internal/modules/cjs/helpers:102:18)
>> [INFO]     at Object.<anonymous> 
>> (/home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui/node_modules/mini-css-extract-plugin/node_modules/ajv-keywords/dist/keywords/typeof.js:6:34) 
>>
>> [INFO]     at Module._compile (node:internal/modules/cjs/loader:1101:14)
>> [INFO]     at Object.Module._extensions..js 
>> (node:internal/modules/cjs/loader:1153:10)
>> [INFO]     at Module.load (node:internal/modules/cjs/loader:981:32)
>> [INFO]     at Function.Module._load 
>> (node:internal/modules/cjs/loader:822:12)
>> [INFO] error Command failed with exit code 1.
>> [INFO] error Command failed with exit code 1.info Visit 
>> https://yarnpkg.com/en/docs/cli/run for documentation about this command.
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] Total time:  10.038 s
>> [INFO] Finished at: 2022-02-21T11:37:29+01:00
>> [INFO] 
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal 
>> com.github.eirslett:frontend-maven-plugin:1.10.4:yarn (yarn run build) 
>> on project jena-fuseki-ui: Failed to run task: 'yarn run build' 
>> failed. org.apache.commons.exec.ExecuteException: Process exited with 
>> an error: 1 (Exit value: 1) -> [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
> I also deleted node and node_modules folders, didn't help.
> 
> Looks like 3 versions of avj are missing? Do I have to install them 
> manually?
> 
>> npm ls ajv
>> apache-jena-fuseki@1.0.0 
>> /home/user/work/code/java/jena/jena-fuseki2/jena-fuseki-ui
>> ├─┬ @vue/cli-plugin-babel@5.0.1
>> │ └─┬ babel-loader@8.2.3
>> │   └─┬ schema-utils@2.7.1
>> │     └── ajv@6.12.6  deduped
>> ├─┬ @vue/cli-service@5.0.1
>> │ └─┬ css-minimizer-webpack-plugin@3.4.1
>> │   └─┬ schema-utils@4.0.0
>> │     └─┬ ajv-formats@2.1.1
>> │       └── UNMET DEPENDENCY ajv@^8.0.0
>> ├─┬ eslint@7.32.0
>> │ ├─┬ @eslint/eslintrc@0.4.3
>> │ │ └── ajv@6.12.6  deduped
>> │ ├── ajv@6.12.6
>> │ └─┬ table@6.8.0
>> │   └── UNMET DEPENDENCY ajv@^8.0.1
>> ├─┬ istanbul-instrumenter-loader@3.0.1
>> │ └─┬ schema-utils@0.3.0
>> │   └── UNMET DEPENDENCY ajv@^5.0.0
>> └─┬ sass-loader@10.2.1
>>   └─┬ schema-utils@3.1.1
>>     └── ajv@6.12.6  deduped
>>
>> npm ERR! missing: ajv@^8.0.0, required by ajv-formats@2.1.1
>> npm ERR! missing: ajv@^8.0.1, required by table@6.8.0
>> npm ERR! missing: ajv@^5.0.0, required by schema-utils@0.3.0
> 
> Cheers,
> 
> Lorenz
>