[ 
https://issues.apache.org/jira/browse/ARCHETYPE-521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15886684#comment-15886684
 ] 

Nathan Thomas commented on ARCHETYPE-521:
-----------------------------------------

[~rfscholte] There doesn't seem to be any documentation surrounding specifying 
the repository (id: archetype) in the settings.xml, I did the obvious and under 
my active profile created a repository with the id set to archetype and the url 
pointed to my archetype-catalog.xml, when that didn't work I tried just 
pointing to my repository, both were not successful. What am I missing here?  
Any example or documentation I can see related to this?
Is there a parameter similar to <releases> or <snapshot> that needs to be 
enabled?


> Cannot specify remote repository for generate project from archetype
> --------------------------------------------------------------------
>
>                 Key: ARCHETYPE-521
>                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-521
>             Project: Maven Archetype
>          Issue Type: Question
>          Components: Generator
>    Affects Versions: 3.0.0
>         Environment: cmd
>            Reporter: Dmytro Sylaiev
>              Labels: bug, command-line, question
>
> I wanted to create new project using mvn archetype:generate command.
> Desired archetype was absent in the central repo, so I tried to use 
> -DarchetypeRepository=repo.url param. But this param is out of date in 3.0.0 
> version of plugin.
> So I needed to use  mvn 
> org.apache.maven.plugins:maven-archetype-plugin:2.4:generate command. 
> Question: How can I specify specific repository for generating project 
> (without editing settings.xml file)? 
> (-DarchetypeCatalog=repo.url doesn't work too)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to