Cannot build without clean [message #1856760] |
Thu, 29 December 2022 08:30  |
Eclipse User |
|
|
|
Hello
I use Scout 22.
When I build my application with $ mvn clean install, it works.
When I build again any application, such as out-of-the-box helloworld, the build command:
$ mvn install
fails on helloscout-root.
Attached is the full build log.
The relevant part IMO is:
[DEBUG] Executing command line: [/home/genwyse/Projets/VLM/workspaces/workspace-scout-22/helloscout/target/node/node, /home/genwyse/Projets/VLM/workspaces/workspace-scout-22/helloscout//target/node/node_modules/pnpm/bin/pnpm.cjs, --recursive, update, --no-save, --ignore-scripts]
Scope: all 4 projects
helloscout/target/node | WARN Moving @eclipse-scout/releng that was installed by a different package manager to "node_modules/.ignored
undefined
/home/genwyse/Projets/VLM/workspaces/workspace-scout-22/helloscout/target/node:
EEXIST EEXIST: file already exists, rename '/home/genwyse/Projets/VLM/workspaces/workspace-scout-22/helloscout/target/node/node_modules/@eclipse-scout/releng' -> '/home/genwyse/Projets/VLM/workspaces/workspace-scout-22/helloscout/target/node/node_modules/.ignored/@eclipse-scout/releng'
[ERROR] Command execution failed.
It seems that some existing file/directory put there by the previous build blocks the command.
Is it a bug ? Is it mandatory to perform a clean before ALL builds ?
Can I fix this ?
Thank you.
Attachment: build.log
(Size: 231.55KB, Downloaded 79 times)
|
|
|
|
|
Re: Cannot build without clean [message #1856859 is a reply to message #1856858] |
Thu, 05 January 2023 12:58  |
Eclipse User |
|
|
|
Quote:
I agree that a clean is safer but during the development sometimes I just want to rebuild quickly a module.
I fully understand that :)
Quote:
It is possible that npm could have been used before to build some other application but there should not be any side effect on the build of helloscout.
Exactly.
Quote:
Anyway, I tried to build from the parent project (instead of the root project) and this problem does not arise. This is what I will do from now.
I am happy this works for you :)
Kind regards
Mat
|
|
|
Powered by
FUDForum. Page generated in 0.28889 seconds