在Jetty 9上配置SSL无法找到'keyStore'

时间:2014-10-28 11:52:17

标签: java ssl jetty

我正在运行maven jetty插件,我希望每次访问网址时都有https

 <plugin>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>9.2.3.v20140905</version>
                <configuration>
                    <httpConnector impl="org.eclipse.jetty.server.ssl.SslSocketConnector">
                        <port>8081</port>
                        <keyStore>${project.build.directory}/jetty-ssl.keystore</keyStore>
                        <password>jetty6</password>
                        <keyPassword>jetty6</keyPassword>
                    </httpConnector>
                    <stopKey></stopKey>
                    <stopPort></stopPort>
                </configuration>
            </plugin>

然而,当我运行mvn:jetty:run我得到此错误时,如何在jetty上配置SSL?

[ERROR] Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.2.3.v20140905:run (default-cli) on project brightworks-admin-app-web: Unable to parse configuration of mojo org.eclipse.jetty:jetty-maven-plugin:9.2.3.v20140905:run for parameter keyStore: Cannot find 'keyStore' in class org.eclipse.jetty.maven.plugin.MavenServerConnector -> [Help 1]

0 个答案:

没有答案