You can do it in a single module. Since a self-executable war is
non-standard, the war plugin doesn't know that a main class should be
in the root. Here's how I do it:
maven-antrun-plugin
move-main-class
compile
You'll probably want to put your main class in a separate jar and then use
dependency:unpack-dependencies to unpack the main class
2009/6/2 nambi sankaran
> Hi All
>
> I am trying to embed jetty into a war file, so that the war file becomes
> executable.
>java -jar mywar.war
> will start jet
Hi All
I am trying to embed jetty into a war file, so that the war file becomes
executable.
java -jar mywar.war
will start jetty on port 8080. ie, Main-Class will start Jetty programmatically.
To achieve this I have added configuration section for war plugin,
testwar