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
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-alpha-5
    • Fix Version/s: 2.0
    • Component/s: Generator
    • Labels:
      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!

        Activity

        Jochen Ehret created issue -
        Hervé Boutemy made changes -
        Field Original Value New Value
        Fix Version/s 2.0-alpha-6 [ 14604 ]
        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!
        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!
        Hervé Boutemy made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Herve Boutemy [ hboutemy ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 09:05:55 UTC 2015 [ 1428224755734 ]
        Mark Thomas made changes -
        Workflow jira [ 12716757 ] Default workflow, editable Closed status [ 12748131 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 22:17:37 UTC 2015 [ 1428272257260 ]
        Mark Thomas made changes -
        Workflow jira [ 12953871 ] Default workflow, editable Closed status [ 12991017 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development