CINXE.COM
Maven Core – Default Artifact Handlers Reference
<!DOCTYPE html> <!-- | Generated by Apache Maven Doxia Site Renderer 1.11.1 from src/site/apt/artifact-handlers.apt at 2024-08-14 | Rendered using Apache Maven Fluido Skin 1.12.0 --> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="generator" content="Apache Maven Doxia Site Renderer 1.11.1" /> <meta name="author" content="Hervé Boutemy" /> <meta name="date" content="2013-08-02" /> <title>Maven Core – Default Artifact Handlers Reference</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.12.0.min.css" /> <link rel="stylesheet" href="./css/site.css" /> <link rel="stylesheet" href="./css/print.css" media="print" /> <script src="./js/apache-maven-fluido-1.12.0.min.js"></script> <!-- Matomo --> <script> var _paq = window._paq = window._paq || []; _paq.push(['disableCookies']); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="https://analytics.apache.org/"; _paq.push(['setTrackerUrl', u+'/matomo.php']); _paq.push(['setSiteId', '3']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'/matomo.js'; s.parentNode.insertBefore(g,s); })(); </script> <!-- End Matomo Code --> </head> <body> <div class="container-fluid container-fluid-top"> <header> <div id="banner"> <div class="pull-left"><a href="../../../" id="bannerLeft"><img src="../../../images/apache-maven-project.png" alt="Maven Core" style="" /></a></div> <div class="pull-right"><a href="../../../" id="bannerRight"><img src="../../../images/maven-logo-black-on-white.png" style="" /></a></div> <div class="clear"><hr/></div> </div> <div id="breadcrumbs"> <ul class="breadcrumb"> <li><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li> <li><a href="../../../index.html" title="Maven">Maven</a><span class="divider">/</span></li> <li><a href="../../" title="Ref">Ref</a><span class="divider">/</span></li> <li><a href="../" title="Maven 3.9.9">Maven 3.9.9</a><span class="divider">/</span></li> <li><a href="index.html" title="Maven Core">Maven Core</a><span class="divider">/</span></li> <li class="active ">Default Artifact Handlers Reference <a href="https://github.com/apache/maven/tree/maven-3.9.9/maven-core/src/site/apt/artifact-handlers.apt"><img src="./images/accessories-text-editor.png" title="Edit" /></a></li> <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2024-08-14</li> <li id="projectVersion" class="pull-right">Version: 3.9.9</li> </ul> </div> </header> <div class="row-fluid"> <header id="leftColumn" class="span2"> <nav class="well sidebar-nav"> <ul class="nav nav-list"> <li class="nav-header">Overview</li> <li><a href="index.html" title="Introduction"><span class="none"></span>Introduction</a></li> <li><a href="apidocs/index.html" title="Javadocs"><span class="none"></span>Javadocs</a></li> <li><a href="xref/index.html" title="Source Xref"><span class="none"></span>Source Xref</a></li> <li class="nav-header">Reference</li> <li><a href="core-extensions.html" title="Core Extensions"><span class="none"></span>Core Extensions</a></li> <li class="nav-header">Descriptors Reference</li> <li><a href="../maven-model/maven.html" title="POM"><span class="none"></span>POM</a></li> <li><a href="../maven-settings/settings.html" title="Settings"><span class="none"></span>Settings</a></li> <li><a href="../maven-core/toolchains.html" title="Toolchains"><span class="none"></span>Toolchains</a></li> <li class="nav-header">Reference</li> <li><a href="../maven-core/lifecycles.html" title="Lifecycles"><span class="none"></span>Lifecycles</a></li> <li><a href="../maven-core/default-bindings.html" title="Plugin Bindings to Default Lifecycle"><span class="none"></span>Plugin Bindings to Default Lifecycle</a></li> <li><a href="../maven-core/artifact-handlers.html" title="Artifact Handlers"><span class="none"></span>Artifact Handlers</a></li> <li><a href="../maven-embedder/cli.html" title="CLI options"><span class="none"></span>CLI options</a></li> <li><a href="../maven-model-builder/super-pom.html" title="Super POM"><span class="none"></span>Super POM</a></li> <li class="nav-header">Development</li> <li><a href="../../../developers/index.html" title="Maven Developer Centre"><span class="none"></span>Maven Developer Centre</a></li> <li><a href="../../../core-its/index.html" title="Maven Core ITs"><span class="none"></span>Maven Core ITs</a></li> <li class="nav-header">Project Documentation</li> <li><a href="project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a></li> <li><a href="project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a></li> <li class="nav-header">Maven Projects</li> <li><a href="../../current" title="Maven"><span class="none"></span>Maven</a></li> <li><a href="../../../archetypes/index.html" title="Archetypes"><span class="none"></span>Archetypes</a></li> <li><a href="../../../extensions/index.html" title="Extensions"><span class="none"></span>Extensions</a></li> <li><a href="../../../pom/index.html" title="Parent POMs"><span class="none"></span>Parent POMs</a></li> <li><a href="../../../plugins/index.html" title="Plugins"><span class="none"></span>Plugins</a></li> <li><a href="../../../skins/index.html" title="Skins"><span class="none"></span>Skins</a></li> <li><a href="" title="Components"><span class="icon-chevron-down"></span>Components</a> <ul class="nav nav-list"> <li><a href="../../../archetype/index.html" title="Archetype"><span class="none"></span>Archetype</a></li> <li><a href="../../../resolver/index.html" title="Artifact Resolver"><span class="none"></span>Artifact Resolver</a></li> <li><a href="../../../doxia/index.html" title="Doxia"><span class="none"></span>Doxia</a></li> <li><a href="../../../maven-indexer/index.html" title="Indexer"><span class="none"></span>Indexer</a></li> <li><a href="../../../jxr/index.html" title="JXR"><span class="none"></span>JXR</a></li> <li><a href="../../../plugin-testing/index.html" title="Plugin Testing"><span class="none"></span>Plugin Testing</a></li> <li><a href="../../../plugin-tools/index.html" title="Plugin Tools"><span class="none"></span>Plugin Tools</a></li> <li><a href="../../../apache-resource-bundles/index.html" title="Resource Bundles"><span class="none"></span>Resource Bundles</a></li> <li><a href="../../../scm/index.html" title="SCM"><span class="none"></span>SCM</a></li> <li><a href="../../../shared/index.html" title="Shared Components"><span class="none"></span>Shared Components</a></li> <li><a href="../../../surefire/index.html" title="Surefire"><span class="none"></span>Surefire</a></li> <li><a href="../../../wagon/index.html" title="Wagon"><span class="none"></span>Wagon</a></li> </ul></li> <li class="nav-header">ASF</li> <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"><span class="none"></span>How Apache Works</a></li> <li><a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"><span class="none"></span>Foundation</a></li> <li><a href="https://privacy.apache.org/policies/privacy-policy-public.html" class="externalLink" title="Data Privacy"><span class="none"></span>Data Privacy</a></li> <li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"><span class="none"></span>Sponsoring Apache</a></li> <li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"><span class="none"></span>Thanks</a></li> </ul> </nav> <div class="well sidebar-nav"> <div id="poweredBy"> <div class="clear"></div> <div class="clear"></div> <div class="clear"></div> <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a> </div> </div> </header> <main id="bodyColumn" class="span10" > <section> <h2><a name="Default_Artifact_Handlers_Reference"></a>Default Artifact Handlers Reference</h2> <p>Artifact handlers (see <a href="../maven-artifact/apidocs/org/apache/maven/artifact/handler/ArtifactHandler.html"> API</a>) define for each <a href="../maven-model/maven.html#class_dependency">dependency type</a> information on the artifact (classifier, extension, language) and how to manage it as dependency (add to classpath, include dependencies).</p> <p>Some artifact handlers are configured by default in <code>META-INF/plexus/artifact-handlers.xml</code>:</p> <table border="1" class="table table-striped"> <tr class="a"> <th align="left">type</th> <th align="left">classifier</th> <th align="left">extension</th> <th align="left">packaging</th> <th align="left">language</th> <th align="left">added to classpath</th> <th align="left">includesDependencies</th></tr> <tr class="b"> <td align="left"><code>pom</code></td> <td align="left"></td> <td align="left"><i>= type</i></td> <td align="left"><i>= type</i></td> <td align="left">none</td> <td align="left"></td> <td align="left"></td></tr> <tr class="a"> <td align="left"><code>jar</code></td> <td align="left"></td> <td align="left"><i>= type</i></td> <td align="left"><i>= type</i></td> <td align="left">java</td> <td align="left"><code>true</code></td> <td align="left"></td></tr> <tr class="b"> <td align="left"><code>test-jar</code></td> <td align="left"><code>tests</code></td> <td align="left"><code>jar</code></td> <td align="left"><code>jar</code></td> <td align="left">java</td> <td align="left"><code>true</code></td> <td align="left"></td></tr> <tr class="a"> <td align="left"><code>maven-plugin</code></td> <td align="left"></td> <td align="left"><code>jar</code></td> <td align="left"><i>= type</i></td> <td align="left">java</td> <td align="left"><code>true</code></td> <td align="left"></td></tr> <tr class="b"> <td align="left"><code>ejb</code></td> <td align="left"></td> <td align="left"><code>jar</code></td> <td align="left"><i>= type</i></td> <td align="left">java</td> <td align="left"><code>true</code></td> <td align="left"></td></tr> <tr class="a"> <td align="left"><code>ejb-client</code></td> <td align="left"><code>client</code></td> <td align="left"><code>jar</code></td> <td align="left"><code>ejb</code></td> <td align="left">java</td> <td align="left"><code>true</code></td> <td align="left"></td></tr> <tr class="b"> <td align="left"><code>war</code></td> <td align="left"></td> <td align="left"><i>= type</i></td> <td align="left"><i>= type</i></td> <td align="left">java</td> <td align="left"></td> <td align="left"><code>true</code></td></tr> <tr class="a"> <td align="left"><code>ear</code></td> <td align="left"></td> <td align="left"><i>= type</i></td> <td align="left"><i>= type</i></td> <td align="left">java</td> <td align="left"></td> <td align="left"><code>true</code></td></tr> <tr class="b"> <td align="left"><code>rar</code></td> <td align="left"></td> <td align="left"><i>= type</i></td> <td align="left"><i>= type</i></td> <td align="left">java</td> <td align="left"></td> <td align="left"><code>true</code></td></tr> <tr class="a"> <td align="left"><code>java-source</code></td> <td align="left"><code>sources</code></td> <td align="left"><code>jar</code></td> <td align="left"><i>= type</i></td> <td align="left">java</td> <td align="left"></td> <td align="left"></td></tr> <tr class="b"> <td align="left"><code>javadoc</code></td> <td align="left"><code>javadoc</code></td> <td align="left"><code>jar</code></td> <td align="left"><i>= type</i></td> <td align="left">java</td> <td align="left"><code>true</code></td> <td align="left"></td></tr></table></section> </main> </div> </div> <hr/> <footer> <div class="container-fluid"> <div class="row-fluid"> <p>© 2001–2024 <a href="https://www.apache.org/">The Apache Software Foundation</a> </p> </div> </div> </footer> <script> if(anchors) { anchors.add(); } </script> </body> </html>