I'm sure there are probably other pom's out there that do not
correctly define the dependencies. So in these cases what is the
suggested way of overriding them so they are not included? Including
the dependency again and using optional doesn't fix the problem,
nor does changing the scope to provided, but this might be because
EasyConf depends on xdoclet:xdoclet:jar:1.2.1 which is not available
at ibiblio.
Maybe you can use the hacks I described above, it would have helped
had I not done the n00b thing and forget to install the parent pom
which has the dependency management section in it...
However the correct way is to add an exclusions section to the dependency:
Something like:
<dependency>
<groupId>easyconf</groupId>
<artifactId>easyconf</artifactId>
<version>0.9.5</version>
<!-- EasyConf workaround for poor dependency definitions
i.e. bringing in the kitchen sink -->
<exclusions>
<exclusion>
<groupId>struts</groupId>
<artifactId>struts</artifactId>
</exclusion>
...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]