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 <[email protected]> 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
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to