Commons All
  1. Commons All
  2. COMMONSSITE-46

Multi-module projects fail when using the "rc" profile in commons-parent

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Commons Parent Pom
    • Labels:
      None

      Description

      The "rc" profile doesn't current work with multi-module projects (when the project has not been previously installed in your local repo for the current version)

      For example running the following command on JCI

          mvn -Prc clean install
      

      fails with the following error:

      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error during page generation
      
      Embedded error: Error rendering Maven report: Missing:
      ----------
      1) org.apache.commons:commons-jci-core:jar:1.1-SNAPSHOT
      ...
      

      I found this is caused by trying to run the site plugin in the "rc" profile:

                <plugin>
                  <artifactId>maven-site-plugin</artifactId>
                  <executions>
                    <execution>
                      <goals>
                        <goal>site</goal>
                      </goals>
                      <phase>package</phase>
                    </execution>
                  </executions>
                </plugin>
      

      The intention of the above was so that when the assembly plugin ran to create the binary distros then the site would be available to include in the distro. AFAIK we are now only shipping javadocs in the binary distros and not any component sites. So I plan to remove the site plugin from the "rc" profile and add a "javadoc" goal in the javadoc plugin in the "rc" profile. This resolves the issue.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Niall Pemberton
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development