Author: evenisse
Date: Tue Oct 11 04:37:07 2005
New Revision: 312859
URL: http://svn.apache.org/viewcvs?rev=312859&view=rev
Log:
Add some infos in error messages
Modified:
maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java
Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java?rev=312859&r1=312858&r2=312859&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java
Tue Oct 11 04:37:07 2005
@@ -259,13 +259,13 @@
if ( ciManagement == null )
{
- throw new MavenBuilderHelperException( "Missing 'ciManagement' element in the
POM." );
+ throw new MavenBuilderHelperException( "Missing 'ciManagement' element in the
" + getProjectName( project ) + " POM." );
}
if ( getNotifiers( project ).isEmpty() )
{
throw new MavenBuilderHelperException(
- "Missing 'notifiers' element in the 'ciManagement' element in the POM." );
+ "Missing 'notifiers' element in the 'ciManagement' element in the " + getProjectName(
project ) + " POM." );
}
// SCM connection
@@ -273,14 +273,14 @@
if ( scm == null )
{
- throw new MavenBuilderHelperException( "Missing 'scm' element in the POM." );
+ throw new MavenBuilderHelperException( "Missing 'scm' element in the " + getProjectName(
project ) + " POM." );
}
String url = scm.getConnection();
if ( StringUtils.isEmpty( url ) )
{
- throw new MavenBuilderHelperException( "Missing 'connection' element in the 'scm'
element in the POM." );
+ throw new MavenBuilderHelperException( "Missing 'connection' element in the 'scm'
element in the " + getProjectName( project ) + " POM." );
}
return project;
|