commit | 2e214a3433a673b6b467c210f2ec0e55226365e9 | [log] [tgz] |
---|---|---|
author | Olivier Lamy <olamy@apache.org> | Fri Apr 01 11:28:13 2016 +0000 |
committer | Olivier Lamy <olamy@apache.org> | Fri Apr 01 11:28:13 2016 +0000 |
tree | 2721ed6f0d689364ed2942b9a3288bce364b95c2 | |
parent | 5896d8cc6f5c22acc41913fa0764028fa4d68a7b [diff] |
fix https://github.com/apache/tomcat-maven-plugin/pull/12 Signed-off-by: olivier lamy <olamy@apache.org> git-svn-id: https://svn.apache.org/repos/asf/tomcat/maven-plugin/trunk@1737347 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java b/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java index cc2c0c5..4047934 100644 --- a/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java +++ b/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java
@@ -287,6 +287,15 @@ private boolean ignorePackaging; /** + * enable client authentication for https (if configured) + * see <a href="http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#SSL_Support">http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#SSL_Support</a> + * + * @since 2.3 + */ + @Parameter(property = "maven.tomcat.https.clientAuth", defaultValue = "false") + private String clientAuth; + + /** * Override the default keystoreFile for the HTTPS connector (if enabled) * * @since 1.1 @@ -978,6 +987,7 @@ httpsConnector.setAttribute( "truststoreProvider", truststoreProvider ); } + httpsConnector.setAttribute("clientAuth", clientAuth); httpsConnector.setUseBodyEncodingForURI( this.useBodyEncodingForURI ); if ( address != null )