[forge-issues] [JBoss JIRA] (FORGE-2243) Programmatically added maven archetype catalog does not work with new-project

Claus Ibsen (JIRA) issues at jboss.org
Fri Mar 6 10:28:48 EST 2015


    [ https://issues.jboss.org/browse/FORGE-2243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13047059#comment-13047059 ] 

Claus Ibsen commented on FORGE-2243:
------------------------------------

Okay its better in 2.15.0 now. But they are still listed x2 times

[forge-distribution-2.15.0.Final]$ archetype-list
fabric8 = io.fabric8.forge.camel.commands.project.FabricArchetypeCatalogFactory at bedc1833
camel = io.fabric8.forge.camel.commands.project.CamelArchetypeCatalogFactory at 5a0d4b6
camel = io.fabric8.forge.camel.commands.project.CamelArchetypeCatalogFactory at 5a0d4b6
fabric8 = io.fabric8.forge.camel.commands.project.FabricArchetypeCatalogFactory at bedc1833

> Programmatically added maven archetype catalog does not work with new-project
> -----------------------------------------------------------------------------
>
>                 Key: FORGE-2243
>                 URL: https://issues.jboss.org/browse/FORGE-2243
>             Project: Forge
>          Issue Type: Bug
>    Affects Versions: 2.14.0.Final
>            Reporter: Claus Ibsen
>             Fix For: 2.x Future
>
>
> See also FORGE-2242
> When using the new-project command it doesnt work with catalogs that has been added from java code.
> I have added an archetype catalog named "central", eg see FORGE-2242, and when I use it in project-new it fails, as the last output.
> {code}
> [forge-distribution-2.14.0.Final]$ project-new
> ***INFO*** Required inputs not satisfied, entering interactive mode
> ? Project name:  mydemo2
> ? Top level package [org.mydemo2]:
> ? Version [1.0.0-SNAPSHOT]:
> ? Final name:
> ? Project location [/opt/forge-distribution-2.14.0.Final]:
> [0] (x) war
> [1] ( ) jar
> [2] ( ) parent
> [3] ( ) addon
> [4] ( ) resource-jar
> [5] ( ) ear
> [6] ( ) from-archetype
> [7] ( ) from-archetype-catalog
> Press <ENTER> to confirm, or <CTRL>+C to cancel.
> ? Project type: [0-7] 7
> [0] (x) Maven
> Press <ENTER> to confirm, or <CTRL>+C to cancel.
> ? Build system: [0]
> [0] ( ) central
> Press <ENTER> to confirm, or <CTRL>+C to cancel.
> ? Catalog: [0]
> ***ERROR*** Catalog must be specified.
> ***ERROR*** Archetype must be specified.
> [forge-distribution-2.14.0.Final]$
> {code}
> But if I add an archetype catalog using archetype-add from the forge shell then it works with project-new, even though they both load the same set of archetypes from maven central.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the forge-issues mailing list