maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r864078 [3/25] - in /websites/production/maven/content/ref/3-LATEST: ./ apache-maven/ apidocs/org/apache/maven/ apidocs/org/apache/maven/artifact/metadata/ apidocs/org/apache/maven/classrealm/ apidocs/org/apache/maven/configuration/ apidocs...
Date Sun, 02 Jun 2013 08:01:33 GMT
Modified: websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/exception/DefaultExceptionHandler.html
==============================================================================
--- websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/exception/DefaultExceptionHandler.html (original)
+++ websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/exception/DefaultExceptionHandler.html Sun Jun  2 08:01:23 2013
@@ -34,291 +34,308 @@
 <FONT color="green">031</FONT>    import org.apache.maven.plugin.AbstractMojoExecutionException;<a name="line.31"></a>
 <FONT color="green">032</FONT>    import org.apache.maven.plugin.MojoExecutionException;<a name="line.32"></a>
 <FONT color="green">033</FONT>    import org.apache.maven.plugin.MojoFailureException;<a name="line.33"></a>
-<FONT color="green">034</FONT>    import org.apache.maven.plugin.PluginExecutionException;<a name="line.34"></a>
-<FONT color="green">035</FONT>    import org.apache.maven.project.ProjectBuildingException;<a name="line.35"></a>
-<FONT color="green">036</FONT>    import org.apache.maven.project.ProjectBuildingResult;<a name="line.36"></a>
-<FONT color="green">037</FONT>    import org.codehaus.plexus.component.annotations.Component;<a name="line.37"></a>
-<FONT color="green">038</FONT>    import org.codehaus.plexus.util.StringUtils;<a name="line.38"></a>
-<FONT color="green">039</FONT>    <a name="line.39"></a>
-<FONT color="green">040</FONT>    /*<a name="line.40"></a>
-<FONT color="green">041</FONT>    <a name="line.41"></a>
-<FONT color="green">042</FONT>    - test projects for each of these<a name="line.42"></a>
-<FONT color="green">043</FONT>    - how to categorize the problems so that the id of the problem can be match to a page with descriptive help and the test<a name="line.43"></a>
-<FONT color="green">044</FONT>      project<a name="line.44"></a>
-<FONT color="green">045</FONT>    - nice little sample projects that could be run in the core as well as integration tests<a name="line.45"></a>
-<FONT color="green">046</FONT>    <a name="line.46"></a>
-<FONT color="green">047</FONT>    All Possible Errors<a name="line.47"></a>
-<FONT color="green">048</FONT>    - invalid lifecycle phase (maybe same as bad CLI param, though you were talking about embedder too)<a name="line.48"></a>
-<FONT color="green">049</FONT>    - &lt;module&gt; specified is not found<a name="line.49"></a>
-<FONT color="green">050</FONT>    - malformed settings<a name="line.50"></a>
-<FONT color="green">051</FONT>    - malformed POM<a name="line.51"></a>
-<FONT color="green">052</FONT>    - local repository not writable<a name="line.52"></a>
-<FONT color="green">053</FONT>    - remote repositories not available<a name="line.53"></a>
-<FONT color="green">054</FONT>    - artifact metadata missing<a name="line.54"></a>
-<FONT color="green">055</FONT>    - extension metadata missing<a name="line.55"></a>
-<FONT color="green">056</FONT>    - extension artifact missing<a name="line.56"></a>
-<FONT color="green">057</FONT>    - artifact metadata retrieval problem<a name="line.57"></a>
-<FONT color="green">058</FONT>    - version range violation<a name="line.58"></a>
-<FONT color="green">059</FONT>    - circular dependency<a name="line.59"></a>
-<FONT color="green">060</FONT>    - artifact missing<a name="line.60"></a>
-<FONT color="green">061</FONT>    - artifact retrieval exception<a name="line.61"></a>
-<FONT color="green">062</FONT>    - md5 checksum doesn't match for local artifact, need to redownload this<a name="line.62"></a>
-<FONT color="green">063</FONT>    - POM doesn't exist for a goal that requires one<a name="line.63"></a>
-<FONT color="green">064</FONT>    - parent POM missing (in both the repository + relative path)<a name="line.64"></a>
-<FONT color="green">065</FONT>    - component not found<a name="line.65"></a>
-<FONT color="green">066</FONT>    <a name="line.66"></a>
-<FONT color="green">067</FONT>    Plugins:<a name="line.67"></a>
-<FONT color="green">068</FONT>    - plugin metadata missing<a name="line.68"></a>
-<FONT color="green">069</FONT>    - plugin metadata retrieval problem<a name="line.69"></a>
-<FONT color="green">070</FONT>    - plugin artifact missing<a name="line.70"></a>
-<FONT color="green">071</FONT>    - plugin artifact retrieval problem<a name="line.71"></a>
-<FONT color="green">072</FONT>    - plugin dependency metadata missing<a name="line.72"></a>
-<FONT color="green">073</FONT>    - plugin dependency metadata retrieval problem<a name="line.73"></a>
-<FONT color="green">074</FONT>    - plugin configuration problem<a name="line.74"></a>
-<FONT color="green">075</FONT>    - plugin execution failure due to something that is know to possibly go wrong (like compilation failure)<a name="line.75"></a>
-<FONT color="green">076</FONT>    - plugin execution error due to something that is not expected to go wrong (the compiler executable missing)<a name="line.76"></a>
-<FONT color="green">077</FONT>    - asking to use a plugin for which you do not have a version defined - tools to easily select versions<a name="line.77"></a>
-<FONT color="green">078</FONT>    - goal not found in a plugin (probably could list the ones that are)<a name="line.78"></a>
-<FONT color="green">079</FONT>    <a name="line.79"></a>
-<FONT color="green">080</FONT>     */<a name="line.80"></a>
-<FONT color="green">081</FONT>    <a name="line.81"></a>
-<FONT color="green">082</FONT>    //PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, CycleDetectedInPluginGraphException;<a name="line.82"></a>
-<FONT color="green">083</FONT>    <a name="line.83"></a>
-<FONT color="green">084</FONT>    @Component( role = ExceptionHandler.class )<a name="line.84"></a>
-<FONT color="green">085</FONT>    public class DefaultExceptionHandler<a name="line.85"></a>
-<FONT color="green">086</FONT>        implements ExceptionHandler<a name="line.86"></a>
-<FONT color="green">087</FONT>    {<a name="line.87"></a>
-<FONT color="green">088</FONT>    <a name="line.88"></a>
-<FONT color="green">089</FONT>        public ExceptionSummary handleException( Throwable exception )<a name="line.89"></a>
-<FONT color="green">090</FONT>        {<a name="line.90"></a>
-<FONT color="green">091</FONT>            return handle( "", exception );<a name="line.91"></a>
-<FONT color="green">092</FONT>        }<a name="line.92"></a>
-<FONT color="green">093</FONT>    <a name="line.93"></a>
-<FONT color="green">094</FONT>        private ExceptionSummary handle( String message, Throwable exception )<a name="line.94"></a>
-<FONT color="green">095</FONT>        {<a name="line.95"></a>
-<FONT color="green">096</FONT>            String reference = getReference( exception );<a name="line.96"></a>
-<FONT color="green">097</FONT>    <a name="line.97"></a>
-<FONT color="green">098</FONT>            List&lt;ExceptionSummary&gt; children = null;<a name="line.98"></a>
-<FONT color="green">099</FONT>    <a name="line.99"></a>
-<FONT color="green">100</FONT>            if ( exception instanceof ProjectBuildingException )<a name="line.100"></a>
-<FONT color="green">101</FONT>            {<a name="line.101"></a>
-<FONT color="green">102</FONT>                List&lt;ProjectBuildingResult&gt; results = ( (ProjectBuildingException) exception ).getResults();<a name="line.102"></a>
-<FONT color="green">103</FONT>    <a name="line.103"></a>
-<FONT color="green">104</FONT>                children = new ArrayList&lt;ExceptionSummary&gt;();<a name="line.104"></a>
-<FONT color="green">105</FONT>    <a name="line.105"></a>
-<FONT color="green">106</FONT>                for ( ProjectBuildingResult result : results )<a name="line.106"></a>
-<FONT color="green">107</FONT>                {<a name="line.107"></a>
-<FONT color="green">108</FONT>                    ExceptionSummary child = handle( result );<a name="line.108"></a>
-<FONT color="green">109</FONT>                    if ( child != null )<a name="line.109"></a>
-<FONT color="green">110</FONT>                    {<a name="line.110"></a>
-<FONT color="green">111</FONT>                        children.add( child );<a name="line.111"></a>
-<FONT color="green">112</FONT>                    }<a name="line.112"></a>
-<FONT color="green">113</FONT>                }<a name="line.113"></a>
-<FONT color="green">114</FONT>    <a name="line.114"></a>
-<FONT color="green">115</FONT>                message = "The build could not read " + children.size() + " project" + ( children.size() == 1 ? "" : "s" );<a name="line.115"></a>
-<FONT color="green">116</FONT>            }<a name="line.116"></a>
-<FONT color="green">117</FONT>            else<a name="line.117"></a>
-<FONT color="green">118</FONT>            {<a name="line.118"></a>
-<FONT color="green">119</FONT>                message = getMessage( message, exception );<a name="line.119"></a>
-<FONT color="green">120</FONT>            }<a name="line.120"></a>
-<FONT color="green">121</FONT>    <a name="line.121"></a>
-<FONT color="green">122</FONT>            return new ExceptionSummary( exception, message, reference, children );<a name="line.122"></a>
-<FONT color="green">123</FONT>        }<a name="line.123"></a>
-<FONT color="green">124</FONT>    <a name="line.124"></a>
-<FONT color="green">125</FONT>        private ExceptionSummary handle( ProjectBuildingResult result )<a name="line.125"></a>
-<FONT color="green">126</FONT>        {<a name="line.126"></a>
-<FONT color="green">127</FONT>            List&lt;ExceptionSummary&gt; children = new ArrayList&lt;ExceptionSummary&gt;();<a name="line.127"></a>
-<FONT color="green">128</FONT>    <a name="line.128"></a>
-<FONT color="green">129</FONT>            for ( ModelProblem problem : result.getProblems() )<a name="line.129"></a>
-<FONT color="green">130</FONT>            {<a name="line.130"></a>
-<FONT color="green">131</FONT>                ExceptionSummary child = handle( problem, result.getProjectId() );<a name="line.131"></a>
-<FONT color="green">132</FONT>                if ( child != null )<a name="line.132"></a>
-<FONT color="green">133</FONT>                {<a name="line.133"></a>
-<FONT color="green">134</FONT>                    children.add( child );<a name="line.134"></a>
-<FONT color="green">135</FONT>                }<a name="line.135"></a>
-<FONT color="green">136</FONT>            }<a name="line.136"></a>
-<FONT color="green">137</FONT>    <a name="line.137"></a>
-<FONT color="green">138</FONT>            if ( children.isEmpty() )<a name="line.138"></a>
-<FONT color="green">139</FONT>            {<a name="line.139"></a>
-<FONT color="green">140</FONT>                return null;<a name="line.140"></a>
-<FONT color="green">141</FONT>            }<a name="line.141"></a>
-<FONT color="green">142</FONT>    <a name="line.142"></a>
-<FONT color="green">143</FONT>            String message =<a name="line.143"></a>
-<FONT color="green">144</FONT>                "\nThe project " + result.getProjectId() + " (" + result.getPomFile() + ") has "<a name="line.144"></a>
-<FONT color="green">145</FONT>                    + children.size() + " error" + ( children.size() == 1 ? "" : "s" );<a name="line.145"></a>
-<FONT color="green">146</FONT>    <a name="line.146"></a>
-<FONT color="green">147</FONT>            return new ExceptionSummary( null, message, null, children );<a name="line.147"></a>
-<FONT color="green">148</FONT>        }<a name="line.148"></a>
-<FONT color="green">149</FONT>    <a name="line.149"></a>
-<FONT color="green">150</FONT>        private ExceptionSummary handle( ModelProblem problem, String projectId )<a name="line.150"></a>
-<FONT color="green">151</FONT>        {<a name="line.151"></a>
-<FONT color="green">152</FONT>            if ( ModelProblem.Severity.ERROR.compareTo( problem.getSeverity() ) &gt;= 0 )<a name="line.152"></a>
-<FONT color="green">153</FONT>            {<a name="line.153"></a>
-<FONT color="green">154</FONT>                String message = problem.getMessage();<a name="line.154"></a>
-<FONT color="green">155</FONT>    <a name="line.155"></a>
-<FONT color="green">156</FONT>                String location = ModelProblemUtils.formatLocation( problem, projectId );<a name="line.156"></a>
-<FONT color="green">157</FONT>    <a name="line.157"></a>
-<FONT color="green">158</FONT>                if ( StringUtils.isNotEmpty( location ) )<a name="line.158"></a>
-<FONT color="green">159</FONT>                {<a name="line.159"></a>
-<FONT color="green">160</FONT>                    message += " @ " + location;<a name="line.160"></a>
-<FONT color="green">161</FONT>                }<a name="line.161"></a>
-<FONT color="green">162</FONT>    <a name="line.162"></a>
-<FONT color="green">163</FONT>                return handle( message, problem.getException() );<a name="line.163"></a>
-<FONT color="green">164</FONT>            }<a name="line.164"></a>
-<FONT color="green">165</FONT>            else<a name="line.165"></a>
-<FONT color="green">166</FONT>            {<a name="line.166"></a>
-<FONT color="green">167</FONT>                return null;<a name="line.167"></a>
-<FONT color="green">168</FONT>            }<a name="line.168"></a>
-<FONT color="green">169</FONT>        }<a name="line.169"></a>
-<FONT color="green">170</FONT>    <a name="line.170"></a>
-<FONT color="green">171</FONT>        private String getReference( Throwable exception )<a name="line.171"></a>
-<FONT color="green">172</FONT>        {<a name="line.172"></a>
-<FONT color="green">173</FONT>            String reference = "";<a name="line.173"></a>
-<FONT color="green">174</FONT>    <a name="line.174"></a>
-<FONT color="green">175</FONT>            if ( exception != null )<a name="line.175"></a>
-<FONT color="green">176</FONT>            {<a name="line.176"></a>
-<FONT color="green">177</FONT>                if ( exception instanceof MojoExecutionException )<a name="line.177"></a>
-<FONT color="green">178</FONT>                {<a name="line.178"></a>
-<FONT color="green">179</FONT>                    reference = MojoExecutionException.class.getSimpleName();<a name="line.179"></a>
-<FONT color="green">180</FONT>    <a name="line.180"></a>
-<FONT color="green">181</FONT>                    Throwable cause = exception.getCause();<a name="line.181"></a>
-<FONT color="green">182</FONT>                    if ( cause instanceof IOException )<a name="line.182"></a>
-<FONT color="green">183</FONT>                    {<a name="line.183"></a>
-<FONT color="green">184</FONT>                        cause = cause.getCause();<a name="line.184"></a>
-<FONT color="green">185</FONT>                        if ( cause instanceof ConnectException )<a name="line.185"></a>
-<FONT color="green">186</FONT>                        {<a name="line.186"></a>
-<FONT color="green">187</FONT>                            reference = ConnectException.class.getSimpleName();<a name="line.187"></a>
-<FONT color="green">188</FONT>                        }<a name="line.188"></a>
-<FONT color="green">189</FONT>                    }<a name="line.189"></a>
-<FONT color="green">190</FONT>                }<a name="line.190"></a>
-<FONT color="green">191</FONT>                else if ( exception instanceof MojoFailureException )<a name="line.191"></a>
-<FONT color="green">192</FONT>                {<a name="line.192"></a>
-<FONT color="green">193</FONT>                    reference = MojoFailureException.class.getSimpleName();<a name="line.193"></a>
-<FONT color="green">194</FONT>                }<a name="line.194"></a>
-<FONT color="green">195</FONT>                else if ( exception instanceof LinkageError )<a name="line.195"></a>
-<FONT color="green">196</FONT>                {<a name="line.196"></a>
-<FONT color="green">197</FONT>                    reference = LinkageError.class.getSimpleName();<a name="line.197"></a>
-<FONT color="green">198</FONT>                }<a name="line.198"></a>
-<FONT color="green">199</FONT>                else if ( exception instanceof PluginExecutionException )<a name="line.199"></a>
-<FONT color="green">200</FONT>                {<a name="line.200"></a>
-<FONT color="green">201</FONT>                    reference = getReference( exception.getCause() );<a name="line.201"></a>
-<FONT color="green">202</FONT>    <a name="line.202"></a>
-<FONT color="green">203</FONT>                    if ( StringUtils.isEmpty( reference ) )<a name="line.203"></a>
-<FONT color="green">204</FONT>                    {<a name="line.204"></a>
-<FONT color="green">205</FONT>                        reference = exception.getClass().getSimpleName();<a name="line.205"></a>
-<FONT color="green">206</FONT>                    }<a name="line.206"></a>
-<FONT color="green">207</FONT>                }<a name="line.207"></a>
-<FONT color="green">208</FONT>                else if ( exception instanceof LifecycleExecutionException )<a name="line.208"></a>
-<FONT color="green">209</FONT>                {<a name="line.209"></a>
-<FONT color="green">210</FONT>                    reference = getReference( exception.getCause() );<a name="line.210"></a>
-<FONT color="green">211</FONT>                }<a name="line.211"></a>
-<FONT color="green">212</FONT>                else if ( isNoteworthyException( exception ) )<a name="line.212"></a>
-<FONT color="green">213</FONT>                {<a name="line.213"></a>
-<FONT color="green">214</FONT>                    reference = exception.getClass().getSimpleName();<a name="line.214"></a>
-<FONT color="green">215</FONT>                }<a name="line.215"></a>
-<FONT color="green">216</FONT>            }<a name="line.216"></a>
-<FONT color="green">217</FONT>    <a name="line.217"></a>
-<FONT color="green">218</FONT>            if ( StringUtils.isNotEmpty( reference ) &amp;&amp; !reference.startsWith( "http:" ) )<a name="line.218"></a>
-<FONT color="green">219</FONT>            {<a name="line.219"></a>
-<FONT color="green">220</FONT>                reference = "http://cwiki.apache.org/confluence/display/MAVEN/" + reference;<a name="line.220"></a>
-<FONT color="green">221</FONT>            }<a name="line.221"></a>
-<FONT color="green">222</FONT>    <a name="line.222"></a>
-<FONT color="green">223</FONT>            return reference;<a name="line.223"></a>
-<FONT color="green">224</FONT>        }<a name="line.224"></a>
-<FONT color="green">225</FONT>    <a name="line.225"></a>
-<FONT color="green">226</FONT>        private boolean isNoteworthyException( Throwable exception )<a name="line.226"></a>
-<FONT color="green">227</FONT>        {<a name="line.227"></a>
-<FONT color="green">228</FONT>            if ( exception == null )<a name="line.228"></a>
-<FONT color="green">229</FONT>            {<a name="line.229"></a>
-<FONT color="green">230</FONT>                return false;<a name="line.230"></a>
-<FONT color="green">231</FONT>            }<a name="line.231"></a>
-<FONT color="green">232</FONT>            else if ( exception instanceof Error )<a name="line.232"></a>
-<FONT color="green">233</FONT>            {<a name="line.233"></a>
-<FONT color="green">234</FONT>                return true;<a name="line.234"></a>
-<FONT color="green">235</FONT>            }<a name="line.235"></a>
-<FONT color="green">236</FONT>            else if ( exception instanceof RuntimeException )<a name="line.236"></a>
-<FONT color="green">237</FONT>            {<a name="line.237"></a>
-<FONT color="green">238</FONT>                return false;<a name="line.238"></a>
-<FONT color="green">239</FONT>            }<a name="line.239"></a>
-<FONT color="green">240</FONT>            else if ( exception.getClass().getName().startsWith( "java" ) )<a name="line.240"></a>
-<FONT color="green">241</FONT>            {<a name="line.241"></a>
-<FONT color="green">242</FONT>                return false;<a name="line.242"></a>
-<FONT color="green">243</FONT>            }<a name="line.243"></a>
-<FONT color="green">244</FONT>            return true;<a name="line.244"></a>
-<FONT color="green">245</FONT>        }<a name="line.245"></a>
-<FONT color="green">246</FONT>    <a name="line.246"></a>
-<FONT color="green">247</FONT>        private String getMessage( String message, Throwable exception )<a name="line.247"></a>
-<FONT color="green">248</FONT>        {<a name="line.248"></a>
-<FONT color="green">249</FONT>            String fullMessage = ( message != null ) ? message : "";<a name="line.249"></a>
-<FONT color="green">250</FONT>    <a name="line.250"></a>
-<FONT color="green">251</FONT>            for ( Throwable t = exception; t != null; t = t.getCause() )<a name="line.251"></a>
-<FONT color="green">252</FONT>            {<a name="line.252"></a>
-<FONT color="green">253</FONT>                String exceptionMessage = t.getMessage();<a name="line.253"></a>
-<FONT color="green">254</FONT>    <a name="line.254"></a>
-<FONT color="green">255</FONT>                if ( t instanceof AbstractMojoExecutionException )<a name="line.255"></a>
-<FONT color="green">256</FONT>                {<a name="line.256"></a>
-<FONT color="green">257</FONT>                    String longMessage = ( (AbstractMojoExecutionException) t ).getLongMessage();<a name="line.257"></a>
-<FONT color="green">258</FONT>                    if ( StringUtils.isNotEmpty( longMessage ) )<a name="line.258"></a>
-<FONT color="green">259</FONT>                    {<a name="line.259"></a>
-<FONT color="green">260</FONT>                        if ( StringUtils.isEmpty( exceptionMessage ) || longMessage.contains( exceptionMessage ) )<a name="line.260"></a>
-<FONT color="green">261</FONT>                        {<a name="line.261"></a>
-<FONT color="green">262</FONT>                            exceptionMessage = longMessage;<a name="line.262"></a>
-<FONT color="green">263</FONT>                        }<a name="line.263"></a>
-<FONT color="green">264</FONT>                        else if ( !exceptionMessage.contains( longMessage ) )<a name="line.264"></a>
-<FONT color="green">265</FONT>                        {<a name="line.265"></a>
-<FONT color="green">266</FONT>                            exceptionMessage = join( exceptionMessage, '\n' + longMessage );<a name="line.266"></a>
-<FONT color="green">267</FONT>                        }<a name="line.267"></a>
-<FONT color="green">268</FONT>                    }<a name="line.268"></a>
-<FONT color="green">269</FONT>                }<a name="line.269"></a>
-<FONT color="green">270</FONT>    <a name="line.270"></a>
-<FONT color="green">271</FONT>                if ( StringUtils.isEmpty( exceptionMessage ) )<a name="line.271"></a>
-<FONT color="green">272</FONT>                {<a name="line.272"></a>
-<FONT color="green">273</FONT>                    exceptionMessage = t.getClass().getSimpleName();<a name="line.273"></a>
-<FONT color="green">274</FONT>                }<a name="line.274"></a>
-<FONT color="green">275</FONT>    <a name="line.275"></a>
-<FONT color="green">276</FONT>                if ( t instanceof UnknownHostException &amp;&amp; !fullMessage.contains( "host" ) )<a name="line.276"></a>
-<FONT color="green">277</FONT>                {<a name="line.277"></a>
-<FONT color="green">278</FONT>                    fullMessage = join( fullMessage, "Unknown host " + exceptionMessage );<a name="line.278"></a>
-<FONT color="green">279</FONT>                }<a name="line.279"></a>
-<FONT color="green">280</FONT>                else if ( !fullMessage.contains( exceptionMessage ) )<a name="line.280"></a>
-<FONT color="green">281</FONT>                {<a name="line.281"></a>
-<FONT color="green">282</FONT>                    fullMessage = join( fullMessage, exceptionMessage );<a name="line.282"></a>
-<FONT color="green">283</FONT>                }<a name="line.283"></a>
-<FONT color="green">284</FONT>            }<a name="line.284"></a>
-<FONT color="green">285</FONT>    <a name="line.285"></a>
-<FONT color="green">286</FONT>            return fullMessage.trim();<a name="line.286"></a>
-<FONT color="green">287</FONT>        }<a name="line.287"></a>
-<FONT color="green">288</FONT>    <a name="line.288"></a>
-<FONT color="green">289</FONT>        private String join( String message1, String message2 )<a name="line.289"></a>
-<FONT color="green">290</FONT>        {<a name="line.290"></a>
-<FONT color="green">291</FONT>            String message = "";<a name="line.291"></a>
+<FONT color="green">034</FONT>    import org.apache.maven.plugin.PluginContainerException;<a name="line.34"></a>
+<FONT color="green">035</FONT>    import org.apache.maven.plugin.PluginExecutionException;<a name="line.35"></a>
+<FONT color="green">036</FONT>    import org.apache.maven.project.ProjectBuildingException;<a name="line.36"></a>
+<FONT color="green">037</FONT>    import org.apache.maven.project.ProjectBuildingResult;<a name="line.37"></a>
+<FONT color="green">038</FONT>    import org.codehaus.plexus.component.annotations.Component;<a name="line.38"></a>
+<FONT color="green">039</FONT>    import org.codehaus.plexus.util.StringUtils;<a name="line.39"></a>
+<FONT color="green">040</FONT>    <a name="line.40"></a>
+<FONT color="green">041</FONT>    /*<a name="line.41"></a>
+<FONT color="green">042</FONT>    <a name="line.42"></a>
+<FONT color="green">043</FONT>    - test projects for each of these<a name="line.43"></a>
+<FONT color="green">044</FONT>    - how to categorize the problems so that the id of the problem can be match to a page with descriptive help and the test<a name="line.44"></a>
+<FONT color="green">045</FONT>      project<a name="line.45"></a>
+<FONT color="green">046</FONT>    - nice little sample projects that could be run in the core as well as integration tests<a name="line.46"></a>
+<FONT color="green">047</FONT>    <a name="line.47"></a>
+<FONT color="green">048</FONT>    All Possible Errors<a name="line.48"></a>
+<FONT color="green">049</FONT>    - invalid lifecycle phase (maybe same as bad CLI param, though you were talking about embedder too)<a name="line.49"></a>
+<FONT color="green">050</FONT>    - &lt;module&gt; specified is not found<a name="line.50"></a>
+<FONT color="green">051</FONT>    - malformed settings<a name="line.51"></a>
+<FONT color="green">052</FONT>    - malformed POM<a name="line.52"></a>
+<FONT color="green">053</FONT>    - local repository not writable<a name="line.53"></a>
+<FONT color="green">054</FONT>    - remote repositories not available<a name="line.54"></a>
+<FONT color="green">055</FONT>    - artifact metadata missing<a name="line.55"></a>
+<FONT color="green">056</FONT>    - extension metadata missing<a name="line.56"></a>
+<FONT color="green">057</FONT>    - extension artifact missing<a name="line.57"></a>
+<FONT color="green">058</FONT>    - artifact metadata retrieval problem<a name="line.58"></a>
+<FONT color="green">059</FONT>    - version range violation<a name="line.59"></a>
+<FONT color="green">060</FONT>    - circular dependency<a name="line.60"></a>
+<FONT color="green">061</FONT>    - artifact missing<a name="line.61"></a>
+<FONT color="green">062</FONT>    - artifact retrieval exception<a name="line.62"></a>
+<FONT color="green">063</FONT>    - md5 checksum doesn't match for local artifact, need to redownload this<a name="line.63"></a>
+<FONT color="green">064</FONT>    - POM doesn't exist for a goal that requires one<a name="line.64"></a>
+<FONT color="green">065</FONT>    - parent POM missing (in both the repository + relative path)<a name="line.65"></a>
+<FONT color="green">066</FONT>    - component not found<a name="line.66"></a>
+<FONT color="green">067</FONT>    <a name="line.67"></a>
+<FONT color="green">068</FONT>    Plugins:<a name="line.68"></a>
+<FONT color="green">069</FONT>    - plugin metadata missing<a name="line.69"></a>
+<FONT color="green">070</FONT>    - plugin metadata retrieval problem<a name="line.70"></a>
+<FONT color="green">071</FONT>    - plugin artifact missing<a name="line.71"></a>
+<FONT color="green">072</FONT>    - plugin artifact retrieval problem<a name="line.72"></a>
+<FONT color="green">073</FONT>    - plugin dependency metadata missing<a name="line.73"></a>
+<FONT color="green">074</FONT>    - plugin dependency metadata retrieval problem<a name="line.74"></a>
+<FONT color="green">075</FONT>    - plugin configuration problem<a name="line.75"></a>
+<FONT color="green">076</FONT>    - plugin execution failure due to something that is know to possibly go wrong (like compilation failure)<a name="line.76"></a>
+<FONT color="green">077</FONT>    - plugin execution error due to something that is not expected to go wrong (the compiler executable missing)<a name="line.77"></a>
+<FONT color="green">078</FONT>    - asking to use a plugin for which you do not have a version defined - tools to easily select versions<a name="line.78"></a>
+<FONT color="green">079</FONT>    - goal not found in a plugin (probably could list the ones that are)<a name="line.79"></a>
+<FONT color="green">080</FONT>    <a name="line.80"></a>
+<FONT color="green">081</FONT>     */<a name="line.81"></a>
+<FONT color="green">082</FONT>    <a name="line.82"></a>
+<FONT color="green">083</FONT>    //PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, CycleDetectedInPluginGraphException;<a name="line.83"></a>
+<FONT color="green">084</FONT>    <a name="line.84"></a>
+<FONT color="green">085</FONT>    @Component( role = ExceptionHandler.class )<a name="line.85"></a>
+<FONT color="green">086</FONT>    public class DefaultExceptionHandler<a name="line.86"></a>
+<FONT color="green">087</FONT>        implements ExceptionHandler<a name="line.87"></a>
+<FONT color="green">088</FONT>    {<a name="line.88"></a>
+<FONT color="green">089</FONT>    <a name="line.89"></a>
+<FONT color="green">090</FONT>        public ExceptionSummary handleException( Throwable exception )<a name="line.90"></a>
+<FONT color="green">091</FONT>        {<a name="line.91"></a>
+<FONT color="green">092</FONT>            return handle( "", exception );<a name="line.92"></a>
+<FONT color="green">093</FONT>        }<a name="line.93"></a>
+<FONT color="green">094</FONT>    <a name="line.94"></a>
+<FONT color="green">095</FONT>        private ExceptionSummary handle( String message, Throwable exception )<a name="line.95"></a>
+<FONT color="green">096</FONT>        {<a name="line.96"></a>
+<FONT color="green">097</FONT>            String reference = getReference( exception );<a name="line.97"></a>
+<FONT color="green">098</FONT>    <a name="line.98"></a>
+<FONT color="green">099</FONT>            List&lt;ExceptionSummary&gt; children = null;<a name="line.99"></a>
+<FONT color="green">100</FONT>    <a name="line.100"></a>
+<FONT color="green">101</FONT>            if ( exception instanceof ProjectBuildingException )<a name="line.101"></a>
+<FONT color="green">102</FONT>            {<a name="line.102"></a>
+<FONT color="green">103</FONT>                List&lt;ProjectBuildingResult&gt; results = ( (ProjectBuildingException) exception ).getResults();<a name="line.103"></a>
+<FONT color="green">104</FONT>    <a name="line.104"></a>
+<FONT color="green">105</FONT>                children = new ArrayList&lt;ExceptionSummary&gt;();<a name="line.105"></a>
+<FONT color="green">106</FONT>    <a name="line.106"></a>
+<FONT color="green">107</FONT>                for ( ProjectBuildingResult result : results )<a name="line.107"></a>
+<FONT color="green">108</FONT>                {<a name="line.108"></a>
+<FONT color="green">109</FONT>                    ExceptionSummary child = handle( result );<a name="line.109"></a>
+<FONT color="green">110</FONT>                    if ( child != null )<a name="line.110"></a>
+<FONT color="green">111</FONT>                    {<a name="line.111"></a>
+<FONT color="green">112</FONT>                        children.add( child );<a name="line.112"></a>
+<FONT color="green">113</FONT>                    }<a name="line.113"></a>
+<FONT color="green">114</FONT>                }<a name="line.114"></a>
+<FONT color="green">115</FONT>    <a name="line.115"></a>
+<FONT color="green">116</FONT>                message = "The build could not read " + children.size() + " project" + ( children.size() == 1 ? "" : "s" );<a name="line.116"></a>
+<FONT color="green">117</FONT>            }<a name="line.117"></a>
+<FONT color="green">118</FONT>            else<a name="line.118"></a>
+<FONT color="green">119</FONT>            {<a name="line.119"></a>
+<FONT color="green">120</FONT>                message = getMessage( message, exception );<a name="line.120"></a>
+<FONT color="green">121</FONT>            }<a name="line.121"></a>
+<FONT color="green">122</FONT>    <a name="line.122"></a>
+<FONT color="green">123</FONT>            return new ExceptionSummary( exception, message, reference, children );<a name="line.123"></a>
+<FONT color="green">124</FONT>        }<a name="line.124"></a>
+<FONT color="green">125</FONT>    <a name="line.125"></a>
+<FONT color="green">126</FONT>        private ExceptionSummary handle( ProjectBuildingResult result )<a name="line.126"></a>
+<FONT color="green">127</FONT>        {<a name="line.127"></a>
+<FONT color="green">128</FONT>            List&lt;ExceptionSummary&gt; children = new ArrayList&lt;ExceptionSummary&gt;();<a name="line.128"></a>
+<FONT color="green">129</FONT>    <a name="line.129"></a>
+<FONT color="green">130</FONT>            for ( ModelProblem problem : result.getProblems() )<a name="line.130"></a>
+<FONT color="green">131</FONT>            {<a name="line.131"></a>
+<FONT color="green">132</FONT>                ExceptionSummary child = handle( problem, result.getProjectId() );<a name="line.132"></a>
+<FONT color="green">133</FONT>                if ( child != null )<a name="line.133"></a>
+<FONT color="green">134</FONT>                {<a name="line.134"></a>
+<FONT color="green">135</FONT>                    children.add( child );<a name="line.135"></a>
+<FONT color="green">136</FONT>                }<a name="line.136"></a>
+<FONT color="green">137</FONT>            }<a name="line.137"></a>
+<FONT color="green">138</FONT>    <a name="line.138"></a>
+<FONT color="green">139</FONT>            if ( children.isEmpty() )<a name="line.139"></a>
+<FONT color="green">140</FONT>            {<a name="line.140"></a>
+<FONT color="green">141</FONT>                return null;<a name="line.141"></a>
+<FONT color="green">142</FONT>            }<a name="line.142"></a>
+<FONT color="green">143</FONT>    <a name="line.143"></a>
+<FONT color="green">144</FONT>            String message =<a name="line.144"></a>
+<FONT color="green">145</FONT>                "\nThe project " + result.getProjectId() + " (" + result.getPomFile() + ") has "<a name="line.145"></a>
+<FONT color="green">146</FONT>                    + children.size() + " error" + ( children.size() == 1 ? "" : "s" );<a name="line.146"></a>
+<FONT color="green">147</FONT>    <a name="line.147"></a>
+<FONT color="green">148</FONT>            return new ExceptionSummary( null, message, null, children );<a name="line.148"></a>
+<FONT color="green">149</FONT>        }<a name="line.149"></a>
+<FONT color="green">150</FONT>    <a name="line.150"></a>
+<FONT color="green">151</FONT>        private ExceptionSummary handle( ModelProblem problem, String projectId )<a name="line.151"></a>
+<FONT color="green">152</FONT>        {<a name="line.152"></a>
+<FONT color="green">153</FONT>            if ( ModelProblem.Severity.ERROR.compareTo( problem.getSeverity() ) &gt;= 0 )<a name="line.153"></a>
+<FONT color="green">154</FONT>            {<a name="line.154"></a>
+<FONT color="green">155</FONT>                String message = problem.getMessage();<a name="line.155"></a>
+<FONT color="green">156</FONT>    <a name="line.156"></a>
+<FONT color="green">157</FONT>                String location = ModelProblemUtils.formatLocation( problem, projectId );<a name="line.157"></a>
+<FONT color="green">158</FONT>    <a name="line.158"></a>
+<FONT color="green">159</FONT>                if ( StringUtils.isNotEmpty( location ) )<a name="line.159"></a>
+<FONT color="green">160</FONT>                {<a name="line.160"></a>
+<FONT color="green">161</FONT>                    message += " @ " + location;<a name="line.161"></a>
+<FONT color="green">162</FONT>                }<a name="line.162"></a>
+<FONT color="green">163</FONT>    <a name="line.163"></a>
+<FONT color="green">164</FONT>                return handle( message, problem.getException() );<a name="line.164"></a>
+<FONT color="green">165</FONT>            }<a name="line.165"></a>
+<FONT color="green">166</FONT>            else<a name="line.166"></a>
+<FONT color="green">167</FONT>            {<a name="line.167"></a>
+<FONT color="green">168</FONT>                return null;<a name="line.168"></a>
+<FONT color="green">169</FONT>            }<a name="line.169"></a>
+<FONT color="green">170</FONT>        }<a name="line.170"></a>
+<FONT color="green">171</FONT>    <a name="line.171"></a>
+<FONT color="green">172</FONT>        private String getReference( Throwable exception )<a name="line.172"></a>
+<FONT color="green">173</FONT>        {<a name="line.173"></a>
+<FONT color="green">174</FONT>            String reference = "";<a name="line.174"></a>
+<FONT color="green">175</FONT>    <a name="line.175"></a>
+<FONT color="green">176</FONT>            if ( exception != null )<a name="line.176"></a>
+<FONT color="green">177</FONT>            {<a name="line.177"></a>
+<FONT color="green">178</FONT>                if ( exception instanceof MojoExecutionException )<a name="line.178"></a>
+<FONT color="green">179</FONT>                {<a name="line.179"></a>
+<FONT color="green">180</FONT>                    reference = MojoExecutionException.class.getSimpleName();<a name="line.180"></a>
+<FONT color="green">181</FONT>    <a name="line.181"></a>
+<FONT color="green">182</FONT>                    Throwable cause = exception.getCause();<a name="line.182"></a>
+<FONT color="green">183</FONT>                    if ( cause instanceof IOException )<a name="line.183"></a>
+<FONT color="green">184</FONT>                    {<a name="line.184"></a>
+<FONT color="green">185</FONT>                        cause = cause.getCause();<a name="line.185"></a>
+<FONT color="green">186</FONT>                        if ( cause instanceof ConnectException )<a name="line.186"></a>
+<FONT color="green">187</FONT>                        {<a name="line.187"></a>
+<FONT color="green">188</FONT>                            reference = ConnectException.class.getSimpleName();<a name="line.188"></a>
+<FONT color="green">189</FONT>                        }<a name="line.189"></a>
+<FONT color="green">190</FONT>                    }<a name="line.190"></a>
+<FONT color="green">191</FONT>                }<a name="line.191"></a>
+<FONT color="green">192</FONT>                else if ( exception instanceof MojoFailureException )<a name="line.192"></a>
+<FONT color="green">193</FONT>                {<a name="line.193"></a>
+<FONT color="green">194</FONT>                    reference = MojoFailureException.class.getSimpleName();<a name="line.194"></a>
+<FONT color="green">195</FONT>                }<a name="line.195"></a>
+<FONT color="green">196</FONT>                else if ( exception instanceof LinkageError )<a name="line.196"></a>
+<FONT color="green">197</FONT>                {<a name="line.197"></a>
+<FONT color="green">198</FONT>                    reference = LinkageError.class.getSimpleName();<a name="line.198"></a>
+<FONT color="green">199</FONT>                }<a name="line.199"></a>
+<FONT color="green">200</FONT>                else if ( exception instanceof PluginExecutionException )<a name="line.200"></a>
+<FONT color="green">201</FONT>                {<a name="line.201"></a>
+<FONT color="green">202</FONT>                    Throwable cause = exception.getCause();<a name="line.202"></a>
+<FONT color="green">203</FONT>    <a name="line.203"></a>
+<FONT color="green">204</FONT>                    if ( cause instanceof PluginContainerException )<a name="line.204"></a>
+<FONT color="green">205</FONT>                    {<a name="line.205"></a>
+<FONT color="green">206</FONT>                        Throwable cause2 = cause.getCause();<a name="line.206"></a>
+<FONT color="green">207</FONT>    <a name="line.207"></a>
+<FONT color="green">208</FONT>                        if ( cause2 instanceof NoClassDefFoundError<a name="line.208"></a>
+<FONT color="green">209</FONT>                            &amp;&amp; cause2.getMessage().contains( "org/sonatype/aether/" ) )<a name="line.209"></a>
+<FONT color="green">210</FONT>                        {<a name="line.210"></a>
+<FONT color="green">211</FONT>                            reference = "AetherClassNotFound";<a name="line.211"></a>
+<FONT color="green">212</FONT>                        }<a name="line.212"></a>
+<FONT color="green">213</FONT>                    }<a name="line.213"></a>
+<FONT color="green">214</FONT>    <a name="line.214"></a>
+<FONT color="green">215</FONT>                    if ( StringUtils.isEmpty( reference ) )<a name="line.215"></a>
+<FONT color="green">216</FONT>                    {<a name="line.216"></a>
+<FONT color="green">217</FONT>                        reference = getReference( cause );<a name="line.217"></a>
+<FONT color="green">218</FONT>                    }<a name="line.218"></a>
+<FONT color="green">219</FONT>    <a name="line.219"></a>
+<FONT color="green">220</FONT>                    if ( StringUtils.isEmpty( reference ) )<a name="line.220"></a>
+<FONT color="green">221</FONT>                    {<a name="line.221"></a>
+<FONT color="green">222</FONT>                        reference = exception.getClass().getSimpleName();<a name="line.222"></a>
+<FONT color="green">223</FONT>                    }<a name="line.223"></a>
+<FONT color="green">224</FONT>                }<a name="line.224"></a>
+<FONT color="green">225</FONT>                else if ( exception instanceof LifecycleExecutionException )<a name="line.225"></a>
+<FONT color="green">226</FONT>                {<a name="line.226"></a>
+<FONT color="green">227</FONT>                    reference = getReference( exception.getCause() );<a name="line.227"></a>
+<FONT color="green">228</FONT>                }<a name="line.228"></a>
+<FONT color="green">229</FONT>                else if ( isNoteworthyException( exception ) )<a name="line.229"></a>
+<FONT color="green">230</FONT>                {<a name="line.230"></a>
+<FONT color="green">231</FONT>                    reference = exception.getClass().getSimpleName();<a name="line.231"></a>
+<FONT color="green">232</FONT>                }<a name="line.232"></a>
+<FONT color="green">233</FONT>            }<a name="line.233"></a>
+<FONT color="green">234</FONT>    <a name="line.234"></a>
+<FONT color="green">235</FONT>            if ( StringUtils.isNotEmpty( reference ) &amp;&amp; !reference.startsWith( "http:" ) )<a name="line.235"></a>
+<FONT color="green">236</FONT>            {<a name="line.236"></a>
+<FONT color="green">237</FONT>                reference = "http://cwiki.apache.org/confluence/display/MAVEN/" + reference;<a name="line.237"></a>
+<FONT color="green">238</FONT>            }<a name="line.238"></a>
+<FONT color="green">239</FONT>    <a name="line.239"></a>
+<FONT color="green">240</FONT>            return reference;<a name="line.240"></a>
+<FONT color="green">241</FONT>        }<a name="line.241"></a>
+<FONT color="green">242</FONT>    <a name="line.242"></a>
+<FONT color="green">243</FONT>        private boolean isNoteworthyException( Throwable exception )<a name="line.243"></a>
+<FONT color="green">244</FONT>        {<a name="line.244"></a>
+<FONT color="green">245</FONT>            if ( exception == null )<a name="line.245"></a>
+<FONT color="green">246</FONT>            {<a name="line.246"></a>
+<FONT color="green">247</FONT>                return false;<a name="line.247"></a>
+<FONT color="green">248</FONT>            }<a name="line.248"></a>
+<FONT color="green">249</FONT>            else if ( exception instanceof Error )<a name="line.249"></a>
+<FONT color="green">250</FONT>            {<a name="line.250"></a>
+<FONT color="green">251</FONT>                return true;<a name="line.251"></a>
+<FONT color="green">252</FONT>            }<a name="line.252"></a>
+<FONT color="green">253</FONT>            else if ( exception instanceof RuntimeException )<a name="line.253"></a>
+<FONT color="green">254</FONT>            {<a name="line.254"></a>
+<FONT color="green">255</FONT>                return false;<a name="line.255"></a>
+<FONT color="green">256</FONT>            }<a name="line.256"></a>
+<FONT color="green">257</FONT>            else if ( exception.getClass().getName().startsWith( "java" ) )<a name="line.257"></a>
+<FONT color="green">258</FONT>            {<a name="line.258"></a>
+<FONT color="green">259</FONT>                return false;<a name="line.259"></a>
+<FONT color="green">260</FONT>            }<a name="line.260"></a>
+<FONT color="green">261</FONT>            return true;<a name="line.261"></a>
+<FONT color="green">262</FONT>        }<a name="line.262"></a>
+<FONT color="green">263</FONT>    <a name="line.263"></a>
+<FONT color="green">264</FONT>        private String getMessage( String message, Throwable exception )<a name="line.264"></a>
+<FONT color="green">265</FONT>        {<a name="line.265"></a>
+<FONT color="green">266</FONT>            String fullMessage = ( message != null ) ? message : "";<a name="line.266"></a>
+<FONT color="green">267</FONT>    <a name="line.267"></a>
+<FONT color="green">268</FONT>            for ( Throwable t = exception; t != null; t = t.getCause() )<a name="line.268"></a>
+<FONT color="green">269</FONT>            {<a name="line.269"></a>
+<FONT color="green">270</FONT>                String exceptionMessage = t.getMessage();<a name="line.270"></a>
+<FONT color="green">271</FONT>    <a name="line.271"></a>
+<FONT color="green">272</FONT>                if ( t instanceof AbstractMojoExecutionException )<a name="line.272"></a>
+<FONT color="green">273</FONT>                {<a name="line.273"></a>
+<FONT color="green">274</FONT>                    String longMessage = ( (AbstractMojoExecutionException) t ).getLongMessage();<a name="line.274"></a>
+<FONT color="green">275</FONT>                    if ( StringUtils.isNotEmpty( longMessage ) )<a name="line.275"></a>
+<FONT color="green">276</FONT>                    {<a name="line.276"></a>
+<FONT color="green">277</FONT>                        if ( StringUtils.isEmpty( exceptionMessage ) || longMessage.contains( exceptionMessage ) )<a name="line.277"></a>
+<FONT color="green">278</FONT>                        {<a name="line.278"></a>
+<FONT color="green">279</FONT>                            exceptionMessage = longMessage;<a name="line.279"></a>
+<FONT color="green">280</FONT>                        }<a name="line.280"></a>
+<FONT color="green">281</FONT>                        else if ( !exceptionMessage.contains( longMessage ) )<a name="line.281"></a>
+<FONT color="green">282</FONT>                        {<a name="line.282"></a>
+<FONT color="green">283</FONT>                            exceptionMessage = join( exceptionMessage, '\n' + longMessage );<a name="line.283"></a>
+<FONT color="green">284</FONT>                        }<a name="line.284"></a>
+<FONT color="green">285</FONT>                    }<a name="line.285"></a>
+<FONT color="green">286</FONT>                }<a name="line.286"></a>
+<FONT color="green">287</FONT>    <a name="line.287"></a>
+<FONT color="green">288</FONT>                if ( StringUtils.isEmpty( exceptionMessage ) )<a name="line.288"></a>
+<FONT color="green">289</FONT>                {<a name="line.289"></a>
+<FONT color="green">290</FONT>                    exceptionMessage = t.getClass().getSimpleName();<a name="line.290"></a>
+<FONT color="green">291</FONT>                }<a name="line.291"></a>
 <FONT color="green">292</FONT>    <a name="line.292"></a>
-<FONT color="green">293</FONT>            if ( StringUtils.isNotEmpty( message1 ) )<a name="line.293"></a>
-<FONT color="green">294</FONT>            {<a name="line.294"></a>
-<FONT color="green">295</FONT>                message = message1.trim();<a name="line.295"></a>
-<FONT color="green">296</FONT>            }<a name="line.296"></a>
-<FONT color="green">297</FONT>    <a name="line.297"></a>
-<FONT color="green">298</FONT>            if ( StringUtils.isNotEmpty( message2 ) )<a name="line.298"></a>
-<FONT color="green">299</FONT>            {<a name="line.299"></a>
-<FONT color="green">300</FONT>                if ( StringUtils.isNotEmpty( message ) )<a name="line.300"></a>
-<FONT color="green">301</FONT>                {<a name="line.301"></a>
-<FONT color="green">302</FONT>                    if ( message.endsWith( "." ) || message.endsWith( "!" ) || message.endsWith( ":" ) )<a name="line.302"></a>
-<FONT color="green">303</FONT>                    {<a name="line.303"></a>
-<FONT color="green">304</FONT>                        message += " ";<a name="line.304"></a>
-<FONT color="green">305</FONT>                    }<a name="line.305"></a>
-<FONT color="green">306</FONT>                    else<a name="line.306"></a>
-<FONT color="green">307</FONT>                    {<a name="line.307"></a>
-<FONT color="green">308</FONT>                        message += ": ";<a name="line.308"></a>
-<FONT color="green">309</FONT>                    }<a name="line.309"></a>
-<FONT color="green">310</FONT>                }<a name="line.310"></a>
-<FONT color="green">311</FONT>    <a name="line.311"></a>
-<FONT color="green">312</FONT>                message += message2;<a name="line.312"></a>
+<FONT color="green">293</FONT>                if ( t instanceof UnknownHostException &amp;&amp; !fullMessage.contains( "host" ) )<a name="line.293"></a>
+<FONT color="green">294</FONT>                {<a name="line.294"></a>
+<FONT color="green">295</FONT>                    fullMessage = join( fullMessage, "Unknown host " + exceptionMessage );<a name="line.295"></a>
+<FONT color="green">296</FONT>                }<a name="line.296"></a>
+<FONT color="green">297</FONT>                else if ( !fullMessage.contains( exceptionMessage ) )<a name="line.297"></a>
+<FONT color="green">298</FONT>                {<a name="line.298"></a>
+<FONT color="green">299</FONT>                    fullMessage = join( fullMessage, exceptionMessage );<a name="line.299"></a>
+<FONT color="green">300</FONT>                }<a name="line.300"></a>
+<FONT color="green">301</FONT>            }<a name="line.301"></a>
+<FONT color="green">302</FONT>    <a name="line.302"></a>
+<FONT color="green">303</FONT>            return fullMessage.trim();<a name="line.303"></a>
+<FONT color="green">304</FONT>        }<a name="line.304"></a>
+<FONT color="green">305</FONT>    <a name="line.305"></a>
+<FONT color="green">306</FONT>        private String join( String message1, String message2 )<a name="line.306"></a>
+<FONT color="green">307</FONT>        {<a name="line.307"></a>
+<FONT color="green">308</FONT>            String message = "";<a name="line.308"></a>
+<FONT color="green">309</FONT>    <a name="line.309"></a>
+<FONT color="green">310</FONT>            if ( StringUtils.isNotEmpty( message1 ) )<a name="line.310"></a>
+<FONT color="green">311</FONT>            {<a name="line.311"></a>
+<FONT color="green">312</FONT>                message = message1.trim();<a name="line.312"></a>
 <FONT color="green">313</FONT>            }<a name="line.313"></a>
 <FONT color="green">314</FONT>    <a name="line.314"></a>
-<FONT color="green">315</FONT>            return message;<a name="line.315"></a>
-<FONT color="green">316</FONT>        }<a name="line.316"></a>
-<FONT color="green">317</FONT>    <a name="line.317"></a>
-<FONT color="green">318</FONT>    }<a name="line.318"></a>
+<FONT color="green">315</FONT>            if ( StringUtils.isNotEmpty( message2 ) )<a name="line.315"></a>
+<FONT color="green">316</FONT>            {<a name="line.316"></a>
+<FONT color="green">317</FONT>                if ( StringUtils.isNotEmpty( message ) )<a name="line.317"></a>
+<FONT color="green">318</FONT>                {<a name="line.318"></a>
+<FONT color="green">319</FONT>                    if ( message.endsWith( "." ) || message.endsWith( "!" ) || message.endsWith( ":" ) )<a name="line.319"></a>
+<FONT color="green">320</FONT>                    {<a name="line.320"></a>
+<FONT color="green">321</FONT>                        message += " ";<a name="line.321"></a>
+<FONT color="green">322</FONT>                    }<a name="line.322"></a>
+<FONT color="green">323</FONT>                    else<a name="line.323"></a>
+<FONT color="green">324</FONT>                    {<a name="line.324"></a>
+<FONT color="green">325</FONT>                        message += ": ";<a name="line.325"></a>
+<FONT color="green">326</FONT>                    }<a name="line.326"></a>
+<FONT color="green">327</FONT>                }<a name="line.327"></a>
+<FONT color="green">328</FONT>    <a name="line.328"></a>
+<FONT color="green">329</FONT>                message += message2;<a name="line.329"></a>
+<FONT color="green">330</FONT>            }<a name="line.330"></a>
+<FONT color="green">331</FONT>    <a name="line.331"></a>
+<FONT color="green">332</FONT>            return message;<a name="line.332"></a>
+<FONT color="green">333</FONT>        }<a name="line.333"></a>
+<FONT color="green">334</FONT>    <a name="line.334"></a>
+<FONT color="green">335</FONT>    }<a name="line.335"></a>
 
 
 

Modified: websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/execution/MavenExecutionRequest.html
==============================================================================
--- websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/execution/MavenExecutionRequest.html (original)
+++ websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/execution/MavenExecutionRequest.html Sun Jun  2 08:01:23 2013
@@ -264,7 +264,7 @@
 <FONT color="green">261</FONT>         * mirrors then it's easier to just replace the whole list with a new list of transformed repositories.<a name="line.261"></a>
 <FONT color="green">262</FONT>         *<a name="line.262"></a>
 <FONT color="green">263</FONT>         * @param repositories<a name="line.263"></a>
-<FONT color="green">264</FONT>         * @return<a name="line.264"></a>
+<FONT color="green">264</FONT>         * @return This request, never {@code null}.<a name="line.264"></a>
 <FONT color="green">265</FONT>         */<a name="line.265"></a>
 <FONT color="green">266</FONT>        MavenExecutionRequest setRemoteRepositories( List&lt;ArtifactRepository&gt; repositories );<a name="line.266"></a>
 <FONT color="green">267</FONT>        List&lt;ArtifactRepository&gt; getRemoteRepositories();<a name="line.267"></a>

Modified: websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/plugin/DefaultBuildPluginManager.html
==============================================================================
--- websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/plugin/DefaultBuildPluginManager.html (original)
+++ websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/plugin/DefaultBuildPluginManager.html Sun Jun  2 08:01:23 2013
@@ -54,145 +54,146 @@
 <FONT color="green">051</FONT>        /**<a name="line.51"></a>
 <FONT color="green">052</FONT>         * <a name="line.52"></a>
 <FONT color="green">053</FONT>         * @param plugin<a name="line.53"></a>
-<FONT color="green">054</FONT>         * @param repositoryRequest<a name="line.54"></a>
-<FONT color="green">055</FONT>         * @return PluginDescriptor The component descriptor for the Maven plugin.<a name="line.55"></a>
-<FONT color="green">056</FONT>         * @throws PluginNotFoundException The plugin could not be found in any repositories.<a name="line.56"></a>
-<FONT color="green">057</FONT>         * @throws PluginResolutionException The plugin could be found but could not be resolved.<a name="line.57"></a>
-<FONT color="green">058</FONT>         * @throws InvalidPluginDescriptorException <a name="line.58"></a>
-<FONT color="green">059</FONT>         */<a name="line.59"></a>
-<FONT color="green">060</FONT>        public PluginDescriptor loadPlugin( Plugin plugin, List&lt;RemoteRepository&gt; repositories, RepositorySystemSession session )<a name="line.60"></a>
-<FONT color="green">061</FONT>            throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, InvalidPluginDescriptorException<a name="line.61"></a>
-<FONT color="green">062</FONT>        {<a name="line.62"></a>
-<FONT color="green">063</FONT>            return mavenPluginManager.getPluginDescriptor( plugin, repositories, session );<a name="line.63"></a>
-<FONT color="green">064</FONT>        }<a name="line.64"></a>
-<FONT color="green">065</FONT>    <a name="line.65"></a>
-<FONT color="green">066</FONT>        // ----------------------------------------------------------------------<a name="line.66"></a>
-<FONT color="green">067</FONT>        // Mojo execution<a name="line.67"></a>
-<FONT color="green">068</FONT>        // ----------------------------------------------------------------------<a name="line.68"></a>
-<FONT color="green">069</FONT>    <a name="line.69"></a>
-<FONT color="green">070</FONT>        public void executeMojo( MavenSession session, MojoExecution mojoExecution )<a name="line.70"></a>
-<FONT color="green">071</FONT>            throws MojoFailureException, MojoExecutionException, PluginConfigurationException, PluginManagerException<a name="line.71"></a>
-<FONT color="green">072</FONT>        {<a name="line.72"></a>
-<FONT color="green">073</FONT>            MavenProject project = session.getCurrentProject();<a name="line.73"></a>
-<FONT color="green">074</FONT>    <a name="line.74"></a>
-<FONT color="green">075</FONT>            MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor();<a name="line.75"></a>
-<FONT color="green">076</FONT>    <a name="line.76"></a>
-<FONT color="green">077</FONT>            Mojo mojo = null;<a name="line.77"></a>
-<FONT color="green">078</FONT>    <a name="line.78"></a>
-<FONT color="green">079</FONT>            ClassRealm pluginRealm;<a name="line.79"></a>
-<FONT color="green">080</FONT>            try<a name="line.80"></a>
-<FONT color="green">081</FONT>            {<a name="line.81"></a>
-<FONT color="green">082</FONT>                pluginRealm = getPluginRealm( session, mojoDescriptor.getPluginDescriptor() );<a name="line.82"></a>
-<FONT color="green">083</FONT>            }<a name="line.83"></a>
-<FONT color="green">084</FONT>            catch ( PluginResolutionException e )<a name="line.84"></a>
-<FONT color="green">085</FONT>            {<a name="line.85"></a>
-<FONT color="green">086</FONT>                throw new PluginExecutionException( mojoExecution, project, e );<a name="line.86"></a>
-<FONT color="green">087</FONT>            }<a name="line.87"></a>
-<FONT color="green">088</FONT>    <a name="line.88"></a>
-<FONT color="green">089</FONT>            ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();<a name="line.89"></a>
-<FONT color="green">090</FONT>            Thread.currentThread().setContextClassLoader( pluginRealm );<a name="line.90"></a>
-<FONT color="green">091</FONT>    <a name="line.91"></a>
-<FONT color="green">092</FONT>            MavenSession oldSession = legacySupport.getSession();<a name="line.92"></a>
-<FONT color="green">093</FONT>    <a name="line.93"></a>
-<FONT color="green">094</FONT>            try<a name="line.94"></a>
-<FONT color="green">095</FONT>            {<a name="line.95"></a>
-<FONT color="green">096</FONT>                mojo = mavenPluginManager.getConfiguredMojo( Mojo.class, session, mojoExecution );<a name="line.96"></a>
-<FONT color="green">097</FONT>    <a name="line.97"></a>
-<FONT color="green">098</FONT>                legacySupport.setSession( session );<a name="line.98"></a>
-<FONT color="green">099</FONT>    <a name="line.99"></a>
-<FONT color="green">100</FONT>                // NOTE: DuplicateArtifactAttachmentException is currently unchecked, so be careful removing this try/catch!<a name="line.100"></a>
-<FONT color="green">101</FONT>                // This is necessary to avoid creating compatibility problems for existing plugins that use<a name="line.101"></a>
-<FONT color="green">102</FONT>                // MavenProjectHelper.attachArtifact(..).<a name="line.102"></a>
-<FONT color="green">103</FONT>                try<a name="line.103"></a>
-<FONT color="green">104</FONT>                {<a name="line.104"></a>
-<FONT color="green">105</FONT>                    mojo.execute();<a name="line.105"></a>
-<FONT color="green">106</FONT>                }<a name="line.106"></a>
-<FONT color="green">107</FONT>                catch ( ClassCastException e )<a name="line.107"></a>
-<FONT color="green">108</FONT>                {<a name="line.108"></a>
-<FONT color="green">109</FONT>                    // to be processed in the outer catch block<a name="line.109"></a>
-<FONT color="green">110</FONT>                    throw e;<a name="line.110"></a>
-<FONT color="green">111</FONT>                }<a name="line.111"></a>
-<FONT color="green">112</FONT>                catch ( RuntimeException e )<a name="line.112"></a>
-<FONT color="green">113</FONT>                {<a name="line.113"></a>
-<FONT color="green">114</FONT>                    throw new PluginExecutionException( mojoExecution, project, e );<a name="line.114"></a>
-<FONT color="green">115</FONT>                }<a name="line.115"></a>
-<FONT color="green">116</FONT>            }<a name="line.116"></a>
-<FONT color="green">117</FONT>            catch ( PluginContainerException e )<a name="line.117"></a>
-<FONT color="green">118</FONT>            {<a name="line.118"></a>
-<FONT color="green">119</FONT>                throw new PluginExecutionException( mojoExecution, project, e );<a name="line.119"></a>
-<FONT color="green">120</FONT>            }<a name="line.120"></a>
-<FONT color="green">121</FONT>            catch ( NoClassDefFoundError e )<a name="line.121"></a>
-<FONT color="green">122</FONT>            {<a name="line.122"></a>
-<FONT color="green">123</FONT>                ByteArrayOutputStream os = new ByteArrayOutputStream( 1024 );<a name="line.123"></a>
-<FONT color="green">124</FONT>                PrintStream ps = new PrintStream( os );<a name="line.124"></a>
-<FONT color="green">125</FONT>                ps.println( "A required class was missing while executing " + mojoDescriptor.getId() + ": "<a name="line.125"></a>
-<FONT color="green">126</FONT>                    + e.getMessage() );<a name="line.126"></a>
-<FONT color="green">127</FONT>                pluginRealm.display( ps );<a name="line.127"></a>
-<FONT color="green">128</FONT>    <a name="line.128"></a>
-<FONT color="green">129</FONT>                Exception wrapper = new PluginContainerException( mojoDescriptor, pluginRealm, os.toString(), e );<a name="line.129"></a>
-<FONT color="green">130</FONT>    <a name="line.130"></a>
-<FONT color="green">131</FONT>                throw new PluginExecutionException( mojoExecution, project, wrapper );<a name="line.131"></a>
-<FONT color="green">132</FONT>            }<a name="line.132"></a>
-<FONT color="green">133</FONT>            catch ( LinkageError e )<a name="line.133"></a>
-<FONT color="green">134</FONT>            {<a name="line.134"></a>
-<FONT color="green">135</FONT>                ByteArrayOutputStream os = new ByteArrayOutputStream( 1024 );<a name="line.135"></a>
-<FONT color="green">136</FONT>                PrintStream ps = new PrintStream( os );<a name="line.136"></a>
-<FONT color="green">137</FONT>                ps.println( "An API incompatibility was encountered while executing " + mojoDescriptor.getId() + ": "<a name="line.137"></a>
-<FONT color="green">138</FONT>                    + e.getClass().getName() + ": " + e.getMessage() );<a name="line.138"></a>
-<FONT color="green">139</FONT>                pluginRealm.display( ps );<a name="line.139"></a>
-<FONT color="green">140</FONT>    <a name="line.140"></a>
-<FONT color="green">141</FONT>                Exception wrapper = new PluginContainerException( mojoDescriptor, pluginRealm, os.toString(), e );<a name="line.141"></a>
-<FONT color="green">142</FONT>    <a name="line.142"></a>
-<FONT color="green">143</FONT>                throw new PluginExecutionException( mojoExecution, project, wrapper );<a name="line.143"></a>
-<FONT color="green">144</FONT>            }<a name="line.144"></a>
-<FONT color="green">145</FONT>            catch ( ClassCastException e )<a name="line.145"></a>
-<FONT color="green">146</FONT>            {<a name="line.146"></a>
-<FONT color="green">147</FONT>                ByteArrayOutputStream os = new ByteArrayOutputStream( 1024 );<a name="line.147"></a>
-<FONT color="green">148</FONT>                PrintStream ps = new PrintStream( os );<a name="line.148"></a>
-<FONT color="green">149</FONT>                ps.println( "A type incompatibility occured while executing " + mojoDescriptor.getId() + ": "<a name="line.149"></a>
-<FONT color="green">150</FONT>                    + e.getMessage() );<a name="line.150"></a>
-<FONT color="green">151</FONT>                pluginRealm.display( ps );<a name="line.151"></a>
-<FONT color="green">152</FONT>    <a name="line.152"></a>
-<FONT color="green">153</FONT>                throw new PluginExecutionException( mojoExecution, project, os.toString(), e );<a name="line.153"></a>
-<FONT color="green">154</FONT>            }<a name="line.154"></a>
-<FONT color="green">155</FONT>            finally<a name="line.155"></a>
-<FONT color="green">156</FONT>            {<a name="line.156"></a>
-<FONT color="green">157</FONT>                mavenPluginManager.releaseMojo( mojo, mojoExecution );<a name="line.157"></a>
-<FONT color="green">158</FONT>    <a name="line.158"></a>
-<FONT color="green">159</FONT>                Thread.currentThread().setContextClassLoader( oldClassLoader );<a name="line.159"></a>
-<FONT color="green">160</FONT>    <a name="line.160"></a>
-<FONT color="green">161</FONT>                legacySupport.setSession( oldSession );<a name="line.161"></a>
-<FONT color="green">162</FONT>            }<a name="line.162"></a>
-<FONT color="green">163</FONT>        }<a name="line.163"></a>
-<FONT color="green">164</FONT>    <a name="line.164"></a>
-<FONT color="green">165</FONT>        /**<a name="line.165"></a>
-<FONT color="green">166</FONT>         * TODO pluginDescriptor classRealm and artifacts are set as a side effect of this<a name="line.166"></a>
-<FONT color="green">167</FONT>         *      call, which is not nice.<a name="line.167"></a>
-<FONT color="green">168</FONT>         * @throws PluginResolutionException <a name="line.168"></a>
-<FONT color="green">169</FONT>         */<a name="line.169"></a>
-<FONT color="green">170</FONT>        public ClassRealm getPluginRealm( MavenSession session, PluginDescriptor pluginDescriptor ) <a name="line.170"></a>
-<FONT color="green">171</FONT>            throws PluginResolutionException, PluginManagerException<a name="line.171"></a>
-<FONT color="green">172</FONT>        {<a name="line.172"></a>
-<FONT color="green">173</FONT>            ClassRealm pluginRealm = pluginDescriptor.getClassRealm();<a name="line.173"></a>
-<FONT color="green">174</FONT>            if ( pluginRealm != null )<a name="line.174"></a>
-<FONT color="green">175</FONT>            {<a name="line.175"></a>
-<FONT color="green">176</FONT>                return pluginRealm;<a name="line.176"></a>
-<FONT color="green">177</FONT>            }<a name="line.177"></a>
-<FONT color="green">178</FONT>    <a name="line.178"></a>
-<FONT color="green">179</FONT>            mavenPluginManager.setupPluginRealm( pluginDescriptor, session, null, null, null );<a name="line.179"></a>
-<FONT color="green">180</FONT>    <a name="line.180"></a>
-<FONT color="green">181</FONT>            return pluginDescriptor.getClassRealm();<a name="line.181"></a>
-<FONT color="green">182</FONT>        }<a name="line.182"></a>
-<FONT color="green">183</FONT>    <a name="line.183"></a>
-<FONT color="green">184</FONT>        public MojoDescriptor getMojoDescriptor( Plugin plugin, String goal, List&lt;RemoteRepository&gt; repositories,<a name="line.184"></a>
-<FONT color="green">185</FONT>                                                 RepositorySystemSession session )<a name="line.185"></a>
-<FONT color="green">186</FONT>            throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException,<a name="line.186"></a>
-<FONT color="green">187</FONT>            MojoNotFoundException, InvalidPluginDescriptorException<a name="line.187"></a>
-<FONT color="green">188</FONT>        {<a name="line.188"></a>
-<FONT color="green">189</FONT>            return mavenPluginManager.getMojoDescriptor( plugin, goal, repositories, session );<a name="line.189"></a>
-<FONT color="green">190</FONT>        }<a name="line.190"></a>
-<FONT color="green">191</FONT>    <a name="line.191"></a>
-<FONT color="green">192</FONT>    }<a name="line.192"></a>
+<FONT color="green">054</FONT>         * @param repositories<a name="line.54"></a>
+<FONT color="green">055</FONT>         * @param session<a name="line.55"></a>
+<FONT color="green">056</FONT>         * @return PluginDescriptor The component descriptor for the Maven plugin.<a name="line.56"></a>
+<FONT color="green">057</FONT>         * @throws PluginNotFoundException The plugin could not be found in any repositories.<a name="line.57"></a>
+<FONT color="green">058</FONT>         * @throws PluginResolutionException The plugin could be found but could not be resolved.<a name="line.58"></a>
+<FONT color="green">059</FONT>         * @throws InvalidPluginDescriptorException <a name="line.59"></a>
+<FONT color="green">060</FONT>         */<a name="line.60"></a>
+<FONT color="green">061</FONT>        public PluginDescriptor loadPlugin( Plugin plugin, List&lt;RemoteRepository&gt; repositories, RepositorySystemSession session )<a name="line.61"></a>
+<FONT color="green">062</FONT>            throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, InvalidPluginDescriptorException<a name="line.62"></a>
+<FONT color="green">063</FONT>        {<a name="line.63"></a>
+<FONT color="green">064</FONT>            return mavenPluginManager.getPluginDescriptor( plugin, repositories, session );<a name="line.64"></a>
+<FONT color="green">065</FONT>        }<a name="line.65"></a>
+<FONT color="green">066</FONT>    <a name="line.66"></a>
+<FONT color="green">067</FONT>        // ----------------------------------------------------------------------<a name="line.67"></a>
+<FONT color="green">068</FONT>        // Mojo execution<a name="line.68"></a>
+<FONT color="green">069</FONT>        // ----------------------------------------------------------------------<a name="line.69"></a>
+<FONT color="green">070</FONT>    <a name="line.70"></a>
+<FONT color="green">071</FONT>        public void executeMojo( MavenSession session, MojoExecution mojoExecution )<a name="line.71"></a>
+<FONT color="green">072</FONT>            throws MojoFailureException, MojoExecutionException, PluginConfigurationException, PluginManagerException<a name="line.72"></a>
+<FONT color="green">073</FONT>        {<a name="line.73"></a>
+<FONT color="green">074</FONT>            MavenProject project = session.getCurrentProject();<a name="line.74"></a>
+<FONT color="green">075</FONT>    <a name="line.75"></a>
+<FONT color="green">076</FONT>            MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor();<a name="line.76"></a>
+<FONT color="green">077</FONT>    <a name="line.77"></a>
+<FONT color="green">078</FONT>            Mojo mojo = null;<a name="line.78"></a>
+<FONT color="green">079</FONT>    <a name="line.79"></a>
+<FONT color="green">080</FONT>            ClassRealm pluginRealm;<a name="line.80"></a>
+<FONT color="green">081</FONT>            try<a name="line.81"></a>
+<FONT color="green">082</FONT>            {<a name="line.82"></a>
+<FONT color="green">083</FONT>                pluginRealm = getPluginRealm( session, mojoDescriptor.getPluginDescriptor() );<a name="line.83"></a>
+<FONT color="green">084</FONT>            }<a name="line.84"></a>
+<FONT color="green">085</FONT>            catch ( PluginResolutionException e )<a name="line.85"></a>
+<FONT color="green">086</FONT>            {<a name="line.86"></a>
+<FONT color="green">087</FONT>                throw new PluginExecutionException( mojoExecution, project, e );<a name="line.87"></a>
+<FONT color="green">088</FONT>            }<a name="line.88"></a>
+<FONT color="green">089</FONT>    <a name="line.89"></a>
+<FONT color="green">090</FONT>            ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();<a name="line.90"></a>
+<FONT color="green">091</FONT>            Thread.currentThread().setContextClassLoader( pluginRealm );<a name="line.91"></a>
+<FONT color="green">092</FONT>    <a name="line.92"></a>
+<FONT color="green">093</FONT>            MavenSession oldSession = legacySupport.getSession();<a name="line.93"></a>
+<FONT color="green">094</FONT>    <a name="line.94"></a>
+<FONT color="green">095</FONT>            try<a name="line.95"></a>
+<FONT color="green">096</FONT>            {<a name="line.96"></a>
+<FONT color="green">097</FONT>                mojo = mavenPluginManager.getConfiguredMojo( Mojo.class, session, mojoExecution );<a name="line.97"></a>
+<FONT color="green">098</FONT>    <a name="line.98"></a>
+<FONT color="green">099</FONT>                legacySupport.setSession( session );<a name="line.99"></a>
+<FONT color="green">100</FONT>    <a name="line.100"></a>
+<FONT color="green">101</FONT>                // NOTE: DuplicateArtifactAttachmentException is currently unchecked, so be careful removing this try/catch!<a name="line.101"></a>
+<FONT color="green">102</FONT>                // This is necessary to avoid creating compatibility problems for existing plugins that use<a name="line.102"></a>
+<FONT color="green">103</FONT>                // MavenProjectHelper.attachArtifact(..).<a name="line.103"></a>
+<FONT color="green">104</FONT>                try<a name="line.104"></a>
+<FONT color="green">105</FONT>                {<a name="line.105"></a>
+<FONT color="green">106</FONT>                    mojo.execute();<a name="line.106"></a>
+<FONT color="green">107</FONT>                }<a name="line.107"></a>
+<FONT color="green">108</FONT>                catch ( ClassCastException e )<a name="line.108"></a>
+<FONT color="green">109</FONT>                {<a name="line.109"></a>
+<FONT color="green">110</FONT>                    // to be processed in the outer catch block<a name="line.110"></a>
+<FONT color="green">111</FONT>                    throw e;<a name="line.111"></a>
+<FONT color="green">112</FONT>                }<a name="line.112"></a>
+<FONT color="green">113</FONT>                catch ( RuntimeException e )<a name="line.113"></a>
+<FONT color="green">114</FONT>                {<a name="line.114"></a>
+<FONT color="green">115</FONT>                    throw new PluginExecutionException( mojoExecution, project, e );<a name="line.115"></a>
+<FONT color="green">116</FONT>                }<a name="line.116"></a>
+<FONT color="green">117</FONT>            }<a name="line.117"></a>
+<FONT color="green">118</FONT>            catch ( PluginContainerException e )<a name="line.118"></a>
+<FONT color="green">119</FONT>            {<a name="line.119"></a>
+<FONT color="green">120</FONT>                throw new PluginExecutionException( mojoExecution, project, e );<a name="line.120"></a>
+<FONT color="green">121</FONT>            }<a name="line.121"></a>
+<FONT color="green">122</FONT>            catch ( NoClassDefFoundError e )<a name="line.122"></a>
+<FONT color="green">123</FONT>            {<a name="line.123"></a>
+<FONT color="green">124</FONT>                ByteArrayOutputStream os = new ByteArrayOutputStream( 1024 );<a name="line.124"></a>
+<FONT color="green">125</FONT>                PrintStream ps = new PrintStream( os );<a name="line.125"></a>
+<FONT color="green">126</FONT>                ps.println( "A required class was missing while executing " + mojoDescriptor.getId() + ": "<a name="line.126"></a>
+<FONT color="green">127</FONT>                    + e.getMessage() );<a name="line.127"></a>
+<FONT color="green">128</FONT>                pluginRealm.display( ps );<a name="line.128"></a>
+<FONT color="green">129</FONT>    <a name="line.129"></a>
+<FONT color="green">130</FONT>                Exception wrapper = new PluginContainerException( mojoDescriptor, pluginRealm, os.toString(), e );<a name="line.130"></a>
+<FONT color="green">131</FONT>    <a name="line.131"></a>
+<FONT color="green">132</FONT>                throw new PluginExecutionException( mojoExecution, project, wrapper );<a name="line.132"></a>
+<FONT color="green">133</FONT>            }<a name="line.133"></a>
+<FONT color="green">134</FONT>            catch ( LinkageError e )<a name="line.134"></a>
+<FONT color="green">135</FONT>            {<a name="line.135"></a>
+<FONT color="green">136</FONT>                ByteArrayOutputStream os = new ByteArrayOutputStream( 1024 );<a name="line.136"></a>
+<FONT color="green">137</FONT>                PrintStream ps = new PrintStream( os );<a name="line.137"></a>
+<FONT color="green">138</FONT>                ps.println( "An API incompatibility was encountered while executing " + mojoDescriptor.getId() + ": "<a name="line.138"></a>
+<FONT color="green">139</FONT>                    + e.getClass().getName() + ": " + e.getMessage() );<a name="line.139"></a>
+<FONT color="green">140</FONT>                pluginRealm.display( ps );<a name="line.140"></a>
+<FONT color="green">141</FONT>    <a name="line.141"></a>
+<FONT color="green">142</FONT>                Exception wrapper = new PluginContainerException( mojoDescriptor, pluginRealm, os.toString(), e );<a name="line.142"></a>
+<FONT color="green">143</FONT>    <a name="line.143"></a>
+<FONT color="green">144</FONT>                throw new PluginExecutionException( mojoExecution, project, wrapper );<a name="line.144"></a>
+<FONT color="green">145</FONT>            }<a name="line.145"></a>
+<FONT color="green">146</FONT>            catch ( ClassCastException e )<a name="line.146"></a>
+<FONT color="green">147</FONT>            {<a name="line.147"></a>
+<FONT color="green">148</FONT>                ByteArrayOutputStream os = new ByteArrayOutputStream( 1024 );<a name="line.148"></a>
+<FONT color="green">149</FONT>                PrintStream ps = new PrintStream( os );<a name="line.149"></a>
+<FONT color="green">150</FONT>                ps.println( "A type incompatibility occured while executing " + mojoDescriptor.getId() + ": "<a name="line.150"></a>
+<FONT color="green">151</FONT>                    + e.getMessage() );<a name="line.151"></a>
+<FONT color="green">152</FONT>                pluginRealm.display( ps );<a name="line.152"></a>
+<FONT color="green">153</FONT>    <a name="line.153"></a>
+<FONT color="green">154</FONT>                throw new PluginExecutionException( mojoExecution, project, os.toString(), e );<a name="line.154"></a>
+<FONT color="green">155</FONT>            }<a name="line.155"></a>
+<FONT color="green">156</FONT>            finally<a name="line.156"></a>
+<FONT color="green">157</FONT>            {<a name="line.157"></a>
+<FONT color="green">158</FONT>                mavenPluginManager.releaseMojo( mojo, mojoExecution );<a name="line.158"></a>
+<FONT color="green">159</FONT>    <a name="line.159"></a>
+<FONT color="green">160</FONT>                Thread.currentThread().setContextClassLoader( oldClassLoader );<a name="line.160"></a>
+<FONT color="green">161</FONT>    <a name="line.161"></a>
+<FONT color="green">162</FONT>                legacySupport.setSession( oldSession );<a name="line.162"></a>
+<FONT color="green">163</FONT>            }<a name="line.163"></a>
+<FONT color="green">164</FONT>        }<a name="line.164"></a>
+<FONT color="green">165</FONT>    <a name="line.165"></a>
+<FONT color="green">166</FONT>        /**<a name="line.166"></a>
+<FONT color="green">167</FONT>         * TODO pluginDescriptor classRealm and artifacts are set as a side effect of this<a name="line.167"></a>
+<FONT color="green">168</FONT>         *      call, which is not nice.<a name="line.168"></a>
+<FONT color="green">169</FONT>         * @throws PluginResolutionException <a name="line.169"></a>
+<FONT color="green">170</FONT>         */<a name="line.170"></a>
+<FONT color="green">171</FONT>        public ClassRealm getPluginRealm( MavenSession session, PluginDescriptor pluginDescriptor ) <a name="line.171"></a>
+<FONT color="green">172</FONT>            throws PluginResolutionException, PluginManagerException<a name="line.172"></a>
+<FONT color="green">173</FONT>        {<a name="line.173"></a>
+<FONT color="green">174</FONT>            ClassRealm pluginRealm = pluginDescriptor.getClassRealm();<a name="line.174"></a>
+<FONT color="green">175</FONT>            if ( pluginRealm != null )<a name="line.175"></a>
+<FONT color="green">176</FONT>            {<a name="line.176"></a>
+<FONT color="green">177</FONT>                return pluginRealm;<a name="line.177"></a>
+<FONT color="green">178</FONT>            }<a name="line.178"></a>
+<FONT color="green">179</FONT>    <a name="line.179"></a>
+<FONT color="green">180</FONT>            mavenPluginManager.setupPluginRealm( pluginDescriptor, session, null, null, null );<a name="line.180"></a>
+<FONT color="green">181</FONT>    <a name="line.181"></a>
+<FONT color="green">182</FONT>            return pluginDescriptor.getClassRealm();<a name="line.182"></a>
+<FONT color="green">183</FONT>        }<a name="line.183"></a>
+<FONT color="green">184</FONT>    <a name="line.184"></a>
+<FONT color="green">185</FONT>        public MojoDescriptor getMojoDescriptor( Plugin plugin, String goal, List&lt;RemoteRepository&gt; repositories,<a name="line.185"></a>
+<FONT color="green">186</FONT>                                                 RepositorySystemSession session )<a name="line.186"></a>
+<FONT color="green">187</FONT>            throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException,<a name="line.187"></a>
+<FONT color="green">188</FONT>            MojoNotFoundException, InvalidPluginDescriptorException<a name="line.188"></a>
+<FONT color="green">189</FONT>        {<a name="line.189"></a>
+<FONT color="green">190</FONT>            return mavenPluginManager.getMojoDescriptor( plugin, goal, repositories, session );<a name="line.190"></a>
+<FONT color="green">191</FONT>        }<a name="line.191"></a>
+<FONT color="green">192</FONT>    <a name="line.192"></a>
+<FONT color="green">193</FONT>    }<a name="line.193"></a>
 
 
 

Modified: websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/plugin/version/DefaultPluginVersionRequest.html
==============================================================================
--- websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/plugin/version/DefaultPluginVersionRequest.html (original)
+++ websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/plugin/version/DefaultPluginVersionRequest.html Sun Jun  2 08:01:23 2013
@@ -64,7 +64,7 @@
 <FONT color="green">061</FONT>         * has a current project, its plugin repositories will be used as well.<a name="line.61"></a>
 <FONT color="green">062</FONT>         * <a name="line.62"></a>
 <FONT color="green">063</FONT>         * @param plugin The plugin for which to resolve a version, must not be {@code null}.<a name="line.63"></a>
-<FONT color="green">064</FONT>         * @param repositoryRequest The repository request to copy from, must not be {@code null}.<a name="line.64"></a>
+<FONT color="green">064</FONT>         * @param session The Maven session to use, must not be {@code null}.<a name="line.64"></a>
 <FONT color="green">065</FONT>         */<a name="line.65"></a>
 <FONT color="green">066</FONT>        public DefaultPluginVersionRequest( Plugin plugin, MavenSession session )<a name="line.66"></a>
 <FONT color="green">067</FONT>        {<a name="line.67"></a>

Modified: websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/repository/legacy/metadata/ArtifactMetadataSource.html
==============================================================================
--- websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/repository/legacy/metadata/ArtifactMetadataSource.html (original)
+++ websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/repository/legacy/metadata/ArtifactMetadataSource.html Sun Jun  2 08:01:23 2013
@@ -68,7 +68,7 @@
 <FONT color="green">065</FONT>         *            needed, for instance the following code will work<a name="line.65"></a>
 <FONT color="green">066</FONT>         *            &lt;code&gt;artifactFactory.createProjectArtifact( "org.apache.maven", "maven", "" )&lt;/code&gt;<a name="line.66"></a>
 <FONT color="green">067</FONT>         * @param localRepository    local repository<a name="line.67"></a>
-<FONT color="green">068</FONT>         * @param deploymentRepository remote repository<a name="line.68"></a>
+<FONT color="green">068</FONT>         * @param remoteRepository   remote repository<a name="line.68"></a>
 <FONT color="green">069</FONT>         * @return {@link List} $lt; {@link ArtifactVersion} &gt;<a name="line.69"></a>
 <FONT color="green">070</FONT>         * @throws ArtifactMetadataRetrievalException<a name="line.70"></a>
 <FONT color="green">071</FONT>         *          in case of error while retrieving repository metadata from the repository.<a name="line.71"></a>

Modified: websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/settings/SettingsUtils.html
==============================================================================
--- websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/settings/SettingsUtils.html (original)
+++ websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/settings/SettingsUtils.html Sun Jun  2 08:01:23 2013
@@ -51,7 +51,7 @@
 <FONT color="green">048</FONT>        }<a name="line.48"></a>
 <FONT color="green">049</FONT>    <a name="line.49"></a>
 <FONT color="green">050</FONT>        /**<a name="line.50"></a>
-<FONT color="green">051</FONT>         * @param settingsProfile<a name="line.51"></a>
+<FONT color="green">051</FONT>         * @param modelProfile<a name="line.51"></a>
 <FONT color="green">052</FONT>         * @return a profile<a name="line.52"></a>
 <FONT color="green">053</FONT>         */<a name="line.53"></a>
 <FONT color="green">054</FONT>        public static Profile convertToSettingsProfile( org.apache.maven.model.Profile modelProfile )<a name="line.54"></a>

Modified: websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/toolchain/ToolchainPrivate.html
==============================================================================
--- websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/toolchain/ToolchainPrivate.html (original)
+++ websites/production/maven/content/ref/3-LATEST/apidocs/src-html/org/apache/maven/toolchain/ToolchainPrivate.html Sun Jun  2 08:01:23 2013
@@ -38,7 +38,7 @@
 <FONT color="green">035</FONT>         * Let the toolchain decide if it matches requirements defined<a name="line.35"></a>
 <FONT color="green">036</FONT>         * in the toolchain plugin configuration.<a name="line.36"></a>
 <FONT color="green">037</FONT>         * @param requirements Map&lt;String, String&gt; key value pair<a name="line.37"></a>
-<FONT color="green">038</FONT>         * @return<a name="line.38"></a>
+<FONT color="green">038</FONT>         * @return {@code true} if the requirements match, otherwise {@code false}<a name="line.38"></a>
 <FONT color="green">039</FONT>         */<a name="line.39"></a>
 <FONT color="green">040</FONT>        boolean matchesRequirements( Map&lt;String, String&gt; requirements );<a name="line.40"></a>
 <FONT color="green">041</FONT>    <a name="line.41"></a>



Mime
View raw message