mirror of
https://github.com/apache/maven.git
synced 2025-02-20 17:05:35 +00:00
improved documentation
This commit is contained in:
parent
396f49d75e
commit
f5674713a6
@ -20,16 +20,32 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* An artifact handler defies for one type (defined as Plexus role):<ul>
|
||||
* <li>extension and classifier to be able to download the file,</li>
|
||||
* <li>information on how to use the artifact: whether to add it to the classpath, or to take into account its
|
||||
* dependencies.</li>
|
||||
* </ul>
|
||||
*
|
||||
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
|
||||
*/
|
||||
public interface ArtifactHandler
|
||||
{
|
||||
String ROLE = ArtifactHandler.class.getName();
|
||||
|
||||
/**
|
||||
* Get the file extension associated to the type of artifact.
|
||||
*
|
||||
* @return the extension
|
||||
*/
|
||||
String getExtension();
|
||||
|
||||
String getDirectory();
|
||||
|
||||
/**
|
||||
* Get the classifier associated to the type of artifact.
|
||||
*
|
||||
* @return the classifier
|
||||
*/
|
||||
String getClassifier();
|
||||
|
||||
String getPackaging();
|
||||
|
@ -25,7 +25,10 @@
|
||||
|
||||
Default Artifact Handlers Reference
|
||||
|
||||
Some artifact handlers (see {{{../maven-artifact/apidocs/org/apache/maven/artifact/handler/ArtifactHandler.html} API}})
|
||||
Artifact handlers (see {{{../maven-artifact/apidocs/org/apache/maven/artifact/handler/ArtifactHandler.html} API}})
|
||||
define for each {{{../maven-model/maven.html#class_dependency}dependency type}} information on the artifact.
|
||||
|
||||
Some artifact handlers
|
||||
are configured by default in <<<META-INF/plexus/artifact-handlers.xml>>>:
|
||||
|
||||
*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+
|
||||
@ -35,10 +38,14 @@ Default Artifact Handlers Reference
|
||||
*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+
|
||||
| <<<jar>>> | <= type> | <= type> | | java | <<<true>>> | |
|
||||
*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+
|
||||
| <<<test-jar>>> | <<<jar>>> | <<<jar>>> | <<<tests>>> | java | <<<true>>> | |
|
||||
*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+
|
||||
| <<<maven-plugin>>> | <<<jar>>> | <= type> | | java | <<<true>>> | |
|
||||
*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+
|
||||
| <<<ejb>>> | <<<jar>>> | <= type> | | java | <<<true>>> | |
|
||||
*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+
|
||||
| <<<ejb-client>>> | <<<jar>>> | <<<ejb>>> | <<<client>>> | java | <<<true>>> | |
|
||||
*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+
|
||||
| <<<war>>> | <= type> | <= type> | | java | | <<<true>>> |
|
||||
*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+
|
||||
| <<<ear>>> | <= type> | <= type> | | java | | <<<true>>> |
|
||||
@ -49,7 +56,3 @@ Default Artifact Handlers Reference
|
||||
*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+
|
||||
| <<<javadoc>>> | <<<jar>>> | <= type> | <<<javadoc>>> | java | <<<true>>> | |
|
||||
*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+
|
||||
| <<<ejb-client>>> | <<<jar>>> | <<<ejb>>> | <<<client>>> | java | <<<true>>> | |
|
||||
*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+
|
||||
| <<<test-jar>>> | <<<jar>>> | <<<jar>>> | <<<tests>>> | java | <<<true>>> | |
|
||||
*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+
|
||||
|
@ -31,7 +31,7 @@ Maven Core
|
||||
|
||||
* {{{./lifecycles.html}lifecycles}} and {{{./default-bindings.html}plugin bindings to <<<default>>> lifecycle}},
|
||||
|
||||
* {{{./artifact-handlers.html}default artifact handlers}},
|
||||
* {{{./artifact-handlers.html}default artifact handlers}}, to manage {{{../maven-model/maven.html#class_dependency}dependency types}},
|
||||
|
||||
* {{{./extension.html}extension descriptor}} and {{{./core-extensions.html}core extensions}},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user