1 <plugin> 2 <groupId>org.codehaus.mojo</groupId> 3 <artifactId>keytool-maven-plugin</artifactId> 4 <version>1.4</version> 5 <executions> 6 <execution> 7 <phase>generate-resources</phase> 8 <id>clean</id> 9 <goals> 10 <goal>clean</goal> 11 </goals> 12 </execution> 13 <execution> 14 <phase>generate-resources</phase> 15 <id>generateKeyPair</id> 16 <goals> 17 <goal>generateKeyPair</goal> 18 </goals> 19 </execution> 20 </executions> 21 <configuration> 22 <keystore>${project.build.directory}/jetty-ssl.keystore</keystore> 23 <dname>cn=localhost</dname> 24 <keypass>test</keypass> 25 <storepass>test</storepass> 26 <alias>test</alias> 27 <keyalg>RSA</keyalg> 28 </configuration> 29 </plugin> 30 <plugin> 31 <groupId>org.mortbay.jetty</groupId> 32 <artifactId>jetty-maven-plugin</artifactId> 33 <version>8.1.0.RC5</version> 34 <configuration> 35 <webAppConfig> 36 <contextPath>/test</contextPath> 37 <defaultsDescriptor>src/test/resources/webdefault.xml</defaultsDescriptor> 38 </webAppConfig> 39 <stopKey/> 40 <stopPort/> 41 <connectors> 42 <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> 43 <port>8080</port> 44 </connector> 45 <connector implementation="org.eclipse.jetty.server.ssl.SslSocketConnector"> 46 <port>8443</port> 47 <maxIdleTime>60000</maxIdleTime> 48 <keystore>${project.build.directory}/jetty-ssl.keystore</keystore> 49 <password>test</password> 50 <keyPassword>test</keyPassword> 51 </connector> 52 </connectors> 53 </configuration> 54 </plugin>