redhat-developer / reactive-microservices-in-java

Source code from the Reactive Microservices in Java book
Apache License 2.0
140 stars 80 forks source link

Cannot extract main class to startup #6

Closed kenanunal closed 6 years ago

kenanunal commented 6 years ago

I am getting the following error when I run "mvn fabric8:deploy -Popenshift". Any idea of what could be the problem? [INFO] --- fabric8-maven-plugin:3.2.27:build (fmp) @ hello-microservice --- [INFO] F8: Using OpenShift build with strategy S2I [INFO] F8: Running generator vertx [INFO] F8: vertx: Using Docker image fabric8/s2i-java:2.0 as base / builder [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.474 s [INFO] Finished at: 2017-10-11T17:21:10-04:00 [INFO] Final Memory: 36M/878M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.2.27:build (fmp) on project hello-microservice: Execution fmp of goal io.fabric8:fabric8-maven-plugin:3.2.27:build failed: Cannot extract generator config: org.apache.maven.plugin.MojoExecutionException: Cannot extract main class to startup -> [Help 1] [ERROR]

cescoffier commented 6 years ago

Did you fix it @kenanunal ?

kenanunal commented 6 years ago

Hi Clement,

I had added to pom file to fix Eclipse error as suggested in one of the stackover flow entries. That worked fine when I use mvn vertx:run . Apparently It caused that issue with mvn fabric8:deploy -Popenshift. I think fabric8-maven-plugin can't find vertx-maven-plugin so it tries to use java-generator instead of vertx. Then I reversed the pom changes and set Eclipse to ignore initialize goal for vertx-maven-plugin. After that fabric8:deploy worked fine.

Regards,

Kenan

On Thu, Oct 12, 2017 at 10:31 AM, Clement Escoffier < notifications@github.com> wrote:

Did you fix it @kenanunal https://github.com/kenanunal ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/redhat-developer/reactive-microservices-in-java/issues/6#issuecomment-336155384, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYJd_IhWDJ-FCCjEgjoJ2Z03jyV-LXVks5sriK8gaJpZM4P2JKM .

-- This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you have received this message in error, please advise me (by return email or otherwise) immediately.