Per my final comment question below, the 6 vs 4. That was because
modello-plugin-xpp3 was also on the classpath. Which has 3 Generators
and no MetaDataPlugin, thus it does not show.

Seems more and more like there is a problem with the Generators
HashMap. It has a size, but elements are messed up or something.

I kept thinking maybe I needed to chain in other plugins. But seems
like only the Java one is needed to go from *.mdo to *.java per
description on pom.xml, but maybe misleading.
https://github.com/codehaus-plexus/modello/blob/master/modello-plugins/modello-plugin-java/pom.xml#L13

If it is not a missing plugin needed for Java plugin. Then it must be
something messing up the HashMap for Generators.

On Mon, 25 Jun 2018 16:19:55 -0400
"William L. Thomson Jr." <wlt...@o-sinc.com> wrote:

snip

> Here is some example output with java, xml, and xsd plugins. I see the
> MetaDataPlugins, but never any Generators. The plugin ModelloCLI wants
> is a generator not a MetaDataPlugin.
> 
> --------------------------------------------------------------------------------------------------------------
> 
> $ modello  settings.mdo modello ../java/ 4.0.0 false true
> DefaultPlexusContainer
> AbstractPluginManager.initialize()
> plugins = 4
> xsd :
> org.codehaus.modello.plugin.xsd.metadata.XsdMetadataPlugin@275710fc
> model :
> org.codehaus.modello.plugin.model.ModelMetadataPlugin@4de5031f java :
> org.codehaus.modello.plugin.java.metadata.JavaMetadataPlugin@5d47c63f
> xml :
> org.codehaus.modello.plugins.xml.metadata.XmlMetadataPlugin@3bbc39f8
> AbstractPluginManager.initialize() plugins = 6 ModelloCore new
> Modello() parsed args
> generatorId = modello
> plugins = 6
> getPlugin = modello
> Exception in thread "main"
> org.codehaus.modello.ModelloRuntimeException: No such plugin: modello
> 
> --------------------------------------------------------------------------------------------------------------
> 
> Not sure how it sees 6 plugins from 4 before. Or why I cannot access
> any. Seems like some Generator plugins exist. But the HashMap has
> some issues. Not sure if its improper types being passed or what.
> 



-- 
William L. Thomson Jr.

Attachment: pgp0EG2NEWa1R.pgp
Description: OpenPGP digital signature

Reply via email to