0
我想配置一個web應用程序使用tomee maven插件在https上運行,但它默認爲http。我如何指定必要的配置以使用https?如何配置tomee以通過https運行?
這是我做過什麼,到目前爲止:
<build>
<plugins>
<plugin>
<groupId>org.apache.openejb.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>1.7.1</version>
<configuration>
<tomeeVersion>1.7.1</tomeeVersion>
<tomeeClassifier>plus</tomeeClassifier>
<tomeeHttpsPort>8443</tomeeHttpsPort>
<context>${artifactId}</context>
<tomeeHost>testapp</tomeeHost>
<systemVariables>
<javax.net.ssl.keyStorePassword>changeit</javax.net.ssl.keyStorePassword>
<javax.net.ssl.keystoreFile>keystorePath</javax.net.ssl.keystoreFile>
</systemVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>