[ 
http://jira.codehaus.org/browse/ARCHETYPE-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Herve Boutemy updated ARCHETYPE-320:
------------------------------------

      Description: 
I´m calling an archetype from our local Nexus like this:

{noformat}mvn archetype:generate
    -DarchetypeArtifactId=myArchetypeId
    -DarchetypeGroupId=myGroupId
    -DarchetypeVersion=myVersion
    -DarchetypeRepository=http://myNexus{noformat}
    
The archetype is successfully retrieved and started. However, I´m also getting 
this Exception:

{noformat}  [INFO] --- maven-archetype-plugin:2.0-alpha-5:generate 
(default-cli) @ standalone-pom ---
  [INFO] Generating project in Interactive mode
  [WARNING] Error reading archetype catalog http://repo1.maven.org/maven2
  org.apache.maven.wagon.TransferFailedException: Error transferring file: 
repo1.maven.org
        at 
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143)
          (...)
        ... 25 more
  [WARNING] No archetype found in Remote catalog. Defaulting to internal Catalog
  [INFO] Archetype defined by properties{noformat}

It seems that the archetype-plugin tries to contact the central catalog 
although it has already found the archetype on our Nexus. (Connecting the 
central repo doesn´t work because we don´t have proxy settings for that) 

Can you please deactivate the unneeded connection attempt to the central repo?

Thanks a lot!

  was:
I´m calling an archetype from our local Nexus like this:

mvn archetype:generate
    -DarchetypeArtifactId=myArchetypeId
    -DarchetypeGroupId=myGroupId
    -DarchetypeVersion=myVersion
    -DarchetypeRepository=http://myNexus
    
The archetype is successfully retrieved and started. However, I´m also getting 
this Exception:

  [INFO] --- maven-archetype-plugin:2.0-alpha-5:generate (default-cli) @ 
standalone-pom ---
  [INFO] Generating project in Interactive mode
  [WARNING] Error reading archetype catalog http://repo1.maven.org/maven2
  org.apache.maven.wagon.TransferFailedException: Error transferring file: 
repo1.maven.org
        at 
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143)
          (...)
        ... 25 more
  [WARNING] No archetype found in Remote catalog. Defaulting to internal Catalog
  [INFO] Archetype defined by properties

It seems that the archetype-plugin tries to contact the central catalog 
although it has already found the archetype on our Nexus. (Connecting the 
central repo doesn´t work because we don´t have proxy settings for that) 

Can you please deactivate the unneeded connection attempt to the central repo?

Thanks a lot!

    Fix Version/s: 2.0-alpha-6

> Generator contacts central repo although archetype is available on local Nexus
> ------------------------------------------------------------------------------
>
>                 Key: ARCHETYPE-320
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-320
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Generator
>    Affects Versions: 2.0-alpha-5
>            Reporter: Jochen Ehret
>            Priority: Minor
>             Fix For: 2.0-alpha-6
>
>
> I´m calling an archetype from our local Nexus like this:
> {noformat}mvn archetype:generate
>     -DarchetypeArtifactId=myArchetypeId
>     -DarchetypeGroupId=myGroupId
>     -DarchetypeVersion=myVersion
>     -DarchetypeRepository=http://myNexus{noformat}
>     
> The archetype is successfully retrieved and started. However, I´m also 
> getting this Exception:
> {noformat}  [INFO] --- maven-archetype-plugin:2.0-alpha-5:generate 
> (default-cli) @ standalone-pom ---
>   [INFO] Generating project in Interactive mode
>   [WARNING] Error reading archetype catalog http://repo1.maven.org/maven2
>   org.apache.maven.wagon.TransferFailedException: Error transferring file: 
> repo1.maven.org
>         at 
> org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143)
>           (...)
>         ... 25 more
>   [WARNING] No archetype found in Remote catalog. Defaulting to internal 
> Catalog
>   [INFO] Archetype defined by properties{noformat}
> It seems that the archetype-plugin tries to contact the central catalog 
> although it has already found the archetype on our Nexus. (Connecting the 
> central repo doesn´t work because we don´t have proxy settings for that) 
> Can you please deactivate the unneeded connection attempt to the central repo?
> Thanks a lot!

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


Reply via email to