Hi Eric.

Thanks for trying out the framework and this example.  Just so you know,
embedded images and attachments are stripped from any emails sent to Apache
mailing lists.  What we recommend is posting to imgur.com or similar, and
then including a link.

With respect to the error, that's most likely due to us trying to simplify
the archetypes over time.  The idea of mvn antrun:run -P self-host was that
we have used the jetty-console plugin [1] to create a standalone jar from a
war file, then configured the antrun plugin to actually exec that resultant
jar.  However, this does result in a longer build time and quite a lot more
boilerplate/complexity, so at some point I think I remember simplifying
this.

For what it's worth, the latest version of the archetype (1.13.2) is now
using a "jetty-console" maven mixin [2] that I put together which
reinstates the capability but with less boilerplate.

To build, use

    mvn install -Dmavenmixin-jettyconsole

To run, use:

    mvn antrun:run -Dmavenmixin-jettyconsole

Meantime, I'll update the docs.

Thanks
Dan


[1] https://github.com/eirbjo/jetty-console
[2] https://github.com/danhaywood/java-mavenmixin-jettyconsole


On Fri, 30 Dec 2016 at 12:30 Eric Lobato <[email protected]> wrote:

> Hi folks,
>
> I tried to build the petclinic archetype and it dit ok, but then tried to
> run it with the command: mvn antrun:run -P self-host and it returned an
> error (screenshot below). Then tried to run via jetty in the webapp
> directory and it worked ok.
>
> [image: Inline image 1]
>
> Eric Lobato Moreira
> [email protected]
>

Reply via email to