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 9345618D7E for ; Fri, 11 Mar 2016 07:50:48 +0000 (UTC) Received: (qmail 46213 invoked by uid 500); 11 Mar 2016 07:50:46 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 46143 invoked by uid 500); 11 Mar 2016 07:50:46 -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 46131 invoked by uid 99); 11 Mar 2016 07:50:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2016 07:50:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 45EDA1A0015 for ; Fri, 11 Mar 2016 07:50:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.299 X-Spam-Level: X-Spam-Status: No, score=0.299 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id za6FyZ_yEK20 for ; Fri, 11 Mar 2016 07:50:43 +0000 (UTC) Received: from mail-2y.bbox.fr (mail-2y.bbox.fr [194.158.98.15]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id BBD9A5F19D for ; Fri, 11 Mar 2016 07:50:42 +0000 (UTC) Received: from herve-desktop.localnet (static-176-183-252-218.ncc.abo.bbox.fr [176.183.252.218]) by mail-2y.bbox.fr (Postfix) with ESMTP id 6EB4B40D for ; Fri, 11 Mar 2016 08:50:36 +0100 (CET) From: =?ISO-8859-1?Q?Herv=E9?= BOUTEMY To: Maven Users List Subject: Re: Site Plugin 3.5 URL behavior and multi-module builds Date: Fri, 11 Mar 2016 08:50:36 +0100 Message-ID: <1963365.EgEZYkklPb@herve-desktop> User-Agent: KMail/4.13.3 (Linux/3.13.0-79-generic; KDE/4.13.3; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" yes, it is expected behaviour: see "inheritance assembly" step of model= =20 builder [1] in your case, your config cause artifactId to be added twice: one on=20= project.url and one on site.url before ${project.url} is interpolated You should just not use ${project.url} in distributionManagement/site: = that's=20 what is causing you the issue Notice: this strategy (adding artifactId) was perfect for a good number= of=20 years, when sites were deployed to filesystems: with sites deployed to = git, it=20 is known that it does not fit this case, and you're not the first to co= mplain=20 (without really understanding why "it does not work as expected" on you= r case:=20 the important part here is *on your case*, because this git case is wha= t cause=20 some new requirements that did not exist before) I have prepared a new feature for (future) Maven 3.4.0 in MNG-5951 [2] This will give attributes to disable artifactId addition on fields that= have=20 this url inheritance feature HTH Regards, Herv=E9 [1] http://maven.apache.org/ref/3-LATEST/maven-model-builder/ [2] https://issues.apache.org/jira/browse/MNG-5951 Le jeudi 10 mars 2016 09:29:09 Elliot Metsger a =E9crit : > Hi, >=20 > I'm using the Maven site plugin with a multi-module build. The gener= ated > site is going to be deployed to GitHub, so I'm only using the Maven s= ite > plugin to generate and stage content locally, not deploy. >=20 > I have a placeholder distributionManagement/site element in my POM so= that > site:stage can generate links between the modules of my site. Howeve= r, my > child modules are getting inexplicable values for their site url: >=20 > Parent module distributionManagement/site (${project.url} =3D > http://dataconservancy.github.io/package-ingest): >=20 > > > github > GitHub Pages Website > ${project.url} > > >=20 > Parent module, help:effective-pom: > > > github > GitHub Pages Website > http://dataconservancy.github.io/package-ingest > > >=20 > So far, so good. However, the child module's > distributionManagement/site/url is not what I expected. Notice that = the > child module name 'package-ingest-api' is repeated twice in the url: >=20 > Child module, help:effective-pom (project url =3D > http://dataconservancy.github.io/package-ingest/package-ingest-api/) > > > github > GitHub Pages Website > > http://dataconservancy.github.io/package-ingest/package-ingest-api/pa= ckage-i > ngest-api > > >=20 > Is this expected behavior? >=20 > Thanks, > Elliot --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org