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

Maven archetype:generate hangs on retrieval of archetype-catalog.xml even on offline mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.1
    • None
    • Generator
    • None

    Description

      Steps to reproduce 

      1.a Have slow connection 

      1.b.Alternatively, simulate slow connection with crapify

      1.b.1. Install crapify - npm install crapify -g

      1.b.2. Run crapify - crapify --port=5000 --speed=1 start

      1.b.3. Configure ~/.m2/settings.xml to use crapify

      <settings>
      ...
         <proxies>
             <proxy>
                 <id>crapify-proxy</id>
                 <active>true</active>
                 <protocol>http</protocol>
                 <host>localhost</host>
                 <port>5000</port>
             </proxy>
          </proxies>
      ...
      </settings>

       

      2. Execute 

      $ mvn archetype:generate -DgroupId=com.example -DartifactId=example -Dversion=1.0-SNAPSHOT -o
      

        

      Expected Behaviour:

      The list of available archetypes would be shown to the user. 

      Note: I believe in older versions, only the basic archetypes are shown like quickstart

       

      Actual Behaviour:

      Maven command hangs in this last last line:

      [DEBUG] Searching for remote catalog: https://repo.maven.apache.org/maven2/archetype-catalog.xml
      

       

      Attachments

        1. build.log
          20 kB
          Franz Allan Valencia See

        Activity

          People

            Unassigned Unassigned
            franz_see Franz Allan Valencia See
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: