Vadym Lotar created ARCHETYPE-530: ------------------------------------- Summary: [archetype:create-from-project] Proxy configuration from settings.xml is not taken into account Key: ARCHETYPE-530 URL: https://issues.apache.org/jira/browse/ARCHETYPE-530 Project: Maven Archetype Issue Type: Bug Components: Plugin Affects Versions: 3.0.1 Reporter: Vadym Lotar
Hello, While trying to create an archetype out of source project applying global settings.xml which contains proxy configuration, plugin fails with the following error: {color:red}[INFO] Scanning for projects... [INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/archetype/archetype-packaging/3.0.1/archetype-packaging-3.0.1.pom [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Unresolveable build extension: Plugin org.apache.maven.archetype:archetype-packaging:3.0.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.archetype:archetype-packaging:jar:3.0.1 @ [ERROR] Unknown packaging: maven-archetype @ line 8, column 14 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.adidas.pc:kafka_consumer-archetype:1.0-SNAPSHOT (/opt/jenkins/workspace/PC/pcdsp/archetypes/kafka-consumer-archetype-build/target/generated-sources/archetype/pom.xml) has 2 errors [ERROR] Unresolveable build extension: Plugin org.apache.maven.archetype:archetype-packaging:3.0.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.archetype:archetype-packaging:jar:3.0.1: Could not transfer artifact org.apache.maven.archetype:archetype-packaging:pom:3.0.1 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.112.215] failed: Connection timed out (Connection timed out) -> [Help 2] [ERROR] Unknown packaging: maven-archetype @ line 8, column 14{color} It appeared that the plugin creates new org.apache.maven.shared.invoker.InvocationRequest to "package" the archetype without applying configuration specified in settings.xml. Being more precise, I feel like the invocation request itself has to be built in a little bit different way here, so local and global settings.xml are passed: org/apache/maven/archetype/creator/FilesetArchetypeCreator.java:281 Please, let me know if more information needs to be provided. Best. -- This message was sent by Atlassian JIRA (v6.4.14#64029)