Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3194

Skip building and execution of tests for jsf-showcase-webapp when the module is built with JDK 1.6

    Details

      Description

      The pom.xml descriptor for the liferay-faces-showcase-3.x and 2.x branches specified Java 1.6 source level compatibility:

      pom.xml
      <plugin>
      	<groupId>org.apache.maven.plugins</groupId>
      	<artifactId>maven-compiler-plugin</artifactId>
      	<version>3.1</version>
      	<configuration>
      		<source>1.6</source>
      		<target>1.6</target>
      		<encoding>UTF-8</encoding>
      	</configuration>
      </plugin>
      

      However, the Selenium tests in jsf-showcase-webapp rely on Selenium dependencies that require Java 1.7+.

      In order to be able to build the jsf-showcase-webapp module with JDK 1.6, it is necessary to skip building and execution of the tests. This can be accomplished by adding the following profile:

      jsf-showcase-webapp/pom.xml
      <profile>
      	<id>jdkNotSupportedBySelenium</id>
      	<activation>
      		<jdk>(,1.6]</jdk>
      	</activation>
      	<properties>
      		<maven.test.skip>true</maven.test.skip>
      	</properties>
      </profile>
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: