Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] how to specify the port when using mvn:run-forked

http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin#jetty:run-forked__:__Running_an_unassembled_webapp_in_a_separate_jvm

Either a jetty.xml file, or try passing the  -Djetty.port=9090 in the <jvmArgs>.

Jan

On 12 December 2011 13:16, Tommy Chheng <tommy.chheng@xxxxxxxxx> wrote:
> If i'm using mvn:run-forked to run my webapp, how can i specify the
> port my project is running on?
>
> If i specify the following, mvn:run-forked still uses the default 8080 port.
>       <configuration>
>         <connectors>
>           <connector
> implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
>             <port>9090</port>
>           </connector>
>         </connectors>
>
>
> --
> @tommychheng
> http://tommy.chheng.com
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top