MPLUGIN-80: Detection of report goals always fails due to class loader separation
o added @execute tag o take care of the executed project git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@635233 13f79535-47bb-0310-9956-ffa450edef68master
parent
251256ef22
commit
8e95bdf7eb
|
|
@ -51,6 +51,7 @@ import org.codehaus.plexus.util.xml.Xpp3Dom;
|
||||||
* @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
|
* @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
* @goal report
|
* @goal report
|
||||||
|
* @execute phase="compile"
|
||||||
*/
|
*/
|
||||||
public class PluginReport
|
public class PluginReport
|
||||||
extends AbstractMavenReport
|
extends AbstractMavenReport
|
||||||
|
|
|
||||||
|
|
@ -185,6 +185,10 @@ public final class PluginUtils
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
classPathStrings = project.getCompileClasspathElements();
|
classPathStrings = project.getCompileClasspathElements();
|
||||||
|
if ( project.getExecutionProject() != null )
|
||||||
|
{
|
||||||
|
classPathStrings.addAll( project.getExecutionProject().getCompileClasspathElements() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch ( DependencyResolutionRequiredException e )
|
catch ( DependencyResolutionRequiredException e )
|
||||||
{
|
{
|
||||||
|
|
@ -204,9 +208,8 @@ public final class PluginUtils
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
URLClassLoader projectClassLoader = new URLClassLoader( (URL[]) urls.toArray( new URL[urls.size()] ),
|
classLoader = new URLClassLoader( (URL[]) urls.toArray( new URL[urls.size()] ),
|
||||||
classLoader );
|
classLoader );
|
||||||
classLoader = projectClassLoader;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Class clazz = null;
|
Class clazz = null;
|
||||||
|
|
@ -342,7 +345,7 @@ public final class PluginUtils
|
||||||
* match the sequence of characters in <code>s</code> treated as a literal sequence. Slashes ('\') and dollar
|
* match the sequence of characters in <code>s</code> treated as a literal sequence. Slashes ('\') and dollar
|
||||||
* signs ('$') will be given no special meaning. TODO: copied from Matcher class of Java 1.5, remove once target
|
* signs ('$') will be given no special meaning. TODO: copied from Matcher class of Java 1.5, remove once target
|
||||||
* platform can be upgraded
|
* platform can be upgraded
|
||||||
*
|
*
|
||||||
* @see <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Matcher.html">java.util.regex.Matcher</a>
|
* @see <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Matcher.html">java.util.regex.Matcher</a>
|
||||||
* @param s The string to be literalized
|
* @param s The string to be literalized
|
||||||
* @return A literal string replacement
|
* @return A literal string replacement
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue