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

Projects generated from maven archetypes contain a -SNAPSHOT qualifier for the parent pom

Details

    Description

      Problem Background

      When the archetypes were released, we neglected to remove the -SNAPSHOT qualifier for the parent pom for the generated pom.xml descriptors.

      Steps to Reproduce

      Execute the following shell command:

      mvn archetype:generate \
        -DarchetypeGroupId=com.liferay.faces.archetype \
        -DarchetypeArtifactId=com.liferay.faces.archetype.jsf.portlet \
        -DarchetypeVersion=6.1.0 \
        -DgroupId=com.mycompany \
        -DartifactId=com.mycompany.my.jsf.portlet
      
      cd com.liferay.faces.archetype.jsf.portlet
      
      mvn clean package
      

      Expected Results

      Maven reports BUILD SUCCESS.

      Actual Results

      Maven reports the following error:

      {pre}
      [FATAL] Non-resolvable parent POM for com.mycompany:com.mycompany.my.jsf.portlet:1.0.0: Could not find artifact com.liferay.faces.archetype:com.liferay.faces.archetype.parent:pom:6.1.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 7, column 10{pre}

      Attachments

        Issue Links

          Activity

            People

              neil.griffin Neil Griffin
              neil.griffin Neil Griffin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  alloy-archetype-5.1.1
                  alloy-archetype-6.1.1
                  bootsfaces-archetype-5.1.1
                  bootsfaces-archetype-6.1.1
                  butterfaces-archetype-5.1.1
                  butterfaces-archetype-6.1.1
                  icefaces-archetype-5.1.1
                  icefaces-archetype-6.1.1
                  jsf-archetype-5.1.1
                  jsf-archetype-6.1.1
                  primefaces-archetype-5.1.1
                  primefaces-archetype-6.1.1
                  richfaces-archetype-5.1.1
                  richfaces-archetype-6.1.1