tag:blogger.com,1999:blog-8881614386511851669.post750240485370496616..comments2023-09-28T04:42:53.936-05:00Comments on Chad the Developer: Maven2, Multiple Source Directories, and the Build Helper PluginChad Sturtzhttp://www.blogger.com/profile/01006373101241061379noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-8881614386511851669.post-17911386670991357952012-02-13T16:31:31.805-06:002012-02-13T16:31:31.805-06:00This was very helpful. Thanks!This was very helpful. Thanks!Parminder Singhhttps://www.blogger.com/profile/15949068930661928834noreply@blogger.comtag:blogger.com,1999:blog-8881614386511851669.post-41362642686939118332011-06-09T05:03:29.720-05:002011-06-09T05:03:29.720-05:00Thanks!Thanks!Martin Gladdishhttps://www.blogger.com/profile/13088206281847397140noreply@blogger.comtag:blogger.com,1999:blog-8881614386511851669.post-87272984165244209482010-08-22T01:59:11.270-05:002010-08-22T01:59:11.270-05:00A sidenote: the directory layout convention for ge...A sidenote: the directory layout convention for generated sources seems to be generated-sources/[plugin prefix], not generated/src...<br /><br />See http://www.mail-archive.com/users@maven.apache.org/msg30636.html.Dietrich Schultenhttps://www.blogger.com/profile/11234250039688748774noreply@blogger.comtag:blogger.com,1999:blog-8881614386511851669.post-19914873036211985242010-04-01T16:20:33.572-05:002010-04-01T16:20:33.572-05:00Thanks, I've just copy and paste your code.Thanks, I've just copy and paste your code.Franck Garciahttps://www.blogger.com/profile/05349779252521132333noreply@blogger.comtag:blogger.com,1999:blog-8881614386511851669.post-16361802018802727612009-11-17T09:49:02.635-06:002009-11-17T09:49:02.635-06:00I found this article very helpful! Thank you.I found this article very helpful! Thank you.James Kingsberynoreply@blogger.comtag:blogger.com,1999:blog-8881614386511851669.post-4749243127635041832009-10-01T16:29:15.345-05:002009-10-01T16:29:15.345-05:00This is exactly what I was looking for. Thanks for...This is exactly what I was looking for. Thanks for sharing.hhttps://www.blogger.com/profile/15888199353699055869noreply@blogger.comtag:blogger.com,1999:blog-8881614386511851669.post-59716370517775841372009-09-28T04:58:11.163-05:002009-09-28T04:58:11.163-05:00hi,
thanks a lot. that was really helpful.
howev...hi,<br /><br />thanks a lot. that was really helpful.<br /><br />however, it doen't seem to work if we want to generate javadoc or checkstyle report.. <br /><br />have any idea plz?<br /><br />thanks in advanceDoha ROUAShttps://www.blogger.com/profile/02236285835344604022noreply@blogger.comtag:blogger.com,1999:blog-8881614386511851669.post-42281655777018548082009-08-12T14:28:44.007-05:002009-08-12T14:28:44.007-05:00This comment has been removed by the author.Disgruntled Dave:https://www.blogger.com/profile/01853951607460409204noreply@blogger.comtag:blogger.com,1999:blog-8881614386511851669.post-68334926549689841032009-07-22T05:36:44.673-05:002009-07-22T05:36:44.673-05:00Thanks a lot, just what I needed.Thanks a lot, just what I needed.Wilemhttps://www.blogger.com/profile/13101948518830692189noreply@blogger.comtag:blogger.com,1999:blog-8881614386511851669.post-26869155178093108152009-04-23T09:18:00.000-05:002009-04-23T09:18:00.000-05:00Cybernomad does maven really automaticly finds gen...Cybernomad does maven really automaticly finds generated sources under /targ/generated-sources/MYPLGIN/<br /><br />?Rickard.Lundinnoreply@blogger.comtag:blogger.com,1999:blog-8881614386511851669.post-73969146961354701912009-02-12T10:20:00.000-06:002009-02-12T10:20:00.000-06:00Actually, in your case, you do not need to explici...Actually, in your case, you do not need to explicitly add the cxf generated source code to Maven2 source. The codegen is performed in phase generate-sources, which will tell Maven2 to add the generated source to the sources to compile.CyberNomadhttps://www.blogger.com/profile/09463738117619778614noreply@blogger.comtag:blogger.com,1999:blog-8881614386511851669.post-28434195956637270672008-09-11T08:34:00.000-05:002008-09-11T08:34:00.000-05:00Very helpful; just what I was looking for. Thanks...Very helpful; just what I was looking for. Thanks!Sam Bloomquisthttps://www.blogger.com/profile/05109963930013072801noreply@blogger.comtag:blogger.com,1999:blog-8881614386511851669.post-24613319703947116592008-04-04T16:01:00.000-05:002008-04-04T16:01:00.000-05:00I've found this really helpful - I was struggling ...I've found this really helpful - I was struggling with exactly the same problem, creating a Mojo class based on an existing Mojo that I declared as a dependency in the POM. It isn't obvious, but if you do this the compiler needs access to the source of the parent class and its parents as well, otherwise Plexus cannot process the annotations and the usual symptom is that <B>this.project == null</B>. So I got the maven-dependency-plugin to download the sources and unpack them into my target area. But until I found your posting I was tearing my hair out trying to work out how to get the compiler to recognise them.<BR/><BR/>By the way, may I make a comment on your example POM? It's dangerous to assume that the output of your build is in ${basedir}/target - sometimes it isn't, for example if you want to use certain code coverage analysers. These fork off a modified lifecycle to compile the instrumented code in a temporary target area. Much safer to use ${project.build.directory}.Immo Hünekehttps://www.blogger.com/profile/17107000566759440656noreply@blogger.com