Example of Forge Spring Boot New project example

23 views
Skip to first unread message

Charles Moulliard

unread,
Oct 6, 2016, 1:07:58 AM10/6/16
to fabric8
Hi,

I try to figure out how to use the Forge SpringBoot New project command in a terminal but experiment some issues :


spring-boot-new-project --dependencies "I/O: Apache Camel" --spring-boot-version 1.4.0 demo

***ERROR*** Error while executing 'Spring-Boot: New Project'
java
.lang.NullPointerException
        at io
.fabric8.forge.devops.springboot.SpringBootNewProjectCommand.execute(SpringBootNewProjectCommand.java:176)
        at sun
.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun
.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java
.lang.reflect.Method.invoke(Method.java:498)
        at org
.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
        at org
.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
        at org
.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
        at io
.fabric8.forge.devops.springboot.SpringBootNewProjectCommand_$$_javassist_55c4900e-50b5-4a7b-a160-f8701f35b307.execute(SpringBootNewProjectCommand_$$_javassist_55c4900e-50b5-4a7b-a160-f8701f35b307.java)
        at org
.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.execute(WizardCommandControllerImpl.java:161)
        at org
.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.execute(NoUIWizardControllerDecorator.java:151)
        at org
.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:97)
        at org
.jboss.forge.addon.shell.aesh.ForgeCommandContainer.executeCommand(ForgeCommandContainer.java:88)
        at org
.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:311)
        at org
.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
        at java
.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java
.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java
.lang.Thread.run(Thread.java:745)


Can someone share & document the syntax to be used to specify the dependencies please ?

Regards,

Charles


James Strachan

unread,
Oct 6, 2016, 5:29:17 AM10/6/16
to Charles Moulliard, fabric8
I just tried a fix for the NPE:

wanna try a local build of fabric8-forge and see if it solves your issue?

--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
James
-------
Red Hat

Twitter: @jstrachan
Email: james.s...@gmail.com
Blog: https://medium.com/@jstrachan/

open source microservices platform
Reply all
Reply to author
Forward
0 new messages