You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ralph Goers (JIRA)" <ji...@codehaus.org> on 2008/11/03 23:22:51 UTC

[jira] Commented: (MNG-3553) cannot resolve dependency with scope import

    [ http://jira.codehaus.org/browse/MNG-3553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=152960#action_152960 ] 

Ralph Goers commented on MNG-3553:
----------------------------------

I tried your test project and wasn't able to duplicate the problem.
1. I had to modify each project to add a maven repository to deploy to. I used my local file system.

          <repositories>
            <repository>
              <id>my-internal-site</id>
              <url>file:///home/rago2483/test-repo</url>
            </repository>
          </repositories>
          <distributionManagement>
            <!-- use the following if you're not using a snapshot version. -->
            <repository>
              <id>repo</id>
              <name>Repository Name</name>
              <url>file:///home/rago2483/test-repo</url>
            </repository>
            <!-- use the following if you ARE using a snapshot version. -->
            <snapshotRepository>
              <id>repo</id>
              <name>Repository Name</name>
              <url>file:///home/rago2483/test-repo</url>
            </snapshotRepository>
          </distributionManagement>
2. I then followed the instructions and got:
rago2483@rago2483:~/test/mng-3553/test-depends-on-importer$ mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building test-depends-on-importer
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] snapshot mng-3553:test-importer:1.0-SNAPSHOT: checking for updates from apacheSnapshots
[INFO] snapshot mng-3553:test-importer:1.0-SNAPSHOT: checking for updates from my-internal-site
Downloading: file:///home/rago2483/test-repo/mng-3553/test-importer/1.0-SNAPSHOT/test-importer-1.0-20081103.220540-2.pom
1K downloaded
[INFO] snapshot mng-3553:test-parent:1.0-SNAPSHOT: checking for updates from my-internal-site
Downloading: file:///home/rago2483/test-repo/mng-3553/test-parent/1.0-SNAPSHOT/test-parent-1.0-20081103.220540-6.pom
1K downloaded
[INFO] snapshot mng-3553:test-core:1.0-SNAPSHOT: checking for updates from apacheSnapshots
[INFO] snapshot mng-3553:test-core:1.0-SNAPSHOT: checking for updates from my-internal-site
Downloading: file:///home/rago2483/test-repo/mng-3553/test-core/1.0-SNAPSHOT/test-core-1.0-20081103.220540-3.pom
1K downloaded
Downloading: file:///home/rago2483/test-repo/mng-3553/test-importer/1.0-SNAPSHOT/test-importer-1.0-20081103.220540-2.jar
1K downloaded
Downloading: file:///home/rago2483/test-repo/mng-3553/test-core/1.0-SNAPSHOT/test-core-1.0-20081103.220540-3.jar
1K downloaded
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] [install:install]
[INFO] Installing /home/rago2483/test/mng-3553/test-depends-on-importer/target/test-depends-on-importer-1.0-SNAPSHOT.jar to /home/rago2483/.m2/repository/mng-3553/test-depends-on-importer/1.0-SNAPSHOT/test-depends-on-importer-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Mon Nov 03 14:13:45 PST 2008
[INFO] Final Memory: 7M/13M
[INFO] ------------------------------------------------------------------------


> cannot resolve dependency with scope import
> -------------------------------------------
>
>                 Key: MNG-3553
>                 URL: http://jira.codehaus.org/browse/MNG-3553
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.9
>            Reporter: Thomas Diesler
>             Fix For: 2.0.11
>
>         Attachments: mng-3553.zip
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira