[ http://jira.codehaus.org/browse/MECLIPSE-32?page=comments#action_68206 ]
Baerrach bonDierne commented on MECLIPSE-32: -------------------------------------------- Barry, See http://maven.apache.org/ref/2.0.3-SNAPSHOT/maven-model/maven.html Brett means that the configuration you require would be done inside the eclipse plugin pluginManagement section rather than specifying it within the dependency declaration. Since only the eclipse plugin cares about the different types of project references it makes sense to include it there. These values could also be specified on the command line, rather than in a configuration, if the plugin is designed to support this. It's all in the Better Builds With Maven book, Section 5 Developing Custom Maven Plugins. I've pasted the relevant section of pom.xml, it would go into the configuration tag as Brett's snippet above shows. {noformat} <pluginManagement> <plugins> <plugin> <groupId/> <artifactId/> <version/> <extensions/> <executions> <execution> <id/> <phase/> <goals/> <inherited/> <configuration/> </execution> </executions> {noformat} > Allow for forcing the creation of direct project references for dependencies > ---------------------------------------------------------------------------- > > Key: MECLIPSE-32 > URL: http://jira.codehaus.org/browse/MECLIPSE-32 > Project: Maven 2.x Eclipse Plugin > Type: Improvement > Versions: 2.0 > Reporter: Barry Kaplan > > > For some thirdparty dependencies, it is common (for me at least) that an > eclipse project for that dependency does/will exist in the workspace. It > would be nice if dependencies in eclipse projects can be forced to use a > direct project reference. eg: > <dependency> > <groupId>backport-util-concurrent</groupId> > <artifactId>backport-util-concurrent</artifactId> > <version>2.0_01_pd</version> > <scope>runtime</scope> > <properties> > <property name="eclipse.dependencyType" value="XXXX"/> > </properties> > </dependency> > Where XXXX can be: > - 'project' -- always create a project reference > - 'jar' -- always create a jar reference as in MNG-955 > - 'auto' -- the behavior prior to MNG-955 -- 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