add warning if artifact with sources classifier not found

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1336293 13f79535-47bb-0310-9956-ffa450edef68
master
Olivier Lamy 2012-05-09 16:45:49 +00:00
parent d85b22ec88
commit ba66d8def7
1 changed files with 3 additions and 0 deletions

View File

@ -212,6 +212,9 @@ public class JavaAnnotationsMojoDescriptorExtractor
{
//throw new ExtractionException( e.getMessage(), e );
getLogger().debug( "skip ArtifactNotFoundException:" + e.getMessage() );
getLogger().warn(
"Impossible to get sources artifact for " + artifact.getGroupId() + ":" + artifact.getArtifactId() + ":"
+ artifact.getVersion() + ". Some javadoc tags (@since, @deprecated and comments) won't be used" );
}
catch ( NoSuchArchiverException e )
{