Apache Tomcat Maven Plugin
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-217

configure a pre define http port for standalone jar

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-1, 2.1
    • Fix Version/s: 2.2
    • Component/s: tomcat7
    • Labels:
      None
    • Environment:
      Windows7, maven2.2.1, JDK-Oracle 7.0_u15

      Description

      I use maven-tomcat-plugin to create war-exec.jar with following definition:
      <plugin>
      <groupId>org.apache.tomcat.maven</groupId>
      <artifactId>tomcat7-maven-plugin</artifactId>
      <version>2.2-SNAPSHOT</version>
      <configuration>
      <serverXml>src/main/tomcat/server.xml</serverXml>
      </configuration>
      <executions>
      <execution>
      <id>create-exec-war</id>
      <goals>
      <goal>exec-war-only</goal>
      </goals>
      <phase>package</phase>
      </execution>
      </executions>
      </plugin>

      But when the server.xml is specified - to configure some defaults for server like NIO, etc. than the CLI parameters are ignored:

      java -jar war-exec.jar -httpPort 8888

      does not change the the server port.

        Activity

        Petr Novak created issue -
        Olivier Lamy (*$^¨%`£) made changes -
        Field Original Value New Value
        Issue Type Bug [ 1 ] New Feature [ 2 ]
        Olivier Lamy (*$^¨%`£) made changes -
        Affects Version/s 2.1 [ 12320767 ]
        Affects Version/s 2.0-beta-1 [ 12317943 ]
        Affects Version/s 2.2 [ 12323925 ]
        Fix Version/s 2.2 [ 12323925 ]
        Olivier Lamy (*$^¨%`£) made changes -
        Summary CLI parameters passed to war-exec.jar don't override the internal values (httpPort) configure a pre define http port for standalone jar
        Olivier Lamy (*$^¨%`£) made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Olivier Lamy (*$^¨%`£)
            Reporter:
            Petr Novak
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development