Details
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.