|
|
|
|
Re: Cannot build project [message #1830862 is a reply to message #1830692] |
Wed, 05 August 2020 11:55 |
|
Hello
@MrRobot: could you check if the module "@eclipse-scout/releng" exists in your node_modules directory here?
C:\test\workspace\testproject\testproject\target\node\node_modules
Please also check if that module is defined as devDependency in the package.json of the "testproject.ui.html" module.
Maybe you could also attach your package.json to your reply.
Please also provide the output from these two commands:
node --version
java -version
When I run "mvn clean verify" my output for that goal that fails in your case looks like this. How does your output look like? (before the failure occurs):
[INFO] --- exec-maven-plugin:1.6.0:exec (scout-releng-snapshot-install-dependency) @ testproject.ui.html ---
unable to find workspace file. Use parent directory as workspace root: C:\Temp\eclipse-scout-2020-06-R-win32-x86_64\workspaces\testproject\
start searching for package.json files at C:\Temp\eclipse-scout-2020-06-R-win32-x86_64\workspaces\testproject\
updating version/dependency for module: @testproject/ui
setPreInstallSnapshotDependencies version done
Cheers,
André
Eclipse Scout Homepage | Documentation | GitHub
[Updated on: Wed, 05 August 2020 12:48] Report message to a moderator
|
|
|
Re: Cannot build project [message #1830890 is a reply to message #1830862] |
Thu, 06 August 2020 04:16 |
Senaka Suriyaarachchi Messages: 14 Registered: July 2020 |
Junior Member |
|
|
Hi Andre,
I also experienced same issue.
I couldn't fine the module "@eclipse-scout/releng" in my node_modules directory in the following location.
E:\senaka\eclipseworkspace\helloworld\helloworld\target\node\node_modules
In this directory has npm sub directory only.
I have checked the package.json file and" @eclipse-scout/releng" devDependency is there.
devDependencies": {
"@eclipse-scout/cli": "10.0.21",
"@eclipse-scout/testing": "10.0.21",
"@eclipse-scout/releng": "^10.0.0",
"@eclipse-scout/eslint-config": "10.0.21",
"eslint": "6.5.1",
"babel-eslint": "10.0.3",
"eslint-plugin-babel": "5.3.0"
},
I have attached package.json file for your reference.
Please check following for my node and java versions.
node --version
v12.16.1
npm --version
6.13.4
pnpm --version
4.13.0
java -version
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
Regards
Senaka
-
Attachment: package.json
(Size: 1.36KB, Downloaded 98 times)
|
|
|
Re: Cannot build project [message #1830894 is a reply to message #1830890] |
Thu, 06 August 2020 06:43 |
|
Thanks Senaka. Package.json looks alright. There's a lot going on in our maven build, it triggers the NPM build too. So I guess the problem lies there somewhere.
Could you please attach the full log of your Maven build here? I guess the easiest way is to run maven on the command line:
mvn clean verify > C:\temp\helloworld-maven.log
Or in the Eclipse IDE: change the preferences of the Console and un-check the "Limit console output" check-box, before your run the maven build.
Eclipse Scout Homepage | Documentation | GitHub
|
|
|
Re: Cannot build project [message #1830897 is a reply to message #1830894] |
Thu, 06 August 2020 08:04 |
|
If there is no @eclipse-scout or pnpm directory in the target/node_modules folder, than the task "install-node-tools" probably failed or has been skipped.
This should be visible in the log as André suggested. I get the following output:
[INFO] --- frontend-maven-plugin:1.9.1:install-node-and-npm (install-node-and-npm) @ helloworld.ui.html ---
[INFO] Installing node version v12.12.0
[INFO] Unpacking C:\Users\cgu\.m2\repository\com\github\eirslett\node\12.12.0\node-12.12.0-win-x64.zip into C:\dev\temp\arche\helloworld\helloworld.ui.html\..\helloworld\target\node\..\node\tmp
[INFO] Copying node binary from C:\dev\temp\arche\helloworld\helloworld.ui.html\..\helloworld\target\node\..\node\tmp\node-v12.12.0-win-x64\node.exe to C:\dev\temp\arche\helloworld\helloworld.ui.html\..\helloworld\target\node\..\node\node.exe
[INFO] Installed node locally.
[INFO]
[INFO] --- frontend-maven-plugin:1.9.1:npm (install-node-tools) @ helloworld.ui.html ---
[INFO] Running 'npm install -g pnpm@4.13.0 @eclipse-scout/releng@^10.0.0' in C:\dev\temp\arche\helloworld\helloworld.ui.html
[INFO] C:\dev\temp\arche\helloworld\helloworld\target\node\releng-scripts -> C:\dev\temp\arche\helloworld\helloworld\target\node\node_modules\@eclipse-scout\releng\bin\releng-scripts.js
[INFO] C:\dev\temp\arche\helloworld\helloworld\target\node\pnpm -> C:\dev\temp\arche\helloworld\helloworld\target\node\node_modules\pnpm\bin\pnpm.js
[INFO] C:\dev\temp\arche\helloworld\helloworld\target\node\pnpx -> C:\dev\temp\arche\helloworld\helloworld\target\node\node_modules\pnpm\bin\pnpx.js
[INFO] + @eclipse-scout/releng@10.0.3
[INFO] + pnpm@4.13.0
[INFO] added 181 packages from 101 contributors in 13.646s
Maybe also delete the node_modules folder in the ui.html module first. If you use another package manager than the maven build (e.g. npm) conflicts can arise, because pnpm will move the installed modules to a general store and link them. If you run npm install again afterwards it probably cannot handle it.
I don't think this is likely your problem, but maybe you will run into it later on....
|
|
|
|
Re: Cannot build project [message #1830905 is a reply to message #1830901] |
Thu, 06 August 2020 11:26 |
|
Thanks again! I found the following error in your build log:
[INFO] Running 'npm install -g pnpm@4.13.0 @eclipse-scout/releng@^10.0.0' in E:\senaka\eclipseworkspace\helloworld\helloworld.ui.html
[INFO] npm ERR! code E404
[INFO] npm ERR! 404 Not Found - GET https://registry.npmjs.org/@pnpm%2ffind-workspace-packages - Not found
Currently npmjs.org has some serious issues going on, See:
https://status.npmjs.org/
I guess that's the reason why npm cannot resolve the module on your machine (I experienced similar problems while I was analyzing the problems reported here).
I'm afraid we cannot do a lot until npmjs.org has solved its problems :-( When npmjs.org is alive again, we should run your build again and check if something has changed.
Cheers,
André
Eclipse Scout Homepage | Documentation | GitHub
|
|
|
|
|
|
Re: Cannot build project [message #1830972 is a reply to message #1830951] |
Fri, 07 August 2020 14:06 |
|
Hi Senaka
Thanks again for posting your build log here. We've analyzed your log and I compared it against my own build log. I found this difference:
[Your Log]
[INFO] Running 'npm install -g pnpm@4.13.0 @eclipse-scout/releng@^10.0.0' in E:\senaka\eclipseworkspace\helloworld\helloworld.ui.html
[DEBUG] Executing command line [E:\senaka\eclipseworkspace\helloworld\helloworld.ui.html\..\helloworld\target\node\..\node\node.exe, E:\senaka\eclipseworkspace\helloworld\helloworld.ui.html\..\helloworld\target\node\..\node\node_modules\npm\bin\npm-cli.js, install, -g, pnpm@4.13.0, @eclipse-scout/releng@^10.0.0]
[INFO] C:\Users\mathe\AppData\Roaming\npm\releng-scripts -> C:\Users\mathe\AppData\Roaming\npm\node_modules\@eclipse-scout\releng\bin\releng-scripts.js
[INFO] C:\Users\mathe\AppData\Roaming\npm\pnpm -> C:\Users\mathe\AppData\Roaming\npm\node_modules\pnpm\bin\pnpm.js
[INFO] C:\Users\mathe\AppData\Roaming\npm\pnpx -> C:\Users\mathe\AppData\Roaming\npm\node_modules\pnpm\bin\pnpx.js
[INFO] + pnpm@4.13.0
[INFO] + @eclipse-scout/releng@10.0.3
[INFO] updated 2 packages in 60.155s
[My Log]
[INFO] Running 'npm install -g pnpm@4.13.0 @eclipse-scout/releng@^10.0.0' in C:\Temp\eclipse-scout-2020-06-R-win32-x86_64\workspaces\helloworld\helloworld.ui.html
[DEBUG] Executing command line [C:\Temp\eclipse-scout-2020-06-R-win32-x86_64\workspaces\helloworld\helloworld.ui.html\..\helloworld\target\node\..\node\node.exe, C:\Temp\eclipse-scout-2020-06-R-win32-x86_64\workspaces\helloworld\helloworld.ui.html\..\helloworld\target\node\..\node\node_modules\npm\bin\npm-cli.js, install, -g, pnpm@4.13.0, @eclipse-scout/releng@^10.0.0]
[INFO] C:\Temp\eclipse-scout-2020-06-R-win32-x86_64\workspaces\helloworld\helloworld\target\node\releng-scripts -> C:\Temp\eclipse-scout-2020-06-R-win32-x86_64\workspaces\helloworld\helloworld\target\node\node_modules\@eclipse-scout\releng\bin\releng-scripts.js
[INFO] C:\Temp\eclipse-scout-2020-06-R-win32-x86_64\workspaces\helloworld\helloworld\target\node\pnpm -> C:\Temp\eclipse-scout-2020-06-R-win32-x86_64\workspaces\helloworld\helloworld\target\node\node_modules\pnpm\bin\pnpm.js
[INFO] C:\Temp\eclipse-scout-2020-06-R-win32-x86_64\workspaces\helloworld\helloworld\target\node\pnpx -> C:\Temp\eclipse-scout-2020-06-R-win32-x86_64\workspaces\helloworld\helloworld\target\node\node_modules\pnpm\bin\pnpx.js
[INFO] + pnpm@4.13.0
[INFO] + @eclipse-scout/releng@10.0.3
[INFO] added 181 packages from 101 contributors in 43.276s
In your case the two modules @eclipse-scout/releng and pnpm are installed in C:\Users\mathe\AppData\Roaming\npm, but the build expects them to be installed under the workspace/helloworld/ directory. I guess this has something to do with how you've installed NPM. I will open a Bugzilla bug for this: the build must work independent from how exactly one has installed NPM. See: Bug 565896 - Maven build fails because NPM modules are installed at the wrong location.
Could you please check if there is a NODE_PATH environment variable set on your machine?
As a workaround you could try to manually copy all files from "C:\Users\mathe\AppData\Roaming\npm\node_modules\@eclipse-scout" to "E:\senaka\eclipseworkspace\helloworld\helloworld\target\node\node_modules\@eclipse-scout" where the build expects these files. And run the build again without "clean", otherwise the directory will be deleted again.
You could also try to change the NODE_PATH variable and point it to the directory "E:\senaka\eclipseworkspace\helloworld\helloworld\target\node\node_modules" before you run the build (untested).
Hope that helps. Cheers,
André
Eclipse Scout Homepage | Documentation | GitHub
[Updated on: Fri, 07 August 2020 14:39] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05058 seconds