@Karl: I see, so to run from intellij you should....do nothing :D Joke apart, add commons-cli in scope provided (or compile/optional depending if you want it or not at the end), select the main class from meecrowave-core "Cli" and run :)
Tip: ensure "include provided dependencies" checkbox is checked in Application configuration in idea. If you really want to run your main because it has some more logic, you can use maven exec plugin and in intellij configuration the same trick will work. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance> Le lun. 19 oct. 2020 à 18:09, Karl Kildén <[email protected]> a écrit : > To clarify, I assume you are supposed to be able to run it from intellij > during development? E.g. run the main method like you always do. > > Cheers > > On Mon, 19 Oct 2020 at 18:07, Karl Kildén <[email protected]> wrote: > >> Thanks Romain for the suggestion, >> >> What commands did you use? Maven package and meecrowave:run works fine, >> but I have not yet gotten to configure a maven plugin to run the Start >> class with a main method. >> >> meecrowave:run, can I annotate port somehow when I run that? 8080 is busy >> over here with something I don't want to restart. >> >> On Mon, 19 Oct 2020 at 17:24, Romain Manni-Bucau <[email protected]> >> wrote: >> >>> Hi, >>> >>> tested with maven and got no issue, here what you can check/try: do you >>> use maven embedded in intellij (never do ;) and use a real maven 3.5 or 3.6) >>> >>> Romain Manni-Bucau >>> @rmannibucau <https://twitter.com/rmannibucau> | Blog >>> <https://rmannibucau.metawerx.net/> | Old Blog >>> <http://rmannibucau.wordpress.com> | Github >>> <https://github.com/rmannibucau> | LinkedIn >>> <https://www.linkedin.com/in/rmannibucau> | Book >>> <https://www.packtpub.com/application-development/java-ee-8-high-performance> >>> >>> >>> Le lun. 19 oct. 2020 à 17:20, Karl Kildén <[email protected]> a >>> écrit : >>> >>>> Hi, >>>> >>>> So when getting to know Meecro I just added the sample bake into the >>>> rest trivial and tried to run it in Intellij. >>>> >>>> >>>> https://github.com/karlkilden/openwebbeans-meecrowave-examples/commit/15ceab392683adf356e103c1d1c8fc66139b862e >>>> >>>> stacktrace and code above. >>>> >>>> Anything I am missing? >>>> >>>> Cheers >>>> Karl >>>> >>>
