George Gastaldi created SHRINKRES-89:
----------------------------------------
Summary: Failed tests when a profile is enabled in user config settings.xml
Key: SHRINKRES-89
URL:
https://issues.jboss.org/browse/SHRINKRES-89
Project: ShrinkWrap Resolvers
Issue Type: Bug
Environment: RHEL 6
Reporter: George Gastaldi
Assignee: Andrew Rubinger
The following tests fail when a profile is enabled by default in ~/.m2/settings.xml:
{code}
Failed tests:
shouldHaveCentralMavenRepositoryDisabled(org.jboss.shrinkwrap.resolver.impl.maven.integration.DisabledCentralRepositoryTestCase):
Expected exception: org.jboss.shrinkwrap.resolver.api.NoResolvedResultException
Tests in error:
overrideGlobalSettings(org.jboss.shrinkwrap.resolver.impl.maven.bootstrap.SystemPropertyPrecedenceTestCase):
Unable to get artifact from the repository, reason: Could not find artifact
org.jboss.shrinkwrap.test:test-deps-c:jar:1.0.0 in jboss-public-repository
(
https://repository.jboss.org/nexus/content/groups/public/)
{code}
These are the profiles I have enabled in my settings.xml:
{code:xml}
<profile>
<id>gpg</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.useagent>true</gpg.useagent>
<gpg.executable>gpg2</gpg.executable>
</properties>
</profile>
<profile>
<id>jboss-public-repository</id>
<repositories>
<repository>
<id>jboss-public-repository</id>
<name>Repositorio JBoss</name>
<
url>https://repository.jboss.org/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jboss-public-repository</id>
<name>JBoss Public Maven Repository Group</name>
<
url>https://repository.jboss.org/nexus/content/groups/public/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
{code}
--
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