[ https://jira.codehaus.org/browse/MPIR-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=358183#comment-358183 ]
Michael Osipov commented on MPIR-313: ------------------------------------- The Confluence page would be, indeed, a good think. Though, the exception is not very helpful. That stuff is affected: {noformat} Name Line Text LicenseReportTest.java 53 assertTrue( "Test html generated", getGeneratedReport( "license.html" ).exists() ); LicenseReportTest.java 55 URL reportURL = getGeneratedReport( "license.html" ).toURI().toURL(); LicenseReportTest.java 67 String expectedTitle = prepareTitle( getString( "report.license.name" ), LicenseReportTest.java 68 getString( "report.license.title" ) ); LicenseReportTest.java 73 assertEquals( getString( "report.license.overview.title" ), textBlocks[0].getText() ); LicenseReportTest.java 74 assertEquals( getString( "report.license.overview.intro" ), textBlocks[1].getText() ); LicenseReportTest.java 75 assertEquals( getString( "report.license.name" ), textBlocks[2].getText() ); LicenseReportTest.java 88 assertTrue( "Test html generated", getGeneratedReport( "license.html" ).exists() ); LicenseReportTest.java 90 URL reportURL = getGeneratedReport( "license.html" ).toURI().toURL(); LicenseReportTest.java 102 String expectedTitle = prepareTitle( getString( "report.license.name" ), LicenseReportTest.java 103 getString( "report.license.title" ) ); LicenseReportTest.java 108 assertEquals( getString( "report.license.overview.title" ), textBlocks[0].getText() ); LicenseReportTest.java 109 assertEquals( getString( "report.license.overview.intro" ), textBlocks[1].getText() ); LicenseReportTest.java 110 assertEquals( getString( "report.license.name" ), textBlocks[2].getText() ); DependenciesRenderer.java 895 sb.append( ProjectInfoReportUtils.getArtifactIdCell( license.getName(), license.getUrl() ) ); DependencyManagementRenderer.java 265 String licenseCell = ProjectInfoReportUtils.getArtifactIdCell( license.getName(), license.getUrl() ); LicenseReport.java 101 String url = license.getUrl(); LicenseReport.java 272 String name = license.getName(); LicenseReport.java 284 String name = license.getName(); LicenseReport.java 285 String url = license.getUrl(); LicenseReport.java 286 String comments = license.getComments(); {noformat} > url and name are mandatory for a license but this is not validated > ------------------------------------------------------------------ > > Key: MPIR-313 > URL: https://jira.codehaus.org/browse/MPIR-313 > Project: Maven Project Info Reports Plugin > Issue Type: Bug > Affects Versions: 2.7 > Reporter: Constantino Cronemberger > Priority: Minor > Labels: exception > Attachments: exception.txt, pom.xml > > > In an internal project we had a license defined in the pom.xml but without > url and name. > This causes an exception which does not say anything about the fact that > these required elements are missing. See attached file with the complete > exception. > {code} > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on project > jee-util: Execution default-site of goal > org.apache.maven.plugins:maven-site-plugin:3.3:site failed: Anchor name > cannot be null! -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on > project jee-util: Execution default-site of goal > org.apache.maven.plugins:maven-site-plugin:3.3:site failed: Anchor name > cannot be null! > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224) > {code} -- This message was sent by Atlassian JIRA (v6.1.6#6162)