error will running the command
prasadshenoy21 Feb 22, 2017 2:43 PMI am trying to create the multi Archetype for my project .
while running the command mvn archetype:create-from-project i get the below error
Error executing command: Cannot coerce archetype:create-from-project() to any of []
10:37:30,216 | ERROR | Thread-42 | Console | 38 - org.apache.karaf.shell.console - 2.4.0.redhat-621107 | Exception caught while executing command
java.lang.IllegalArgumentException: Cannot coerce mvn(String) to any of []
at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:178)
at org.apache.felix.gogo.runtime.Closure.executeMethod(Closure.java:527)[38:org.apache.karaf.shell.console:2.4.0.redhat-621107]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[38:org.apache.karaf.shell.console:2.4.0.redhat-621107]
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[38:org.apache.karaf.shell.console:2.4.0.redhat-621107]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[38:org.apache.karaf.shell.console:2.4.0.redhat-621107]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[38:org.apache.karaf.shell.console:2.4.0.redhat-621107]
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
at org.apache.karaf.shell.console.jline.Console.run(Console.java:197)
at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.runConsole(ShellFactoryImpl.java:173)[126:org.apache.karaf.shell.ssh:2.4.0.redhat-621107]
at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1$1.run(ShellFactoryImpl.java:125)
at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_72]
at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[25:org.apache.karaf.jaas.modules:2.4.0.redhat-621107]
at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.run(ShellFactoryImpl.java:123)[126:org.apache.karaf.shell.ssh:2.4.0.redhat-621107]