Hello,

from a plugin (the mojo sandbox gwt-maven-plugin) I need to access one of
the plugin dependencies as a File.
How can I retrieve the plugin MavenProject, or any equivalent, to retrieve
the dependency as an Artifact or File ?

I have the ugly option to cast the classloader to URLClassLoader and search
the URLs :

        URLClassLoader cl = (URLClassLoader) getClass().getClassLoader();
        URL[] urls = cl.getURLs();
        for ( int i = 0; i < urls.length; i++ )
        {
...

Reply via email to