Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.1
-
None
-
None
-
macOS High Sierra v10.13.1
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T15:58:13+08:00)
Maven home: /opt/maven/active
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.13.1", arch: "x86_64", family: "mac"macOS High Sierra v10.13.1 java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode) Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T15:58:13+08:00) Maven home: /opt/maven/active Java version: 1.8.0_121, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "10.13.1", arch: "x86_64", family: "mac"
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