code: protected String getPort() {
          String port = tomcatPort;
          if (mavenTomcatPort != null) {
              port = mavenTomcatPort;
              getLog().info( "Tomcat Port overridden by property maven.tomcat.port");
          }
  
          return port;
      }
docs: Get the Tomcat port. By default the port is changed by using the maven.alfresco.tomcat.port property
  but for legacy and external configuration purposes maven.tomcat.port will override if defined
  
  @return the Tomcat port