You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2006/01/18 19:57:09 UTC
svn commit: r370214 -
/maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java
Author: brett
Date: Wed Jan 18 10:57:07 2006
New Revision: 370214
URL: http://svn.apache.org/viewcvs?rev=370214&view=rev
Log:
don't throw exception when there is no URL
Modified:
maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java
Modified: maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java?rev=370214&r1=370213&r2=370214&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java (original)
+++ maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java Wed Jan 18 10:57:07 2006
@@ -498,10 +498,14 @@
DecorationModel decorationModel = getDecorationModel( project, locale, props );
- if ( project.getUrl() == null )
- throw new MojoExecutionException( "Project " + project.getId() + " has no Url defined" );
-
- assembler.resolvePaths( decorationModel, project.getUrl() );
+ if ( project.getUrl() != null )
+ {
+ assembler.resolvePaths( decorationModel, project.getUrl() );
+ }
+ else
+ {
+ getLog().warn( "No URL defined for the project - decoration links will not be resolved" );
+ }
return decorationModel;
}