[
http://jira.codehaus.org/browse/ARCHETYPE-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137138#action_137138
]
Raphaël Piéroni commented on ARCHETYPE-178:
-------------------------------------------
Is the following behaviour sufficient?
mvn archetype:generate -DarchetypeCatalog=local
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:generate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] [archetype:generate]
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart
(org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: local -> gmaven-archetype-basic (GMaven Archetypes :: Basic)
2: local -> z (z)
Choose a number: (1/2): 2 (ENTER)
Define value for groupId: : (ENTER)
Define value for artifactId: : a-r-t-i-f-a-c-t (ENTER)
Define value for version: 1.0-SNAPSHOT: : (ENTER)
Define value for package: : : (ENTER)
[WARNING] Archetype is not fully configured
Define value for groupId: : g.r.o.u.p (ENTER)
Define value for package: g.r.o.u.p: : (ENTER)
Confirm properties configuration:
groupId: g.r.o.u.p
artifactId: a-r-t-i-f-a-c-t
version: 1.0-SNAPSHOT
package: g.r.o.u.p
Y: :
> omitting the package in the prompts leaves an unhelpful error message
> ---------------------------------------------------------------------
>
> Key: ARCHETYPE-178
> URL: http://jira.codehaus.org/browse/ARCHETYPE-178
> Project: Maven Archetype
> Issue Type: Bug
> Components: Generator
> Affects Versions: 2.0-alpha-3
> Reporter: Brett Porter
>
> Define value for package: :
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] :
> org.apache.maven.archetype.exception.ArchetypeGenerationConfigurationFailure:
> The archetype generation must be configured here
> The archetype generation must be configured here
> The archetype generation must be configured here
> I believe
> - the error message should be better, and prompt again
> - the package should be defaulting to groupId?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira