Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 069EF18A41 for ; Thu, 14 Jan 2016 05:36:22 +0000 (UTC) Received: (qmail 46539 invoked by uid 500); 14 Jan 2016 05:36:20 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 46467 invoked by uid 500); 14 Jan 2016 05:36:20 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 46456 invoked by uid 99); 14 Jan 2016 05:36:20 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jan 2016 05:36:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 0ECA8C0078 for ; Thu, 14 Jan 2016 05:36:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.798 X-Spam-Level: X-Spam-Status: No, score=0.798 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_MSPIKE_H2=-0.001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id y99chwTTvQhI for ; Thu, 14 Jan 2016 05:36:09 +0000 (UTC) Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 243D842ADC for ; Thu, 14 Jan 2016 05:36:09 +0000 (UTC) Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u0E5a7QY016905 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 14 Jan 2016 05:36:08 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u0E5a7GG016218 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 14 Jan 2016 05:36:07 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u0E5a7U9005074 for ; Thu, 14 Jan 2016 05:36:07 GMT MIME-Version: 1.0 Message-ID: <3f598021-7427-489b-8884-e9f385429aa6@default> Date: Wed, 13 Jan 2016 21:36:06 -0800 (PST) From: Robert Patrick Sender: Robert Patrick To: Maven Users List Subject: RE: Maven javadoc plugin's aggregate-jar goal, multi-module project, and code generation References: <2eb29082-92c9-4f13-a06f-a1803d33d331@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 15.0.4551.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0021.oracle.com [141.146.126.233] Yeah, but that won't help since the code is not all in a single module. By= default, the aggregate-jar goal docs claim it is bound to the package phas= e and all of my source in the submodules are generated in the generate-sour= ces phase.=20 Now that I analyze the output more carefully, it appears that the aggregate= -jar goal is running the aggregate goal during the generate-sources phase a= nd somehow causing the builds of the modules in parallel (even though I did= n't tell it to do so). The 58 warnings are all from mod4, mod5, and mod6 (= the last 3 submodules in the modules list)--even though mod1, mod2, and mod= 3 also use the exact same code generation and referencing techniques. So t= his makes me think that there is a bug in the parallel execution logic. -----Original Message----- From: Sarath Shasikumar [mailto:sarath.shasikumar@tcs.com]=20 Sent: Wednesday, January 13, 2016 11:05 PM To: Maven Users List Cc: Robert Patrick Subject: Re: Maven javadoc plugin's aggregate-jar goal, multi-module projec= t, and code generation To execute plugin during certain phase, add to . Plugin = should be fired: attach-javadocs install <------ HERE aggregate-jar Regards Sarath Shasikumar Systems Engineer Tata Consultancy Services Cell:- +91 97 46 136153 Mailto: sarath.shasikumar@tcs.com Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Consulting ____________________________________________ From: Robert Patrick To: users@maven.apache.org Date: 01/14/2016 10:24 AM Subject: Maven javadoc plugin's aggregate-jar goal, multi-module=20 project, and code generation I am beating my head against the wall on this and surely I am just being st= upid so hopefully someone will take pity on me and point me in the right di= rection. =20 I am trying to add Javadoc generation into my normal build process for my= =20 multi-module project. It all works fine if I run "mvn install" on the=20 project followed by "mvn javadoc:aggregate-jar" but I would really like to= =20 be able to generate the javadocs jar as part of the normal build so that=20 it: =20 - Gets built by default (without having to remember to run the=20 extra command) - Sets attached to the build so that the install plugin installs it =20 I put something like the following in the top-level POM (the module names= =20 have been changed to protect the innocent.): =20 mod1 mod2 mod3 mod4 mod5 mod6 org.apache.maven.plugins maven-javadoc-plugin generate-javadoc aggregate-jar =20 Unfortunately, this runs the aggregate-jar goal first, before building the= =20 modules. Since Java code in the modules reference classes generated by=20 the module build, the build generates tons of warnings from the Javadoc=20 plugin about not finding the generated classes (which makes sense since=20 they don't exist yet) like this: =20 [WARNING] import com.mycompany.mod4.resources.MyResourceBundle; [WARNING] ^ [WARNING]=20 C:\myproject\mod4\src\main\java\com\mycompany\mod4\MyApplication.java:24:= =20 error: package com.mycompany.mod4.resources does not exist =20 Is there really no way to do this with code generation?=20 =20 Thanks, Robert =20 =3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D Notice: The information contained in this e-mail message and/or attachments to it may contain=20 confidential or privileged information. If you are=20 not the intended recipient, any dissemination, use,=20 review, distribution, printing or copying of the=20 information contained in this e-mail message=20 and/or attachments to it are strictly prohibited. If=20 you have received this communication in error,=20 please notify us by reply e-mail or telephone and=20 immediately and permanently delete the message=20 and any attachments. Thank you --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org