commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Tripodi <simonetrip...@apache.org>
Subject Re: [SITE] commons skin and parent snapshots uploaded; please test!
Date Tue, 01 Mar 2011 16:38:40 GMT
Don't worry, tests are to discover such kind of problem :)
OK nice, looking forward to test against next fixes, thanks!!!
Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Tue, Mar 1, 2011 at 5:35 PM, sebb <sebbaz@gmail.com> wrote:
> On 1 March 2011 16:21, Simone Tripodi <simonetripodi@apache.org> wrote:
>> Back, found where the problem is: this section of code
>>
>> <head>
>>    <!-- Better display of <source> code sections -->
>>    <link rel="stylesheet" href="./css/prettify.css" type="text/css"
>> media="all" />
>>    <script type="text/javascript" src="./js/prettify.js"></script>
>>    <script type="text/javascript">
>>        window.onload=function() {
>>            prettyPrint();
>>        }
>>    </script>
>>    </head>
>>
>> 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 <simonetripodi@apache.org> 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 <sebbaz@gmail.com> wrote:
>>>> On 1 March 2011 10:35, Simone Tripodi <simonetripodi@apache.org> 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]   The project
>>>>> org.apache.commons:commons-digester3:3.0-SNAPSHOT
>>>>> (/Users/simonetripodi/Documents/workspace-opensource/commons-digester3/pom.xml)
>>>>> has 1 error
>>>>> [ERROR]     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/ProjectBuildingException
>>>>> [ERROR] [Help 2]
>>>>> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
>>>>>
>>>>> 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
>>>>>        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
>>>>>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
>>>>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>>>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>>>        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>>        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>>        at 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
>>>>>        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396)
>>>>>        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
>>>>>        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
>>>>>        at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
>>>>>        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
>>>>>        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
>>>>>        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
>>>>>        ... 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
>>>>>
>>>>>  org.apache.commons:commons-parent:pom:19-SNAPSHOT
>>>>>
>>>>> from the specified remote repositories:
>>>>>  central (http://repo1.maven.org/maven2)
>>>>>
>>>>>  for project org.apache.commons:commons-parent
>>>>>        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
>>>>>        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)
>>>>>        ... 18 more
>>>>> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
>>>>> Unable to download the artifact from any repository
>>>>>
>>>>>  org.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 <sebbaz@gmail.com> 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:
>>>>>>
>>>>>> ===========
>>>>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>>>>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>>>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>>>> http://maven.apache.org/maven-v4_0_0.xsd">
>>>>>>  <modelVersion>4.0.0</modelVersion>
>>>>>>  <!-- Depend on ASF parent in order to define the snapshot repo
-->
>>>>>>  <parent>
>>>>>>    <groupId>org.apache</groupId>
>>>>>>    <artifactId>apache</artifactId>
>>>>>>    <version>9</version>
>>>>>>  </parent>
>>>>>>  <artifactId>test</artifactId>
>>>>>>  <dependencies>
>>>>>>    <dependency>
>>>>>>      <groupId>org.apache.commons</groupId>
>>>>>>      <artifactId>commons-parent</artifactId>
>>>>>>      <version>19-SNAPSHOT</version>
>>>>>>      <type>pom</type>
>>>>>>    </dependency>
>>>>>>  </dependencies>
>>>>>>  <build>
>>>>>>    <defaultGoal>compile</defaultGoal>
>>>>>>  </build>
>>>>>> </project>
>>>>>> ===========
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> 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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message