Wednesday, September 8, 2010

Configure Jetty Maven Plugin for SSL

Documentation on Jetty Maven Plugin from Eclipse Foundation is not as complete as its predecessor from Codehaus. Here is a sample pom.xml for configuring the plugin for SSL. The highlighted section is the configuration of a SSL connector.
<build>
  <plugins>
    <plugin>
      <groupid>org.mortbay.jetty</groupid>
      <artifactid>jetty-maven-plugin</artifactid>
      <version>7.0.2.v20100331</version>
      <configuration>
        <connectors>
          <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
           <port>8080</port>
           <maxidletime>60000</maxidletime>
          </connector>
          <connector implementation="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
           <port>8443</port>
           <maxidletime>60000</maxidletime>
           <keystore>${basedir}/ssl/server.keystore</keystore>
           <password>sample</password>
           <keypassword>sample</keypassword>
          </connector>
         </connectors>
      </configuration>
     </plugin>
   </plugins>
</build>

3 comments:

  1. Learn Django online to understand modern backend development clearly.It focuses on application-based learning.This learn Django online supports beginners.It is helpful.

    ReplyDelete
  2. "Enhance your data visualization skills through comprehensive tableau software learning . Master dashboards, charts, and analytics to transform raw data into actionable insights."

    ReplyDelete
  3. "Boost your career with sales force admin course designed to equip you with essential skills for managing Salesforce efficiently. Learn hands-on techniques and become a certified Salesforce administrator."

    ReplyDelete