Open plinyar opened 8 years ago
Hi @plinyar thanks for share your (bad) experience with Kikaha on Windows.
1). "kikaha setup" doesn't consider %MAVEN_HOME% or %M2_HOME% env variables but tries setting up its own maven (?). I use git bash. When running "kikaha setup" then %HOME%.kikaha\conf\setup.conf is created (e.g. c:\Users\Administrator.kikaha\conf\setup.conf). But in this file there is a line "export M2_HOME="/c/Users/Administrator/.kikaha/work/mvn", however my maven is installed in another place.
You are right about it. The Kikaha CLI does download another Maven to is own location. The reason it does that is because it customizes the Maven output printing a more friendly feedback. But, I just opened the ticket #12 to handle this: I'm considering to let user choose if Kikaha should use the already installed Maven or download and customize it as it already does now.
2). "kikaha project create" fail, After manually fixing the path to maven, I run: kikaha project create 2.0 -e --name=first-project
But it fails with an error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (io.skullabs.kikaha.archetypes:2.0-archetype:1.0.0) -> [Help 1]
This is bad... It seems that it wasn't able to generate the archetypes on your machine. I just borrow a Windows machine here at work and I'll take a deep look in this issue right this night.
Again, thank you for your feedback.
1). "kikaha setup" doesn't consider %MAVEN_HOME% or %M2_HOME% env variables but tries setting up its own maven (?). I use git bash. When running "kikaha setup" then %HOME%.kikaha\conf\setup.conf is created (e.g. c:\Users\Administrator.kikaha\conf\setup.conf). But in this file there is a line "export M2_HOME="/c/Users/Administrator/.kikaha/work/mvn", however my maven is installed in another place.
2). "kikaha project create" fail, After manually fixing the path to maven, I run: kikaha project create 2.0 -e --name=first-project
But it fails with an error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (io.skullabs.kikaha.archetypes:2.0-archetype:1.0.0) -> [Help 1]