Friday, April 27, 2007

Maven eclipse and double classpath entry

When creating dependencies in your project's POM the type element is not required for a dependency element. It is important to include the type element if the dependency is of type ejb. <dependency> <groupId>bodog.platform</groupId> <artifactId>mailer-ejb</artifactId> <version>${platform.version}</version> <scope>provided</scope> <type>ejb</type> </dependency> Executing mvn eclipse:eclipse without this type element can lead to double entries in your eclipse .classpath file. This happens with inconsistent definitions of the dependency, as the eclipse:eclipse plugin creates entries for both ejb and jar types.

0 comments:

Post a Comment