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 post requests using okhttp
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • 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