Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-3553

cannot resolve dependency with scope import

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Won't Fix
    • 2.0.9, 2.1.0
    • None
    • None
    • None

    Description

      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>

      Attachments

        1. mng-3553.zip
          3 kB
          Ryan Lea
        2. test-mng3553.zip
          4 kB
          Arnaud Heritier

        Issue Links

          Activity

            People

              jdcasey John Dennis Casey
              tdiesler Thomas Diesler
              Votes:
              17 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: