mirror of https://github.com/apache/maven.git
add message if version is missing
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@165076 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ff94a56806
commit
765fcbe977
|
@ -74,6 +74,11 @@ public class DefaultMavenReportManager
|
|||
|
||||
String version = pluginReport.getVersion();
|
||||
|
||||
if ( version == null )
|
||||
{
|
||||
throw new ReportManagerException( "The version of " + groupId + ":" + artifactId + " can not be empty" );
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
Artifact pluginArtifact = artifactFactory.createArtifact( pluginReport.getGroupId(),
|
||||
|
|
|
@ -19,6 +19,11 @@ package org.apache.maven.reporting.manager;
|
|||
public class ReportManagerException
|
||||
extends Exception
|
||||
{
|
||||
public ReportManagerException( String message )
|
||||
{
|
||||
super( message );
|
||||
}
|
||||
|
||||
public ReportManagerException( String message, Exception e )
|
||||
{
|
||||
super( message, e );
|
||||
|
|
Loading…
Reference in New Issue