[ 
https://jira.codehaus.org/browse/MPIR-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=358161#comment-358161
 ] 

Constantino Cronemberger commented on MPIR-313:
-----------------------------------------------

I will first add this comment here and then post a question in the 
us...@maven.apache.org list.

My case is: we had a project that is an internal lib to be used across the 
company and somebody created the license entry in the pom without name and url, 
just some comments. This was not a problem because we were not generating a 
site.

Then I started to work on this project to generate a site and it took me a 
really long time to find out that the problem was in the fact that name and url 
were missing.

At the end I still don't have a valid URL, so I am using something like 
"http://TODO"; just to get the site generated, but maybe for an artifact that is 
not supposed to be disclosed we could have an option to quickly say that it is 
for internal use only.

> 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)

Reply via email to