Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Aggregator javadoc dependency problem

On Fri, Oct 12, 2012 at 1:25 PM, Igor Fedorenko <igor@xxxxxxxxxxxxxx> wrote:
I am not sure what can be done here, to be honest. The javadoc jar is on build classpath, so m2e correctly puts it on compile classpath. Problem is, Maven does not have proper model for attached artifacts, so m2e has no way to determine the contents of javadoc jar and just adds entire project.

--
Regards,
Igor


Well, I don't actually want it on the build classpath, I just want it to be generated and made available to the sub project so I can serve it from the jetty target. There doesn't seem to be a dependency scope that indicates that something is needed by a project but should not be on the classpath.

I can configure the dependency:build-classpath plugin to exclude the javadoc classifier, but that doesn't seem to affect m2e. Nor do I gather that it is actually excluding it from the real classpath during the build. Is there some maven option I'm missing here that would let me exclude it from the classpath but still use it as a dependency?

I admit I don't appreciate the implications, but would it be worth reconsidering whether to allow packaging=pom projects to specify that they want a java nature? It looks like that would help with this issue, and it seems that there are some projects that really do need to compile sources from their aggregator projects.

 
--
Chris Conroy


Back to the top