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:
Brett Leslie Porter 2005-04-28 00:53:16 +00:00
parent ff94a56806
commit 765fcbe977
2 changed files with 10 additions and 0 deletions

View File

@ -74,6 +74,11 @@ public void addReports( Reports reports, ArtifactRepository localRepository, Lis
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(),

View File

@ -19,6 +19,11 @@
public class ReportManagerException
extends Exception
{
public ReportManagerException( String message )
{
super( message );
}
public ReportManagerException( String message, Exception e )
{
super( message, e );