Hello all,

I create my own archetype and deploy it to my company repository (Nexus 1.5).
Now some developers try to use my archetype by calling:
mvn archetype:generate -DarchetypeGroupId=com.magenta.maven.archetypes -DarchetypeArtifactId=magenta-basic-project -DarchetypeVersion=0.1-SNAPSHOT

Archetype plugin failed with unavailability to connect to central repo and said me: [WARNING] No archetype found in Remote catalog. Defaulting to internal Catalog.

We use proxy server, and it's ok that archetype plugin can't get central catalog. My archetype is not registered in internal archetype-plugin catalog (it's predefined). And my archetype is not registered in local repository catalog, because it was installed on another developer computer. So, archetype plugin can't find my plugin in any available catalog on a developer computer.

So my question is: Is archetype-plugin really need to have information about archetype in archetype catalog to generate project from it??? And -DarchetypeGroupId=com.magenta.maven.archetypes -DarchetypeArtifactId=magenta-basic-project -DarchetypeVersion=0.1-SNAPSHOT is not enough??? Just before I think, that plugin just looking for archetype in repositories like any another artifact.

Please, solve my doubt.

Best regards,
Aleksey Didik.

P.S. Looks like I need to use nexus archetype plugin to create my nexus archetype catalog and define it usage on a 'generate' goal.






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

Reply via email to