Tabnine Logo
PluginManagerException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.maven.plugin.PluginManagerException
constructor

Best Java code snippets using org.apache.maven.plugin.PluginManagerException.<init> (Showing top 7 results out of 315)

origin: apache/maven

public PluginDescriptor loadPluginFully( Plugin plugin, MavenProject project, MavenSession session )
  throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException,
  InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException,
  PluginVersionNotFoundException
{
  PluginDescriptor pluginDescriptor = loadPluginDescriptor( plugin, project, session );
  try
  {
    pluginManager.setupPluginRealm( pluginDescriptor, session, null, null, null );
  }
  catch ( PluginResolutionException e )
  {
    throw new PluginManagerException( plugin, e.getMessage(), e );
  }
  return pluginDescriptor;
}
origin: apache/maven

public Object getPluginComponent( Plugin plugin, String role, String roleHint )
  throws PluginManagerException, ComponentLookupException
{
  MavenSession session = legacySupport.getSession();
  PluginDescriptor pluginDescriptor;
  try
  {
    pluginDescriptor =
      pluginManager.getPluginDescriptor( plugin, session.getCurrentProject().getRemotePluginRepositories(),
                        session.getRepositorySession() );
    pluginManager.setupPluginRealm( pluginDescriptor, session, null, null, null );
  }
  catch ( Exception e )
  {
    throw new PluginManagerException( plugin, e.getMessage(), e );
  }
  ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();
  try
  {
    Thread.currentThread().setContextClassLoader( pluginDescriptor.getClassRealm() );
    return container.lookup( role, roleHint );
  }
  finally
  {
    Thread.currentThread().setContextClassLoader( oldClassLoader );
  }
}
origin: apache/maven

public Map<String, Object> getPluginComponents( Plugin plugin, String role )
  throws ComponentLookupException, PluginManagerException
{
  MavenSession session = legacySupport.getSession();
  PluginDescriptor pluginDescriptor;
  try
  {
    pluginDescriptor =
      pluginManager.getPluginDescriptor( plugin, session.getCurrentProject().getRemotePluginRepositories(),
                        session.getRepositorySession() );
    pluginManager.setupPluginRealm( pluginDescriptor, session, null, null, null );
  }
  catch ( Exception e )
  {
    throw new PluginManagerException( plugin, e.getMessage(), e );
  }
  ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();
  try
  {
    Thread.currentThread().setContextClassLoader( pluginDescriptor.getClassRealm() );
    return container.lookupMap( role );
  }
  finally
  {
    Thread.currentThread().setContextClassLoader( oldClassLoader );
  }
}
origin: apache/maven

  throw new PluginManagerException( plugin, e.getMessage(), e );
throw new PluginManagerException( plugin, e.getMessage(), e );
  throw new PluginManagerException( plugin, e.getMessage(), e );
origin: apache/maven

public PluginDescriptor verifyPlugin( Plugin plugin, MavenProject project, Settings settings,
                   ArtifactRepository localRepository )
  throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException,
  InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException,
  PluginVersionNotFoundException
{
  MavenSession session = legacySupport.getSession();
  if ( plugin.getVersion() == null )
  {
    PluginVersionRequest versionRequest =
      new DefaultPluginVersionRequest( plugin, session.getRepositorySession(),
                       project.getRemotePluginRepositories() );
    plugin.setVersion( pluginVersionResolver.resolve( versionRequest ).getVersion() );
  }
  try
  {
    return pluginManager.getPluginDescriptor( plugin, project.getRemotePluginRepositories(),
                         session.getRepositorySession() );
  }
  catch ( PluginResolutionException e )
  {
    throw new PluginNotFoundException( plugin, project.getPluginArtifactRepositories() );
  }
  catch ( PluginDescriptorParsingException | InvalidPluginDescriptorException e )
  {
    throw new PluginManagerException( plugin, e.getMessage(), e );
  }
}
origin: org.jvnet.hudson.main/maven-interceptor

} catch (IOException e) {
  throw (PluginManagerException)new PluginManagerException(e.getMessage()).initCause(e);
} finally {
  configuratorFilter = null;
origin: org.hudsonci.plugins/maven-interceptor

} catch (IOException e) {
  throw (PluginManagerException)new PluginManagerException(e.getMessage()).initCause(e);
} finally {
  configuratorFilter = null;
org.apache.maven.pluginPluginManagerException<init>

Popular methods of PluginManagerException

  • getMessage
  • initCause

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now