Trying to create and run my first Citrus test project. I am having no luck doing that. Following the documentation in 4.1.1 I invoke
mvn archetype:generate -Dfilter=com.consol.citrus.mvn:citrus
It fails. Not exactly what I expected. This is the error message
No plugin found for prefix '.consol.citrus.mvn' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\brian.m2\repository), central (https://repo.maven.apache.org/maven2)]
I don't even HAVE a current project yet. This procedure is supposed to create that project for me.
For some reason I did exactly the same thing on another system and it worked. It created a maven pom file as expected. But when I opened the maven project in Eclipse and ran it, it gave me errors on the log4j configuration. Of course I had to guess the location of the main file. I selected the citrus main. Also not what I would expect. The log4j xml config file was clearly present. I had the TestNG plugin installed.
But on this system, I cannot even do step one. Anyone have any ideas what could be wrong? I cannot step back any further than the first step!
It turns out that the error is caused by trying to run the command in the new Windows powershell. If one uses the start menu and runs the command prompt instead, the maven command will work as expected. At this time I have no idea why it does not work as expected in the powershell. Certainly the last thing I expected.
The unfortunate aspect of this Windows 10 update is that within the file explorer when you right click to get a command prompt, one now gets the power shell and the only way one can get the command prompt is to go to the start menu and specifically run the command prompt.
I have the same results on two separate systems.