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

John Casey commented on MNG-3553:
---------------------------------

Waiting for Arnaud to get back to me with a test case for his problem where the 
repository definition overrides central and is declared in the settings.xml. 
This repository override should apply globally, so I'm not sure what's going 
wrong here.

I've attempted to duplicate the scenario, but have had no success causing a 
failure based on his descriptions:

{noformat}
  I have this issue but in my case I don't define any repository in my
projects. I override the central definition in my user's settings to use our
corporate repo. This method always works to build projects except when I'm
using imports : Maven tries to download dependencies from the real central.
Why my settings doesn't override it ?
  To fix I had to use a proxy * to always use the corporate repo. Personnaly
I don't like that because I had to merge in the same group, releases and
snapshots.
  I have no idea to fix it but :
  - I don't want to define my corporate repository in all poms
  - It's really annoying today to have only this case which doesn't work
when we override the central repo definition.

...AND...

A default-profile in my activeProfiles
In this profil I have 2 repositories :
- one for releases with the id central
- one for snashots with the id snapshot

Each repository is an archiva / nexus group
{noformat}

> 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, 2.1.0
>            Reporter: Thomas Diesler
>            Priority: Critical
>             Fix For: 2.0.11, 2.2.0
>
>         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
> [tdies...@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

        

Reply via email to