Uploaded image for project: 'Maven Project Info Reports Plugin'
  1. Maven Project Info Reports Plugin
  2. MPIR-42

use of POM artifactId for svn report creates issues when file layout doesn't match artifact names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      See http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/source-repository.html

      The webstart project is a multiproject plugin with the following layout:

      webstart-maven-plugin/pom.xml (artifactid = webstart-maven-plugin-parent)
      webstart-maven-plugin/plugin/pom.xml (artifactid = webstart-maven-plugin)

      the ScmReport uses the artifactid and a URL built using the artifactIds to construct the scm report information. E.g. :

      private void anonymousAccessSVN( SvnScmProviderRepository svnRepo )

      { paragraph( i18n.getString( "project-info-report", locale, "report.scm.anonymousaccess.svn.intro" ) ); StringBuffer sb = new StringBuffer(); sb.append( "$ svn checkout " ).append( svnRepo.getUrl() ).append( " " ).append( model.getArtifactId() ); verbatimText( sb.toString() ); }

      All generated svn information (web, svn command line) is then wrong.

      Instead of

      https://svn.mojo.codehaus.org/mojo/trunk/mojo/mojo-sandbox/webstart-maven-plugin-parent/webstart-maven-plugin

      one should have:

      https://svn.mojo.codehaus.org/mojo/trunk/mojo/mojo-sandbox/webstart-maven-plugin/plugin

      Etc...

      Should I really override all my pom.xml <scm> entries, or should the plugin be smarter and use the file layout instead?

      Attachments

        Activity

          People

            brett Brett Porter
            lacostej Jerome Lacoste
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: