Maven Archetype
  1. Maven Archetype
  2. ARCHETYPE-320

Generator contacts central repo although archetype is available on local Nexus

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-alpha-5
    • Fix Version/s: 2.0
    • Component/s: Generator
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Im 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, Im 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 doesnt work because we dont have proxy settings for that)

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

      Thanks a lot!

        Activity

        Hide
        Herve Boutemy added a comment -

        fixed in r997185

        Show
        Herve Boutemy added a comment - fixed in r997185

          People

          • Assignee:
            Herve Boutemy
            Reporter:
            Jochen Ehret
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: