You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Javier Diaz (JIRA)" <ji...@codehaus.org> on 2008/09/30 11:31:45 UTC

[jira] Created: (ARCHETYPE-206) Document how to generate a project from archetype with authenticated repository

Document how to generate a project from archetype with authenticated repository
-------------------------------------------------------------------------------

                 Key: ARCHETYPE-206
                 URL: http://jira.codehaus.org/browse/ARCHETYPE-206
             Project: Maven Archetype
          Issue Type: Improvement
    Affects Versions: 2.0-alpha-4
            Reporter: Javier Diaz


When the archetypes are in a password protected repository you can't download the archetype unless repository authentication information is specified in the settings.xml file, as follows:

<server>
<id><archetype name>-repo</id>
<username>myuser</username>
<password>XXXXXX</password>
<filePermissions>664</filePermissions>
<directoryPermissions>775</directoryPermissions>
<configuration></configuration>
</server>

And the command should be invoked with the archetypeRepository option as follows:

mvn archetype:generate -DarchetypeGroupId=mygroup \
-DarchetypeArtifactId=<archetype-name> \
-DarchetypeVersion=XXXXX -DgroupId=com.abc \
-DartifactId=dummy \
-Dversion=1.0.0-SNAPSHOT \
-DarchetypeRepository=http://www.abc.com/maven2 \

-- 
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

        

[jira] Commented: (ARCHETYPE-206) Document how to generate a project from archetype with authenticated repository

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/ARCHETYPE-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=240187#action_240187 ] 

Herve Boutemy commented on ARCHETYPE-206:
-----------------------------------------

Marcello: see ARCHETYPE-204

> Document how to generate a project from archetype with authenticated repository
> -------------------------------------------------------------------------------
>
>                 Key: ARCHETYPE-206
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-206
>             Project: Maven Archetype
>          Issue Type: Improvement
>    Affects Versions: 2.0-alpha-4
>            Reporter: Javier Diaz
>             Fix For: 2.0
>
>
> When the archetypes are in a password protected repository you can't download the archetype unless repository authentication information is specified in the settings.xml file, as follows:
> {code:xml}<server>
>   <id><archetype name>-repo</id>
>   <username>myuser</username>
>   <password>XXXXXX</password>
>   <filePermissions>664</filePermissions>
>   <directoryPermissions>775</directoryPermissions>
>   <configuration></configuration>
> </server>{code}
> And the command should be invoked with the archetypeRepository option as follows:
> {noformat}mvn archetype:generate -DarchetypeGroupId=mygroup \
> -DarchetypeArtifactId=<archetype-name> \
> -DarchetypeVersion=XXXXX -DgroupId=com.abc \
> -DartifactId=dummy \
> -Dversion=1.0.0-SNAPSHOT \
> -DarchetypeRepository=http://www.abc.com/maven2{noformat}

-- 
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

        

[jira] Closed: (ARCHETYPE-206) Document how to generate a project from archetype with authenticated repository

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/ARCHETYPE-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed ARCHETYPE-206.
-----------------------------------

    Resolution: Fixed
      Assignee: Herve Boutemy

FAQ entry added in r1024429

> Document how to generate a project from archetype with authenticated repository
> -------------------------------------------------------------------------------
>
>                 Key: ARCHETYPE-206
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-206
>             Project: Maven Archetype
>          Issue Type: Improvement
>    Affects Versions: 2.0-alpha-4
>            Reporter: Javier Diaz
>            Assignee: Herve Boutemy
>             Fix For: 2.0
>
>
> When the archetypes are in a password protected repository you can't download the archetype unless repository authentication information is specified in the settings.xml file, as follows:
> {code:xml}<server>
>   <id><archetype name>-repo</id>
>   <username>myuser</username>
>   <password>XXXXXX</password>
>   <filePermissions>664</filePermissions>
>   <directoryPermissions>775</directoryPermissions>
>   <configuration></configuration>
> </server>{code}
> And the command should be invoked with the archetypeRepository option as follows:
> {noformat}mvn archetype:generate -DarchetypeGroupId=mygroup \
> -DarchetypeArtifactId=<archetype-name> \
> -DarchetypeVersion=XXXXX -DgroupId=com.abc \
> -DartifactId=dummy \
> -Dversion=1.0.0-SNAPSHOT \
> -DarchetypeRepository=http://www.abc.com/maven2{noformat}

-- 
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

        

[jira] Updated: (ARCHETYPE-206) Document how to generate a project from archetype with authenticated repository

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/ARCHETYPE-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated ARCHETYPE-206:
------------------------------------

    Description: 
When the archetypes are in a password protected repository you can't download the archetype unless repository authentication information is specified in the settings.xml file, as follows:

{code:xml}<server>
  <id><archetype name>-repo</id>
  <username>myuser</username>
  <password>XXXXXX</password>
  <filePermissions>664</filePermissions>
  <directoryPermissions>775</directoryPermissions>
  <configuration></configuration>
</server>{code}

And the command should be invoked with the archetypeRepository option as follows:

{noformat}mvn archetype:generate -DarchetypeGroupId=mygroup \
-DarchetypeArtifactId=<archetype-name> \
-DarchetypeVersion=XXXXX -DgroupId=com.abc \
-DartifactId=dummy \
-Dversion=1.0.0-SNAPSHOT \
-DarchetypeRepository=http://www.abc.com/maven2{noformat}

  was:
When the archetypes are in a password protected repository you can't download the archetype unless repository authentication information is specified in the settings.xml file, as follows:

<server>
<id><archetype name>-repo</id>
<username>myuser</username>
<password>XXXXXX</password>
<filePermissions>664</filePermissions>
<directoryPermissions>775</directoryPermissions>
<configuration></configuration>
</server>

And the command should be invoked with the archetypeRepository option as follows:

mvn archetype:generate -DarchetypeGroupId=mygroup \
-DarchetypeArtifactId=<archetype-name> \
-DarchetypeVersion=XXXXX -DgroupId=com.abc \
-DartifactId=dummy \
-Dversion=1.0.0-SNAPSHOT \
-DarchetypeRepository=http://www.abc.com/maven2 \


> Document how to generate a project from archetype with authenticated repository
> -------------------------------------------------------------------------------
>
>                 Key: ARCHETYPE-206
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-206
>             Project: Maven Archetype
>          Issue Type: Improvement
>    Affects Versions: 2.0-alpha-4
>            Reporter: Javier Diaz
>
> When the archetypes are in a password protected repository you can't download the archetype unless repository authentication information is specified in the settings.xml file, as follows:
> {code:xml}<server>
>   <id><archetype name>-repo</id>
>   <username>myuser</username>
>   <password>XXXXXX</password>
>   <filePermissions>664</filePermissions>
>   <directoryPermissions>775</directoryPermissions>
>   <configuration></configuration>
> </server>{code}
> And the command should be invoked with the archetypeRepository option as follows:
> {noformat}mvn archetype:generate -DarchetypeGroupId=mygroup \
> -DarchetypeArtifactId=<archetype-name> \
> -DarchetypeVersion=XXXXX -DgroupId=com.abc \
> -DartifactId=dummy \
> -Dversion=1.0.0-SNAPSHOT \
> -DarchetypeRepository=http://www.abc.com/maven2{noformat}

-- 
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

        

[jira] Updated: (ARCHETYPE-206) Document how to generate a project from archetype with authenticated repository

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/ARCHETYPE-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated ARCHETYPE-206:
------------------------------------

    Fix Version/s: 2.0-alpha-6

> Document how to generate a project from archetype with authenticated repository
> -------------------------------------------------------------------------------
>
>                 Key: ARCHETYPE-206
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-206
>             Project: Maven Archetype
>          Issue Type: Improvement
>    Affects Versions: 2.0-alpha-4
>            Reporter: Javier Diaz
>             Fix For: 2.0-alpha-6
>
>
> When the archetypes are in a password protected repository you can't download the archetype unless repository authentication information is specified in the settings.xml file, as follows:
> {code:xml}<server>
>   <id><archetype name>-repo</id>
>   <username>myuser</username>
>   <password>XXXXXX</password>
>   <filePermissions>664</filePermissions>
>   <directoryPermissions>775</directoryPermissions>
>   <configuration></configuration>
> </server>{code}
> And the command should be invoked with the archetypeRepository option as follows:
> {noformat}mvn archetype:generate -DarchetypeGroupId=mygroup \
> -DarchetypeArtifactId=<archetype-name> \
> -DarchetypeVersion=XXXXX -DgroupId=com.abc \
> -DartifactId=dummy \
> -Dversion=1.0.0-SNAPSHOT \
> -DarchetypeRepository=http://www.abc.com/maven2{noformat}

-- 
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

        

[jira] Commented: (ARCHETYPE-206) Document how to generate a project from archetype with authenticated repository

Posted by "Marcello Teodori (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/ARCHETYPE-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=193066#action_193066 ] 

Marcello Teodori commented on ARCHETYPE-206:
--------------------------------------------

there should be also an option to specify the repositoryId explicitly, I wouldn't want to add a temporary entry in settings.xml every time I download a new archetype... also archetype name means archetypeArtifactId?

> Document how to generate a project from archetype with authenticated repository
> -------------------------------------------------------------------------------
>
>                 Key: ARCHETYPE-206
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-206
>             Project: Maven Archetype
>          Issue Type: Improvement
>    Affects Versions: 2.0-alpha-4
>            Reporter: Javier Diaz
>
> When the archetypes are in a password protected repository you can't download the archetype unless repository authentication information is specified in the settings.xml file, as follows:
> <server>
> <id><archetype name>-repo</id>
> <username>myuser</username>
> <password>XXXXXX</password>
> <filePermissions>664</filePermissions>
> <directoryPermissions>775</directoryPermissions>
> <configuration></configuration>
> </server>
> And the command should be invoked with the archetypeRepository option as follows:
> mvn archetype:generate -DarchetypeGroupId=mygroup \
> -DarchetypeArtifactId=<archetype-name> \
> -DarchetypeVersion=XXXXX -DgroupId=com.abc \
> -DartifactId=dummy \
> -Dversion=1.0.0-SNAPSHOT \
> -DarchetypeRepository=http://www.abc.com/maven2 \

-- 
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