Closed razibus closed 3 years ago
don't exactly know what that means, do you mean windows PATH? @danilo-ambrosio can you take a look?
don't exactly know what that means, do you mean windows PATH? @danilo-ambrosio can you take a look?
Indeed, this is what I meant. Can be the windows PATH or the Linux path. I use Linux. If the mvnw executable is not in one of the folders listed in the path variable, the code generation process fails with the aforementioned exception. However, even if making this file visible in the system path makes possible to get the code generation step working, this is only a workaround and is definitly not a viable solution. The mvnw executable should not be made public at the system level, but local and private to the xoom application, because it could conflict with other instances of the same file. A way to solve this issue may be to put a copy of the mvnw and its .mvn folder inside the xoom folder tree (for instance in a subfolder of xoom) and to keep it outside the system path. Instead to call directly mvnw, the call would be subfolder/mvnw.
Thanks @razibus for your patience and taking time to explain.
We've struggled a bit getting mvnw to work properly (not sure of all the reasons but it doesn't seem straightforward to employ it). It was my impression that we were causing a jit download of mvn rather than requiring it to exist locally beforehand. Perhaps the problem is when mvnw does exist beforehand. Not sure. Is that what you are indicating? It seems like your suggestion would be the cure to this.
/cc @danilo-ambrosio
Indeed, mvnw has this utility to use a local maven wrapper without requiring that a maven be installed on the target system. It is a good practice to use it and not to rely on the target system's configuration. It must be xoom's own copy of mvnw.
Ok, thanks. I thought that the jit download for XOOM-only use was our approach, but obviously something is wrong there.
This is happened to me yesterday.
Hey @danilo-ambrosio I thought this was fixed. @hurelhuyag is running Ubuntu. Is there any issues running Maven Wrapper on Ubuntu?
Our priority is not here, but need to nail this for good. @hurelhuyag Do you have any ideas here?
Ermm, I tried running ./mvnw clean package
in the root of vlingo-xoom-starter, because mvnw clean package
wouldn't work (on bash).
Maybe this is enough to solve the problem throwing ProjectGenerationException
as well?
@razibus said subfolder/mvnw
should work, so basically what I did.
There are mentions of mvnw in install.bat
, MavenWrapperInstallationStep
and Terminal
.
@Florian-Schoenherr What about this?
./mvnw/mvnw clean package
@VaughnVernon I meant ./mvnw clean package
works. Without the ./
it doesn't 👍
@Florian-Schoenherr Ok, I thought mvnw
is in a sub-directory of the same name under the root.
@razibus Thank you for all details you shared. I just need one more detail.
Could you please look into this directory $VLINGO_XOOM_STARTER_HOME/resources/archetypes
and ensure that the mvnw
script file is present?
Based on your reply, I can proceed with the solution.
Grateful for your collaboration!
And @danilo-ambrosio I think the most recent problem was experienced by @hurelhuyag so we need his input to your question:
Could you please look into this directory $VLINGO_XOOM_STARTER_HOME/resources/archetypes and ensure that the mvnw script file is present?
And @danilo-ambrosio I think the most recent problem was experienced by @hurelhuyag so we need his input to your question:
Could you please look into this directory $VLINGO_XOOM_STARTER_HOME/resources/archetypes and ensure that the mvnw script file is present?
Yes @VaughnVernon . I've also asked this information to @hurelhuyag and he already replied on Slack. I sent him an enhanced starter
version for his evaluation. I strongly believe the enhancements I made will solve this problem.
As soon as @hurelhuyag reply me with the test result, I'm going to push the fixed version
@danilo-ambrosio Thanks for all your diligent work on this. Multi-platform is way more complex than write-once-run-anywhere.
@hurelhuyag has successfully tested the updated starter
version I've recently pushed. Thank you @hurelhuyag.
@razibus Could you try this new version? All you need to do is the following:
xoom gui
then generate a project.@danilo-ambrosio Since Hurlhuyag has confirmed the fix on his environment, I think this can be marked fixed and close it even though @razibus has not confirmed.
Makes sense @VaughnVernon . I will do it.
When mvnw is not launchable in current path, the xoom gui emits the following exception at the generation step:
Adding a launchable mvnw to the path with an accessible .mvn folder solves the issue and the gui is able to generate the code.