Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-320

Generator contacts central repo although archetype is available on local Nexus

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0-alpha-5
    • 2.0
    • Generator
    • None

    Description

      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!

      Attachments

        Activity

          People

            hboutemy Herve Boutemy
            jochenehret Jochen Ehret
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: