Skip to end of metadata
Go to start of metadata

Change maven jetty run port

File: pom.xml

    <plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>maven-jetty-plugin</artifactId>
        <version>6.1.14</version>
        <configuration>
          <systemProperties>
            <systemProperty>
              <name>org.mortbay.util.FileResource.checkAliases</name>
              <value>false</value>
            </systemProperty>
          </systemProperties>
          <connectors>
            <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
              <port>8080</port>
              <maxIdleTime>60000</maxIdleTime>
            </connector>
          </connectors>
          <scanIntervalSeconds>10</scanIntervalSeconds>
          <stopKey>tdar</stopKey>
          <stopPort>12919</stopPort>
        </configuration>
      </plugin>

E.g., change the starting port from 8080 to 8081, then, change the line "<port>8080</port>" to "<port>9081</port>"

Similarly, change the stopping port from 12919 to 12920, change the line "<stopPort>12919</stopPort" to "<stopPort>12920</stopPort".

Labels
  • None