我正在嘗試開發一個Wicket應用程序。它的登錄頁面必須使用SSL打開。所以我做了一些編碼。 但我找不到配置maven tomcat 7插件的SSL。 我正確創建了密鑰庫文件。使用keytool -genkey -alias tomcat -keyalg RSA
命令 它位於windows的in用戶目錄中。密碼是密碼。Maven Tomcat插件上的SSL配置
我這是怎麼定義的pom.xml中的tomcat:
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.0-beta-1</version>
<executions>
<execution>
<id>tomcat-run</id>
<goals>
<goal>exec-war-only</goal>
</goals>
<phase>package</phase>
<configuration>
<path>foo</path>
<!-- optional only if you want to use a preconfigured server.xml file -->
<serverXml>src/main/tomcatconf/server.xml</serverXml>
<!-- optional values which can be configurable -->
<attachArtifactClassifier>
default value is exec-war but you can customize
</attachArtifactClassifier>
<attachArtifactClassifierType>
default value is jar
</attachArtifactClassifierType>
<httpsPort>8443</httpsPort>
<keystoreFile>${user.home}/.keystore</keystoreFile>
<keystorePass>password</keystorePass>
<protocol>org.apache.coyote.http11.Http11AprProtocol</protocol>
</configuration>
</execution>
</executions>
</plugin>
您是否找到正確的配置?我試圖做一些類似的事情,但沒有成功。 – Jayz 2012-09-16 16:35:03
nope!.......... – yyy 2012-09-16 19:56:56