Skip to content

Instantly share code, notes, and snippets.

@albertoaflores
Created July 3, 2012 12:42
Show Gist options
  • Save albertoaflores/3039515 to your computer and use it in GitHub Desktop.
Save albertoaflores/3039515 to your computer and use it in GitHub Desktop.
Sample pom.xml showing configuration of the surefire maven plugin using SSL (and debug flags)
...
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertiesVariables>
<property>
<name>ssl.debug</name>
<value>true</value>
</property>
<property>
<name>javax.net.debug</name>
<value>ssl,handshake,verbose</value>
</property>
<property>
<name>javax.net.ssl.keyStore</name>
<value>YOUR_KEYSTORE_FILE</value>
</property>
<property>
<name>javax.net.ssl.keyStorePassword</name>
<value>YOUR_KEYSTORE_PASSWORD</value>
</property>
<property>
<name>javax.net.ssl.keyStoreType</name>
<value>YOUR_KEYSTORE_TYPE</value>
</property>
<property>
<name>javax.net.ssl.trustStore</name>
<value>YOUR_TRUSTSTORE_FILE</value>
</property>
<property>
<name>javax.net.ssl.trustStorePassword</name>
<value>YOUR_TRUSTSTORE_PASSWORD</value>
</property>
<property>
<name>javax.net.ssl.trustStoreType</name>
<value>YOUR_TRUSTSTORE_TYPE</value>
</property>
</systemPropertiesVariables>
</configuration>
</plugin>
...
@sndmails2arun
Copy link

sndmails2arun commented Nov 10, 2017

          <systemPropertyVariables>
            <propertyName>propertyValue</propertyName>
            <buildDirectory>${project.build.directory}</buildDirectory>
            [...]
          </systemPropertyVariables>
        </configuration>```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment