Strange

can you check the content of C:\.m2\repository\archetype-catalog.xml?
Do you find your archetype in it?

Another thing to check: when building the archetype, did you specify maven-
archetype packaging, and prepared an IT (see [1])?

Regards,

Hervé

[1] http://maven.apache.org/archetype/maven-archetype-plugin/integration-test-
mojo.html

Le mercredi 24 août 2011, Luk255 a écrit :
> Thanks for the quick response!
> 
> Yes, I tried to generate the archetype via mvn archetype:generate
> -DarchetypeCatalog=local
> 
> this is the output I'm getting:
> 
> [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 {execution: default-cli}]
> [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:
> Choose a number: :
> 
> When I use mvn archetype:crawl I get following output:
> 
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [archetype:crawl] (aggregator-style)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [archetype:crawl {execution: default-cli}]
> repository C:\.m2\repository
> catalogFile null
> [INFO] Scanning
> C:\.m2\repository\at\fhj\itm\MavenProjectQuizArchetype-archetype\1.0-SNAPSH
> OT\MavenProjectQuizArchetype-archetype-1.0-SNAPSHOT.jar [INFO]  Archetype
> [at.fhj.itm:MavenProjectQuizArchetype-archetype:1.0-SNAPSHOT] defined by
> repository path
> ....
> 
> So Maven obviously notices the archetype, but still I can't generate a
> project out of it.
> 
> I have to say, when I tried the batch option as in the link you provided
> me, it did work. But why is that?
> 
> Thnak you!
> 
> 
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Create-Archetype-from-Project-tp4726929p4
> 730011.html Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to