Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 80283 invoked from network); 1 Mar 2011 16:36:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Mar 2011 16:36:05 -0000 Received: (qmail 75311 invoked by uid 500); 1 Mar 2011 16:36:01 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 74778 invoked by uid 500); 1 Mar 2011 16:35:59 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 74766 invoked by uid 99); 1 Mar 2011 16:35:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2011 16:35:58 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 209.85.212.43 as permitted sender) Received: from [209.85.212.43] (HELO mail-vw0-f43.google.com) (209.85.212.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2011 16:35:52 +0000 Received: by vws18 with SMTP id 18so4850237vws.30 for ; Tue, 01 Mar 2011 08:35:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=aFi+FYQQ4yWezGypiV9ixU5NNVySR304Q9Vf0mblYpo=; b=Ux96bCgm/KT1qmQ/zQGtPcgx1cY26oomg2zZ7LqNQwf3y+TtYzVjQz8Qdr4ur1hYfT QkJit4vvbHiviIIyYF5M3PcHeR5YbrFYjB2hemUXqyjc3x9bJy14ywcIuRXRKD8PiNcD Rt+bnRy1iidVAKUvGZVH5ZFHQuG0VDXRfKx1s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=k8oD4xxgCaS2mU4mTh/DpN9bPC2C1U3qpLvuA56cALhGOm/qfhFEeK0lKwfKFTCsjo 9JyhnG78H7kXPmSQkQnAu7PiWisblCR5U7JqbsLHyafVBpQT34kJcUmhQ/Bvm6DRKFf3 ++hLyF/GMot0TDIWd3M6w3lcCscsYDGqBgPAY= MIME-Version: 1.0 Received: by 10.220.88.37 with SMTP id y37mr1597301vcl.172.1298997330508; Tue, 01 Mar 2011 08:35:30 -0800 (PST) Received: by 10.220.202.197 with HTTP; Tue, 1 Mar 2011 08:35:30 -0800 (PST) In-Reply-To: References: Date: Tue, 1 Mar 2011 16:35:30 +0000 Message-ID: Subject: Re: [SITE] commons skin and parent snapshots uploaded; please test! From: sebb To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 1 March 2011 16:21, Simone Tripodi wrote: > Back, found where the problem is: this section of code > > > =A0 =A0 > =A0 =A0 media=3D"all" /> > =A0 =A0 > =A0 =A0 > > works only if pages are located under the site root; if I put pages > under subdirectories, both css/js wont' be found, that's why I > initially put this snip in the template so we can use the > $relativePath variable. I see - sorry, I'd only tested with top-level pages. > I'd move them back in the template, if you don't see issues, just let me = know. That would obviously fix it, but I had hoped to keep the changes to the template to a minimum so that it's easier to update with fixes from the default template - or even revert to the default if that ever supports footers etc. I still think it would be better to include the specific header code in the site.xml, as it allows changes to be made more easily - e.g. some sites could override it entirely if they wished. If it's fixed in the template they cannot do that. So I think the best would be to change the template to make the necessary path adjustment, as I did for @project.name@ in the footer. I'll upload a new version shortly. > Simo > > http://people.apache.org/~simonetripodi/ > http://www.99soft.org/ > > > > On Tue, Mar 1, 2011 at 1:03 PM, Simone Tripodi = wrote: >> Nope, sorry, I only tested replacing the parent pom in mine, I >> overlooked your sample. Apologizes. >> I tried with both mvn3 and mvn2 but had to suspend the debug due to >> job related stuff, I'll continue on the afternoon. >> I'll let you know soon! >> Simo >> >> http://people.apache.org/~simonetripodi/ >> http://www.99soft.org/ >> >> >> >> On Tue, Mar 1, 2011 at 12:54 PM, sebb wrote: >>> On 1 March 2011 10:35, Simone Tripodi wrote: >>>> Hi Seb, >>>> I just tried upgrading locally the Digester3 parent, but unfortunately >>>> mvn is not able to resolve it; this is what happens with mvn3: >>> >>> Did you use the sample POM I provided? >>> >>> e.g. save as download.xml and run "mvn -f download.xml" >>> >>> Which version of Maven are you using? >>> >>> I've only tried with 2.2.1 so far. >>> >>>> $ mvn clean site && open target/site/index.html >>>> [INFO] Scanning for projects... >>>> [ERROR] The build could not read 1 project -> [Help 1] >>>> [ERROR] >>>> [ERROR] =A0 The project >>>> org.apache.commons:commons-digester3:3.0-SNAPSHOT >>>> (/Users/simonetripodi/Documents/workspace-opensource/commons-digester3= /pom.xml) >>>> has 1 error >>>> [ERROR] =A0 =A0 Non-resolvable parent POM: Could not find artifact >>>> org.apache.commons:commons-parent:pom:19-SNAPSHOT and >>>> 'parent.relativePath' points at wrong local POM @ line 23, column 13 >>>> -> [Help 2] >>>> [ERROR] >>>> [ERROR] To see the full stack trace of the errors, re-run Maven with >>>> the -e switch. >>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >>>> [ERROR] >>>> [ERROR] For more information about the errors and possible solutions, >>>> please read the following articles: >>>> [ERROR] [Help 1] >>>> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingExcept= ion >>>> [ERROR] [Help 2] >>>> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelExce= ption >>>> >>>> and this is what happens with mvn2: >>>> >>>> $ mvn clean site && open target/site/index.html >>>> [INFO] Scanning for projects... >>>> [INFO] ---------------------------------------------------------------= --------- >>>> [ERROR] FATAL ERROR >>>> [INFO] ---------------------------------------------------------------= --------- >>>> [INFO] Error building POM (may not be this project's POM). >>>> >>>> >>>> Project ID: null:commons-digester3:jar:3.0-SNAPSHOT >>>> >>>> Reason: Cannot find parent: org.apache.commons:commons-parent for >>>> project: null:commons-digester3:jar:3.0-SNAPSHOT for project >>>> null:commons-digester3:jar:3.0-SNAPSHOT >>>> >>>> >>>> [INFO] ---------------------------------------------------------------= --------- >>>> [INFO] Trace >>>> org.apache.maven.reactor.MavenExecutionException: Cannot find parent: >>>> org.apache.commons:commons-parent for project: >>>> null:commons-digester3:jar:3.0-SNAPSHOT for project >>>> null:commons-digester3:jar:3.0-SNAPSHOT >>>> =A0 =A0 =A0 =A0at org.apache.maven.DefaultMaven.getProjects(DefaultMav= en.java:404) >>>> =A0 =A0 =A0 =A0at org.apache.maven.DefaultMaven.doExecute(DefaultMaven= .java:272) >>>> =A0 =A0 =A0 =A0at org.apache.maven.DefaultMaven.execute(DefaultMaven.j= ava:138) >>>> =A0 =A0 =A0 =A0at org.apache.maven.cli.MavenCli.main(MavenCli.java:362= ) >>>> =A0 =A0 =A0 =A0at org.apache.maven.cli.compat.CompatibleMain.main(Comp= atibleMain.java:60) >>>> =A0 =A0 =A0 =A0at sun.reflect.NativeMethodAccessorImpl.invoke0(Native = Method) >>>> =A0 =A0 =A0 =A0at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMe= thodAccessorImpl.java:39) >>>> =A0 =A0 =A0 =A0at sun.reflect.DelegatingMethodAccessorImpl.invoke(Dele= gatingMethodAccessorImpl.java:25) >>>> =A0 =A0 =A0 =A0at java.lang.reflect.Method.invoke(Method.java:597) >>>> =A0 =A0 =A0 =A0at org.codehaus.classworlds.Launcher.launchEnhanced(Lau= ncher.java:315) >>>> =A0 =A0 =A0 =A0at org.codehaus.classworlds.Launcher.launch(Launcher.ja= va:255) >>>> =A0 =A0 =A0 =A0at org.codehaus.classworlds.Launcher.mainWithExitCode(L= auncher.java:430) >>>> =A0 =A0 =A0 =A0at org.codehaus.classworlds.Launcher.main(Launcher.java= :375) >>>> Caused by: org.apache.maven.project.ProjectBuildingException: Cannot >>>> find parent: org.apache.commons:commons-parent for project: >>>> null:commons-digester3:jar:3.0-SNAPSHOT for project >>>> null:commons-digester3:jar:3.0-SNAPSHOT >>>> =A0 =A0 =A0 =A0at org.apache.maven.project.DefaultMavenProjectBuilder.= assembleLineage(DefaultMavenProjectBuilder.java:1396) >>>> =A0 =A0 =A0 =A0at org.apache.maven.project.DefaultMavenProjectBuilder.= buildInternal(DefaultMavenProjectBuilder.java:823) >>>> =A0 =A0 =A0 =A0at org.apache.maven.project.DefaultMavenProjectBuilder.= buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508) >>>> =A0 =A0 =A0 =A0at org.apache.maven.project.DefaultMavenProjectBuilder.= build(DefaultMavenProjectBuilder.java:200) >>>> =A0 =A0 =A0 =A0at org.apache.maven.DefaultMaven.getProject(DefaultMave= n.java:604) >>>> =A0 =A0 =A0 =A0at org.apache.maven.DefaultMaven.collectProjects(Defaul= tMaven.java:487) >>>> =A0 =A0 =A0 =A0at org.apache.maven.DefaultMaven.getProjects(DefaultMav= en.java:391) >>>> =A0 =A0 =A0 =A0... 12 more >>>> Caused by: org.apache.maven.project.ProjectBuildingException: POM >>>> 'org.apache.commons:commons-parent' not found in repository: Unable to >>>> download the artifact from any repository >>>> >>>> =A0org.apache.commons:commons-parent:pom:19-SNAPSHOT >>>> >>>> from the specified remote repositories: >>>> =A0central (http://repo1.maven.org/maven2) >>>> >>>> =A0for project org.apache.commons:commons-parent >>>> =A0 =A0 =A0 =A0at org.apache.maven.project.DefaultMavenProjectBuilder.= findModelFromRepository(DefaultMavenProjectBuilder.java:605) >>>> =A0 =A0 =A0 =A0at org.apache.maven.project.DefaultMavenProjectBuilder.= assembleLineage(DefaultMavenProjectBuilder.java:1392) >>>> =A0 =A0 =A0 =A0... 18 more >>>> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundExceptio= n: >>>> Unable to download the artifact from any repository >>>> >>>> =A0org.apache.commons:commons-parent:pom:19-SNAPSHOT >>>> >>>> installing locally both the skin and the parent, the code highlighter >>>> doesn't work, even if they are declared in the header. I'm firebugging >>>> to figure out why. >>>> >>>> Thanks, have a nice day, >>>> Simo >>>> >>>> http://people.apache.org/~simonetripodi/ >>>> http://www.99soft.org/ >>>> >>>> >>>> >>>> On Mon, Feb 28, 2011 at 9:09 PM, sebb wrote: >>>>> I've uploaded Commons Skin 3-SNAPSHOT and Parent 19-SNAPSHOT to allow >>>>> testing of site builds. >>>>> >>>>> The generated pages should include: >>>>> * a clickable link to ApacheCon at the bottom of the menu, >>>>> * trademark notices at the bottom of each page >>>>> * nicer formatting of source code using colours to distinguish e.g. >>>>> strings and keywords. >>>>> * updated standard menu items. >>>>> >>>>> Note that I have not yet changed commons-maven.css, so there will be = a >>>>> redundant (unclickable) ApacheCon logo at the top of the LHS menu. >>>>> >>>>> Please try out the new parent & skin and report any problems - just >>>>> change the component POM temporarily to depend on Commons Parent >>>>> 19-SNAPSHOT and this should pick up the skin too. >>>>> >>>>> I decided to use relative URLs for the prettify CSS and Javascript >>>>> because this means the formatting will work without needing to stage >>>>> or upload the site pages. >>>>> >>>>> You'll need to install Commons-Parent 19-SNAPSHOT to your local repo >>>>> first, for example by using the following pom: >>>>> >>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>>> >>>> =A0xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" >>>>> =A0xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 >>>>> http://maven.apache.org/maven-v4_0_0.xsd"> >>>>> =A04.0.0 >>>>> =A0 >>>>> =A0 >>>>> =A0 =A0org.apache >>>>> =A0 =A0apache >>>>> =A0 =A09 >>>>> =A0 >>>>> =A0test >>>>> =A0 >>>>> =A0 =A0 >>>>> =A0 =A0 =A0org.apache.commons >>>>> =A0 =A0 =A0commons-parent >>>>> =A0 =A0 =A019-SNAPSHOT >>>>> =A0 =A0 =A0pom >>>>> =A0 =A0 >>>>> =A0 >>>>> =A0 >>>>> =A0 =A0compile >>>>> =A0 >>>>> >>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >>>>> For additional commands, e-mail: dev-help@commons.apache.org >>>>> >>>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >>>> For additional commands, e-mail: dev-help@commons.apache.org >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >>> For additional commands, e-mail: dev-help@commons.apache.org >>> >>> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org