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

The maven-release-plugin is unable to release the test-jar for the Liferay Faces Alloy component showcase

    Details

      Description

      When attempting to run the Selenium integration tests for the Alloy Showcase Portlet, the maven test goal reported a failure to download com.liferay.faces.demo.alloy.showcase.webapp/3.0.2/com.liferay.faces.demo.alloy.showcase.webapp-3.0.2-tests.jar from Maven Central. The download failed is because this artifact was not released alongside of the com.liferay.faces.demo.alloy.showcase.webapp-3.0.2.war artifact.

      The reason why the com.liferay.faces.demo.alloy.showcase.webapp-3.0.2-tests.jar was not released is documented in the StackOverflow question titled "maven release:prepare skips test-jar".

      The fix would be to add the following to the pom.xml descriptor of the alloy-showcase-webapp module:

       

      pom.xml
      <profile>
      	<id>release</id>
      	<properties>
      		<maven.test.skip>false</maven.test.skip>
      	</properties>
      	<dependencies>
      		<dependency>
      			<groupId>com.liferay.faces.demo</groupId>
      			<artifactId>com.liferay.faces.demo.jsf.showcase.webapp</artifactId>
      			<version>${liferay.faces.showcase.version}</version>
      			<type>test-jar</type>
      			<scope>test</scope>
      		</dependency>
      	</dependencies>
      </profile>
      

        Attachments

          Activity

            People

            • Assignee:
              neil.griffin Neil Griffin
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                alloy-3.0.3