[forge-issues] [JBoss JIRA] (FORGE-2240) project-new - Do not show from-archetype-catalog if there are no catalogs
Claus Ibsen (JIRA)
issues at jboss.org
Mon Feb 16 09:36:48 EST 2015
[ https://issues.jboss.org/browse/FORGE-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040551#comment-13040551 ]
Claus Ibsen commented on FORGE-2240:
------------------------------------
btw I am using forge 2.14.0
> project-new - Do not show from-archetype-catalog if there are no catalogs
> -------------------------------------------------------------------------
>
> Key: FORGE-2240
> URL: https://issues.jboss.org/browse/FORGE-2240
> Project: Forge
> Issue Type: Enhancement
> Reporter: Claus Ibsen
> Priority: Minor
>
> eg out of the box there is no archetype-catalogs registered, but if you choose no #7 in the project-new it would fail
> {code}
> [forge-distribution-2.14.0.Final]$ project-new
> ***INFO*** Required inputs not satisfied, entering interactive mode
> ? Project name: mydemo
> ? Top level package [org.mydemo]:
> ? 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]
> ***ERROR*** Catalog must be specified.
> ***ERROR*** Archetype must be specified.
> {code}
> So I think project-new should hide [7] if there is no catalogs, eg archetype-list is empty.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the forge-issues
mailing list