Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 47552 invoked from network); 3 Mar 2008 14:18:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2008 14:18:32 -0000 Received: (qmail 81991 invoked by uid 500); 3 Mar 2008 14:18:19 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 81938 invoked by uid 500); 3 Mar 2008 14:18:19 -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 81927 invoked by uid 99); 3 Mar 2008 14:18:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2008 06:18:19 -0800 X-ASF-Spam-Status: No, hits=-0.8 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [132.174.29.209] (HELO mshieldserver1.oclc.org) (132.174.29.209) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 03 Mar 2008 14:17:29 +0000 Received: From OAEXCH4SERVER.oa.oclc.org ([132.174.29.227]) by mshieldserver1.oclc.org (WebShield SMTP v4.5 MR2); id 1204553868624; Mon, 3 Mar 2008 09:17:48 -0500 Received: from OAEXCH2SERVER.oa.oclc.org ([132.174.29.220]) by OAEXCH4SERVER.oa.oclc.org with Microsoft SMTPSVC(6.0.3790.3959); Mon, 3 Mar 2008 09:17:48 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Maven2 site plugin inheritence Date: Mon, 3 Mar 2008 09:17:48 -0500 Message-ID: <85055FA347C14043835BD64615F1238F14F489@OAEXCH2SERVER.oa.oclc.org> In-Reply-To: <15743257.post@talk.nabble.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Maven2 site plugin inheritence Thread-Index: Ach84sDoQDM031wQQGuPH52KQV0V0QAVlUEw References: <15743257.post@talk.nabble.com> From: "Prystash,John" To: "Maven Users List" X-OriginalArrivalTime: 03 Mar 2008 14:17:48.0312 (UTC) FILETIME=[5B946980:01C87D39] X-Virus-Checked: Checked by ClamAV on apache.org I've used this workaround to get help with this issue, at least for site-deploy, in the parent POM: file://${user.dir}/site All the links in the resulting site work. This might not help with the inheritance issue, but it might give you a place to start from. -----Original Message----- From: ewryan [mailto:ewryan@gmail.com]=20 Sent: Thursday, February 28, 2008 1:53 PM To: users@maven.apache.org Subject: Maven2 site plugin inheritence I have a multi-module project with the following directory structure: my-app | |---my-client-ui | | | |---pom.xml | |---my-core | | | |---pom.xml | |---my-common | | | |---pom.xml | |---pom.xml I define properties such as ${myVersion}, ${myArtifactId}, ${myGroupId} in the parent pom. These properties are inherited by the children (as expected) when running goals such as clean, package, or install. =20 I start to see problems when I try to use the site plugin. I first run the install goal to install my project's jars and poms into my local repo(~/.m2/repository/). I then verify that the jars and poms are in my local repo. When I try to run the site plugin it seems as though maven is unable to interpret the properties defined in the parent pom. I receive the following output for each module: [INFO] ------------------------------------------------------------------------ [INFO] Building my-client-ui [INFO] task-segment: [site] [INFO] ------------------------------------------------------------------------ [INFO] [site:site] Downloading: http://repo1.maven.org/maven2/${myGroupId}/${myArtifactId}/${myVersion}/ ${myArtifactId}-${myVersion}.pom [WARNING] Unable to load parent project from repository: Failed to validate POM for project ${myGroupId}:${myArtifactId} at Artifact [${myGroupId}:${myArtifactId}:pom:${myVersion}] [INFO] Generating "Continuous Integration" report....... I've tried using site:deploy, site:run, and site:stage. In all cases I receive a successful build, but all sites generated contain broken links. (Note. parent pom's distributionManagement site url=3Dfile:///home/eric/tmp)=20 When using site:deploy, there are two issues with the site. The first is that none of the modules are listed for the project on the left hand side of the screen. The second is that when I go to the Dependence Convergence section, the links to my project's modules are broken. In example, the link to my-client-ui incorrectly points to http://www.mycompany.com/my-client-ui when it is in fact located at file:///home/eric/tmp/my-client-ui (Note. http://www.mycompany.com is defined in the parent pom as the project's url). =20 site:run demonstrates the same problems as site:deploy.=20 When using site:stage -DstagingDirectory=3D/home/eric/tmp, there are = again two issues w/ the site. The first is the same, none of the modules are listed on the left hand side of the screen. The second is also the same, except that the links in the Dependency Convergence section now point to file:///home/eric/localhost/home/eric/tmp/my-client-ui. This is incorrect because the files are actually located at file:///home/eric/tmp/localhost/home/eric/tmp/my-client-ui. It is missing the tmp directory in the url string. =20 The only way I've been able to get the modules to be displayed on the left hand side of the screen is using mvn -N site site:deploy. In this case, the links point to the "correct" place (file:///home/eric/tmp/my-client-ui), but the submodule's sites are never build because of the -N (non-recursive) flag. Another thing to note is that the Dependency Convergence section is totally missing from this site. The only way I've been able to build a site with links that resolve properly is if I remove all instances of properties in all of my poms and replace them with hard coded values. In this case, the correct links for the modules do appear on the left hand side of the screen. The downfall to this approach is that the links in the Dependency Convergence section now point to http://www.mycompany.com/my-client-ui. My question is, is it possible for me to use the site plugin with property inheritance? -- View this message in context: http://www.nabble.com/Maven2-site-plugin-inheritence-tp15743257s177p1574 3257.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org