RE: Alternate build step
Then what I would do is list those reports you care about in the reports section of the project.xml. Some of those reports may require that the code gets compiled first. If you can't do the compile with maven, then you won't be able to include those reports. I reduced my reports section to: reports reportmaven-javadoc-plugin/report reportmaven-checkstyle-plugin/report reportmaven-changelog-plugin/report reportmaven-developer-activity-plugin/report reportmaven-file-activity-plugin/report reportmaven-tasklist-plugin/report reportmaven-linkcheck-plugin/report /reports then ran maven site and it never even tried to run java:compile. -Original Message- From: Reid Pinchback [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 8:21 AM To: Maven Users List; Jamie Bisotti Subject: Re: Alternate build step Trying to coordinate work between local developers and an outsource firm. All the info that site publishes is exactly what I want. All the project and team info, link to issues site, mailing lists, etc. is spot on. The only challenge is to gradually get more out of the report generation while still using Ant for the real guts of code building. Perhaps someday the entire build will be Maven-based, but not yet. For now, I'm just tackling things one step at a time until other developers have a chance to get used to Maven being part of the environment. --- Jamie Bisotti [EMAIL PROTECTED] wrote: What exactly do you want the site to consist of? Why not just do maven checkstyle xdoc? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Alternate build step
Reis, To get your colleagues 'hot' for maven (if that's what's going on), check out the maven-ant-plugin while you are fully mavenized, your colleagues can still use ant... http://maven.apache.org/reference/plugins/ant/ Dennis On 7/21/05, Reid Pinchback [EMAIL PROTECTED] wrote: Thanks to everybody. I now have Maven working exactly as I want it to. Not bad, 3 pieces of advice from one request, all of them useful in combination. :-) Final solution was: - specify the sourceDirectory - override the java:compile goal - specify checkstyle as (currently) the only report I want. JDepend was one of the default reports, and it definitely forced a compile to happen. Something I want to use eventually, but not the most immediate priority. I'll tackle more of the Ant-to-Maven conversion later so we can use other reports, but for now I'll just be happy if availability of the checkstyle reports curbs folks from littering code with bogus imports and introducing method names like setFOO_BAR and getFOO_BAR. --- David Jackman [EMAIL PROTECTED] wrote: Then what I would do is list those reports you care about in the reports section of the project.xml. Some of those reports may require that the code gets compiled first. If you can't do the compile with maven, then you won't be able to include those reports. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Alternate build step
Reid - I would just define your own goal in the maven.xml file and call that. You can make it then call the checkstyle goal by using attainGoal or whatever else you want it to do. -marc -Original Message- From: Reid Pinchback [mailto:[EMAIL PROTECTED] Sent: Wed 7/20/2005 6:01 PM To: users@maven.apache.org Cc: Subject: Alternate build step Yes, I'm a newbie. I trolled through faqs and did some web searches and didn't see what I'm looking for. If you know a specific place that addresses the question I'm about to ask, please send me pointer to it. Situation: I have an existing Ant-based build environment involving multiple projects and multiple developers. For a host of obvious reasons, sweeping changes don't go through overnight. I'm in the process of using Maven for mavenish things, but the bulk of day-to-day developer activity will, for some time, be Ant. Changing that isn't on the table without consequences involving hot tar and a bunch of plucked chickens. I'd like Maven to be able to do things like run Checkstyle when I build the site. What I don't want is for it to perform its default Java build steps. I don't want Maven to know anything about how the various software products are really built. I don't mind it knowing where the Java source is, but I don't want it to do anything with it. What I really want is for it to insert my Ant build as a *replacement* for what it normally does... not as some pre-goal to doing its thing. I don't want it doing its thing. It's thing isn't going to do me any good. In the future maybe we'll go all Maven, but what I've described is what I need to achieve for the present. So in summary the idea is: maven site causes my ant target to be invoked (I see in the docs how to invoke an ant task), and then runs checkstyle, and then builds the site, but never tries to compile or deploy anything. How do I do that? Thanks in advance, Reid __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Alternate build step
That sounds promising. This is probably going to sound like the dumbest newbie question in the world, but how do I do that? I suspect you're talking about setting up a goal in maven.xml. Not yet fully up to speed on the goal/namespace relationship in Maven, and I bet that is rather key to what you suggest. --- dan tran [EMAIL PROTECTED] wrote: how about overide java:compile to do nothing? -D __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Alternate build step
correct add goal name=java:compile / to override the implementation of http://maven.apache.org/reference/plugins/java/goals.html to your maven.xml -D On 7/20/05, Reid Pinchback [EMAIL PROTECTED] wrote: That sounds promising. This is probably going to sound like the dumbest newbie question in the world, but how do I do that? I suspect you're talking about setting up a goal in maven.xml. Not yet fully up to speed on the goal/namespace relationship in Maven, and I bet that is rather key to what you suggest. --- dan tran [EMAIL PROTECTED] wrote: how about overide java:compile to do nothing? -D __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Alternate build step
What exactly do you want the site to consist of? Why not just do maven checkstyle xdoc? On 7/21/05, dan tran [EMAIL PROTECTED] wrote: correct add goal name=java:compile / to override the implementation of http://maven.apache.org/reference/plugins/java/goals.html to your maven.xml -D On 7/20/05, Reid Pinchback [EMAIL PROTECTED] wrote: That sounds promising. This is probably going to sound like the dumbest newbie question in the world, but how do I do that? I suspect you're talking about setting up a goal in maven.xml. Not yet fully up to speed on the goal/namespace relationship in Maven, and I bet that is rather key to what you suggest. --- dan tran [EMAIL PROTECTED] wrote: how about overide java:compile to do nothing? -D __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jamie Bisotti Software Engineer Lexmark International, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]