[MNG-3553] cannot resolve dependency with scope import
envgap__apache__maven-5101
Original GitHub issue ↗Opened 2008-04-28
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not checked yet.
- No curated issue-specific recipe or verified environment fix is available.
02 / ENVIRONMENT RECIPE
- Base commit
Not freshly verified- Manifest
pom.xml- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
apache/maven #5101 · read the original issue
**[Thomas Diesler](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=tdiesler)** opened **[MNG-3553](https://issues.apache.org/jira/browse/MNG-3553?redirect=false)** and commented
This pom when added as a dependency of another project does not see repository http://snapshots.jboss.org/maven2
\<!---- DependencyManagement -->
\<dependencyManagement>
\<dependencies>
\<dependency>
\<groupId>org.jboss.jbossas\</groupId>
\<artifactId>jboss-as-component-matrix\</artifactId>
\<version>${jboss.version}\</version>
\<type>pom\</type>
\<scope>import\</scope>
\</dependency>
\</dependencies>
\</dependencyManagement>
with effective settings
[tdiesler@tddell trunk]$ mvn help:effective-settings
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] JBoss Web Services - Stack CXF
[INFO] JBoss Web Services - Stack CXF Management
[INFO] JBoss Web Services - Stack CXF Runtime Server
[INFO] JBoss Web Services - Stack CXF Runtime Client
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO] ------------------------------------------------------------------------
[INFO] Building JBoss Web Services - Stack CXF
[INFO] task-segment: [help:effective-settings] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [help:effective-settings]
[INFO]
Effective settings:
\<?xml version="1.0"?>\<settings>
\<localRepository>/home/tdiesler/.m2/repository\</localRepository>
\<profiles>
\<profile>
\<activation>
\<property>
\<name>!jboss.repository.off\</name>
\</property>
\</activation>
\<repositories>
\<repository>
\<snapshots />
\<id>snapshots.jboss.org\</id>
\<url>http://snapshots.jboss.org/maven2\</url>
\</repository>
\<repository>
\<snapshots>
\<enabled>false\</enabled>
\</snapshots>
\<id>repository.jboss.org\</id>
\<url>http://repository.jboss.org/maven2\</url>
\</repository>
\</repositories>
\<id>jboss.repository\</id>
\</profile>
\</profiles>
\<activeProfiles>
\<activeProfile>user-profile\</activeProfile>
\</activeProfiles>
\<pluginGroups>
\<pluginGroup>org.jboss.maven.plugins\</pluginGroup>
\</pluginGroups>
\</settings>
---
**Affects:** 2.0.9, 2.1.0
**Attachments:**
- [mng-3553.zip](https://issues.apache.org/jira/secure/attachment/12712799/mng-3553.zip) (_2.72 kB_)
- [test-mng3553.zip](https://issues.apache.org/jira/secure/attachment/12712901/test-mng3553.zip) (_3.75 kB_)
**Issue Links:**
- [MNG-4148](https://issues.apache.org/jira/browse/MNG-4148) Apply profiles from settings.xml to POMs built from the repository
17 votes, 8 watchers
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]
Issue-specific recipe and runtime smoke command require review against the complete issue and repository.
Legacy reproduction is generic install-only; match the actual issue failure before admission.