To set a custom port when running mvn jetty:run-forked, i had to add a
jetty.xml to the project and specify this file in the pom.xml
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.6.0.RC1</version>
<configuration>
<jettyXml>src/main/webapp/WEB-INF/jetty.xml</jettyXml>
On Sun, Dec 11, 2011 at 6:16 PM, 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
--
@tommychheng
http://tommy.chheng.com
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users