Vineet Reynolds created FORGE-1134:
--------------------------------------
Summary: Forge fails to resolve dependencies in password protected Maven
repositories
Key: FORGE-1134
URL:
https://issues.jboss.org/browse/FORGE-1134
Project: Forge
Issue Type: Bug
Components: Build Tools - Maven
Affects Versions: 1.4.0.Final
Reporter: Vineet Reynolds
Assignee: Vineet Reynolds
Given a password protected repository defined in settings.xml, like:
{noformat}
...
<server>
<id>central</id>
<username>testuser</username>
<password>testuser123</password></server>
</servers>
...
<profiles>
<profile>
<id>nexus</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>central</id>
<url>http://localhost:8081/nexus/content/repositories/central/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://localhost:8081/nexus/content/repositories/central/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
{noformat}
Forge fails to resolve artifacts, since it does not take the passwords into consideration
when attempting to resolve the artifacts, resulting in an error like so (with the fix for
FORGE-1133) :
{noformat}
[no project] vineet $ forge install-plugin arquillian
***INFO*** Preparing to install plugin: arquillian
***INFO*** Checking out plugin source files to [/tmp/forgetemp6567964705967228540] via
'git'
***INFO*** Switching to branch/tag [refs/heads/1.0.6.Final]
***WARNING*** Failed to read artifact descriptor for org.apache.velocity:velocity:jar:1.7
***WARNING*** Failed to read artifact descriptor for
org.jboss.forge:forge-shell-api:jar:1.0.6.Final
***WARNING*** Failed to read artifact descriptor for
org.jboss.forge:forge-shell:jar:1.0.6.Final
***WARNING*** Failed to read artifact descriptor for
org.jboss.forge:forge-maven-api:jar:1.0.6.Final
***WARNING*** Failed to read artifact descriptor for
org.sonatype.aether:aether-api:jar:1.11
***WARNING*** Failed to read artifact descriptor for
org.jboss.forge:forge-test-harness:jar:1.0.6.Final
***WARNING*** Failed to read artifact descriptor for
org.jboss.forge:forge-javaee-api:jar:1.0.6.Final
***WARNING*** Failed to read artifact descriptor for
org.codehaus.jackson:jackson-core-asl:jar:1.9.1
***WARNING*** Failed to read artifact descriptor for
org.codehaus.jackson:jackson-mapper-asl:jar:1.9.1
***WARNING*** Failed to read artifact descriptor for junit:junit:jar:4.8.2
? The project does not appear to be a Forge Plugin Project, install anyway? [y/N]
***INFO*** Cleaning up temp workspace [/tmp/forgetemp6567964705967228540]
Wrote /home/vineet/.forge/httpsrawgithubcomforgepluginrepositorymasterrepositoryyaml.yaml
Deleted /tmp/forgetemp6567964705967228540
***ERROR*** Exception encountered: Installation aborted (type "set VERBOSE true"
to enable stack traces)
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira