Hi, I just checked the documentation, import scope in to be used in the depMgmt section. See http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
*import* *(only available in Maven 2.0.9 or later)* This scope is only used on a dependency of type pom in the <dependencyManagement> section. It indicates that the specified POM should be replaced with the dependencies in that POM's <dependencyManagement>section. Since they are replaced, dependencies with a scope of import do not actually participate in limiting the transitivity of a dependency. Cheers 2010/1/25 gabe97330 <[email protected]> > > The Sonatype blog republished a tip from October 2009 in their best of > series > (see > > http://www.sonatype.com/people/2009/10/maven-tips-and-tricks-grouping-dependencies/ > ) > that didn't use scope import for specifying a POM dependency. I tried this > with 3.0 and it works and avoids the warning (see below). > > The confusing thing is that the Maven documentation indicates that > scope=import should be used for POM dependencies (see > > http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope > ). > > Is this a case of using POM dependencies in dependencyManagement vs build? > > > > gabe97330 wrote: > > > > I'm using maven 3.0-alpha-3 and getting a warning on use of dependencies > > of > > scope import in sub-modules although everything works as it did in 2.x. > > there a way to address this warning either through correcting my usage > > (assuming it is a valid warning) or some sort of pragma to turn off the > > warning? > > > > Thanks, > > > > Gabe > > > > > > ----- > > > > Blog: Gabe's Groove > > Twitter: Gabe97330 > > > > > ----- > > Blog: http://gabe97330.begeddov.com Gabe's Groove > > Twitter: http://twitter.com/gabe97330 Gabe97330 > -- > View this message in context: > http://old.nabble.com/maven-3-warning-on-dependency-scope-import--tp26385938p27308001.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
