1 Reply Latest reply on Feb 25, 2017 9:16 AM by Claus Ibsen

    error will running the command

    prasad shenoy Newbie

      I 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]

        • 1. Re: error will running the command
          Claus Ibsen Master

          You should run that maven command outside the shell of JBoss Fuse.  The shell for JBoss Fuse is for managing the running Fuse (Karaf) server, not for creating new Java project.

           

          But better yet maybe use JBoss Developer Studio for Eclipse which has wizards to create new Fuse projects. Then you create your projects a more safer way.

          1 of 1 people found this helpful