[ http://jira.codehaus.org/browse/MNG-2686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter closed MNG-2686. ----------------------------- Resolution: Cannot Reproduce Fix Version/s: (was: 2.2.x) Assignee: Brett Porter as of 2.0.9, Mark's example works. I cannot reproduce the original poster's situation. If you still experience the problem, please create a small test project and reopen. > POM dependency scope auto-downgrades from provided to test > ---------------------------------------------------------- > > Key: MNG-2686 > URL: http://jira.codehaus.org/browse/MNG-2686 > Project: Maven 2 & 3 > Issue Type: Bug > Components: Dependencies > Affects Versions: 2.0.4 > Reporter: Frank Cornelis > Assignee: Brett Porter > Priority: Critical > > My project has a dependency on: > XXX:YYY:jar:1.0-SNAPSHOT (selected for null) > with transitive dependency: > commons-logging:commons-logging:jar:1.1:test > and again triggering a transitive dependency on: > javax.servlet:servlet-api:jar:2.3:test (selected for test) > Later on the project also has a dependency: > AAA:BBB-container:pom:1.0-SNAPSHOT:provided (selected for provided) > I use this to represent the dependencies provided by the J2EE container in > which the application will be deployed. > This triggers via: > tomcat:catalina:jar:5.5.15:provided (selected for provided) > the following funny thing: > javax.servlet:servlet-api:jar:2.4:provided (removed - nearer found: 2.3) > Leaving me without servlet-api for the compile scope. -- 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