Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-751

WildFly Swarm System Properties swarm.https.port and swarm.https.certificate.generate do not work

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2016.9
    • Fix Version/s: 2016.12.1
    • Component/s: None
    • Labels:
      None

      Description

      There is no documentation on how to configure WildFly Swarm Maven Plugin to set up SSL.
      I have configured System Properties swarm.https.port and swarm.https.certificate.generate , but they do not take effect. HTTP works fine without any problems, but HTTPS port does not work at all.

      Here's my Maven pom.xml –

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
          <modelVersion>4.0.0</modelVersion>
          <parent>
              <artifactId>RestProvider</artifactId>
              <groupId>com.acme</groupId>
              <version>1.0</version>
          </parent>
          <groupId>com.acme</groupId>
          <artifactId>RestProvider-web</artifactId>
          <version>1.0</version>
          <packaging>war</packaging>
      
          <name>RestProvider-web</name>
      
          <properties>
              <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
              <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
          </properties>
      
          <dependencies>
              <dependency>
                  <groupId>org.glassfish</groupId>
                  <artifactId>javax.json</artifactId>
                  <version>1.0.4</version>
              </dependency>
              <dependency>
                  <groupId>junit</groupId>
                  <artifactId>junit</artifactId>
                  <version>4.12</version>
                  <scope>test</scope>
              </dependency>
              <dependency>
                  <groupId>javax</groupId>
                  <artifactId>javaee-web-api</artifactId>
                  <version>7.0</version>
                  <scope>provided</scope>
              </dependency>
          </dependencies>
      
          <build>
              <plugins>
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-compiler-plugin</artifactId>
                      <version>2.3.2</version>
                      <configuration>
                          <source>8</source>
                          <target>8</target>
                          <compilerArguments>
                              <endorseddirs>${endorsed.dir}</endorseddirs>
                          </compilerArguments>
                      </configuration>
                  </plugin>
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-war-plugin</artifactId>
                      <version>2.1.1</version>
                      <configuration>
                          <failOnMissingWebXml>false</failOnMissingWebXml>
                      </configuration>
                  </plugin>
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-dependency-plugin</artifactId>
                      <version>2.1</version>
                      <executions>
                          <execution>
                              <phase>validate</phase>
                              <goals>
                                  <goal>copy</goal>
                              </goals>
                              <configuration>
                                  <outputDirectory>${endorsed.dir}</outputDirectory>
                                  <silent>true</silent>
                                  <artifactItems>
                                      <artifactItem>
                                          <groupId>javax</groupId>
                                          <artifactId>javaee-endorsed-api</artifactId>
                                          <version>7.0</version>
                                          <type>jar</type>
                                      </artifactItem>
                                  </artifactItems>
                              </configuration>
                          </execution>
                      </executions>
                  </plugin>
                  
                  <plugin>
                      <groupId>org.wildfly.swarm</groupId>
                      <artifactId>wildfly-swarm-plugin</artifactId>
                      <configuration>
                          <properties>
      						<swarm.http.port>80</swarm.http.port>
                              <swarm.https.port>8181</swarm.https.port>
      						<swarm.https.certificate.generate>true</swarm.https.certificate.generate>
                              <swarm.context.path>/RestProvider-web</swarm.context.path>
                          </properties>
                      </configuration>				
                      <version>2016.9</version>
                      <executions>
                          <execution>
                              <goals>
                                  <goal>package</goal>
                              </goals>
                          </execution>
                      </executions>
                  </plugin>
                  
              </plugins>
          </build>
      
      </project>
      
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bob.mcwhirter Bob McWhirter
                  Reporter:
                  klau Ken Lau
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: