Jak zjistit informace o pluginu v Mavenu

Pokud potřebujete zjistit informace (zejména parametry) nějakého pluginu do Mavenu, je potřeba navštívit stránku vygenerovanou cílem „site“, kde je kompletní popis všeho a často také nějaký ten příkládek. Pokud však daný plugin takovou stránku nikde na internetu nepublikuje, je to problém. Naštěstí je tu describe plugin, který potřebné informace vytáhne. Například pro XSD schéma generátor plugin, který dělá firma Sun (a není k dispozici „site“), použiji příkaz:

# mvn help:describe -DgroupId=com.sun.tools.jxc.maven2 -DartifactId=maven-jaxb-schemagen-plugin -Dfull=true

Group Id:  com.sun.tools.jxc.maven2
Artifact Id: maven-jaxb-schemagen-plugin
Version:     1.2
Goal Prefix: jaxb-schemagen
Description:

JAXB schemagen utility for Maven 2. Part of the JAXB 2.0 RI Project.

Mojos:

===============================================
Goal: 'generate'
===============================================
Description:
A mojo that generates XML schema from Java files. For
details on JAXB see <a href="https://jaxb.dev.java.net/">JAXB 2.0
Project</a>
<p/>

Implementation: com.sun.tools.jxc.maven2.SchemaGenMojo
Language: java
Bound to Phase: generate-sources

Parameters:
-----------------------------------------------

[0] Name: destdir
Type: java.io.File
Required: false
Directly editable: true
Description:
Generated schema files will be written under this directory.

-----------------------------------------------

[1] Name: excludes
Type: java.lang.String[]
Required: false
Directly editable: true
Description:
A list of regular expression file search patterns to specify the Java files
to be excluded from the include list. Searching is based from the
root of srcdir.

-----------------------------------------------

[2] Name: includes
Type: java.lang.String[]
Required: false
Directly editable: true
Description:
A list of regular expression file search patterns to specify the Java files
to be processed. Searching is based from the root of srcdir. If
this is not set then all .java files in srcdir will be processed.
<p/>

-----------------------------------------------

[3] Name: pluginArtifacts
Type: java.util.List
Required: true
Directly editable: false
Description:
The dependencies list of the jaxb-maven2-schemagen plugin.
This class checks this list for a needed jar file.

-----------------------------------------------

[4] Name: project
Type: org.apache.maven.project.MavenProject
Required: true
Directly editable: true
Description:
The Maven project reference.

-----------------------------------------------

[5] Name: schemas
Type: com.sun.tools.jxc.maven2.Schema[]
Required: false
Directly editable: true
Description:
Control the file name of the generated schema.
Elements namespace and file are mandatory.
<schemas>
<schema>
<namespace>some.name</namespace>
<file>schemafilename.xsd</file>
</schema>
</schemas>

-----------------------------------------------

[6] Name: srcdir
Type: java.io.File
Required: false
Directly editable: true
Description:
The source directory containing java files.

-----------------------------------------------

[7] Name: verbose
Type: boolean
Required: false
Directly editable: true
Description:
If verbose all the configured settings that are to be passed to schemagen
are logged.

-----------------------------------------------

This mojo doesn't have any component requirements.

Diskuze

If you can't read the letters on the image, download this .wav file to get them read to you.
pridej.cz
blog/jak_zjistit_informace_o_pluginu_v_mavenu.txt · Poslední úprava: 18.07.2008 10:08 autor: lzap
Creative Commons License Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0