On Thu, Feb 18, 2016 at 8:36 PM, Michael Osipov <[email protected]> wrote:
> Am 2016-02-18 um 20:56 schrieb Andreas Veithen:
>>
>> -1 (non binding).
>>
>> I think that somehow inheritance for the <head> element is broken. I
>> have a project that configures a Google Analytics snippet in the root
>> module's site descriptor. I changed that to use a CDATA section and
>> that works for the root module, but the <head> element is ignored in
>> submodules. The problem doesn't occur with 3.4.
>>
>> You can test that using the following branch:
>>
>> https://svn.apache.org/repos/asf/webservices/axiom/branches/maven-site-plugin-3.5
>
>
> Just copied and tried to build.
> "mvn install" fails with:
> [ERROR] Failed to execute goal
> org.codehaus.gmavenplus:gmavenplus-plugin:1.5:execute (generate-policy-file)
> on project axiom: Error occurred while calling a method on a Groovy class
> from classpath. InvocationTargetException: startup failed:
> [ERROR] Script1.groovy: 4: unexpected char: '\' @ line 4, column 99.
> [ERROR] ion java.io.FilePermission "C:\Program F
> [ERROR] ^
> [ERROR]
>
> "mvn  clean site -DskipSiteSite=false  -fn -U" works except for the
> distribution. The reason why you don't see your analytics stuff injected is
> because you are using Fluido Skin 1.4. Full compat is given
> upto MSITE 3.4 [1]. I have swapped for 1.5-SNAPSHOT and all works fine.
>
> I intend to release Default Skin 1.2 and Fluido 1.5 as soon as Maven Site
> Plugin is released.
>
> So this is just a misconfiguration rather than an issue.
>
> [1] https://maven.apache.org/skins/
>
> Michael

Thanks. Just curious: why does the issue only occur in submodules?

Changing my vote to +1.

Andreas

>
>> On Thu, Feb 18, 2016 at 6:53 PM, Michael Osipov <[email protected]>
>> wrote:
>>>
>>> Am 2016-02-18 um 19:07 schrieb jieryn:
>>>>
>>>>
>>>> -1, non-binding, mvn-3.3.9, openjdk 1.8.0_71 ... works with 3.4, fails
>>>> with 3.5
>>>>
>>>> src/site/site.xml snippet
>>>>
>>>>     <body>
>>>>       <head>
>>>>         <link rel="shotcut icon" href="${baseurl}/images/favicon.ico" />
>>>>         <link rel="stylesheet" type="text/css"
>>>> href="${baseurl}/css/site.css" />
>>>>       </head>
>>>>
>>>> mvn-3.3.9 log:
>>>>
>>>> [ERROR] Failed to execute goal
>>>> org.apache.maven.plugins:maven-site-plugin:3.5:run (default-cli) on
>>>> project parent: Unable to set up webapp: SiteToolException: Error
>>>> parsing site descriptor: TEXT must be immediately followed by END_TAG
>>>> and not START_TAG (position: START_TAG seen ...  <link rel="shotcut
>>>> icon" href="${baseurl}/images/favicon.ico" />... @58:71) -> [Help 1]
>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>>> execute goal org.apache.maven.plugins:maven-site-plugin:3.5:run
>>>> (default-cli) on project parent: Unable to set up webapp
>>>>           at
>>>>
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
>>>>           at
>>>>
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>>>           at
>>>>
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>>>           at
>>>>
>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>>>>           at
>>>>
>>>> org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:185)
>>>>           at
>>>>
>>>> org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:181)
>>>>           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>>>           at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>>>           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>>>           at
>>>>
>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>>>           at
>>>>
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>>>           at java.lang.Thread.run(Thread.java:745)
>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to
>>>> set up webapp
>>>>           at
>>>>
>>>> org.apache.maven.plugins.site.run.SiteRunMojo.createWebApplication(SiteRunMojo.java:218)
>>>>           at
>>>>
>>>> org.apache.maven.plugins.site.run.SiteRunMojo.execute(SiteRunMojo.java:87)
>>>>           at
>>>>
>>>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>>>>           at
>>>>
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
>>>>           ... 11 more
>>>> Caused by: org.apache.maven.plugin.MojoExecutionException:
>>>> SiteToolException: Error parsing site descriptor
>>>>           at
>>>>
>>>> org.apache.maven.plugins.site.descriptor.AbstractSiteDescriptorMojo.prepareDecorationModel(AbstractSiteDescriptorMojo.java:91)
>>>>           at
>>>>
>>>> org.apache.maven.plugins.site.render.AbstractSiteRenderingMojo.createSiteRenderingContext(AbstractSiteRenderingMojo.java:279)
>>>>           at
>>>>
>>>> org.apache.maven.plugins.site.run.SiteRunMojo.createWebApplication(SiteRunMojo.java:175)
>>>>           ... 14 more
>>>> Caused by: org.apache.maven.doxia.tools.SiteToolException: Error
>>>> parsing site descriptor
>>>>           at
>>>>
>>>> org.apache.maven.doxia.tools.DefaultSiteTool.readDecorationModel(DefaultSiteTool.java:1192)
>>>>           at
>>>>
>>>> org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:1104)
>>>>           at
>>>>
>>>> org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:423)
>>>>           at
>>>>
>>>> org.apache.maven.plugins.site.descriptor.AbstractSiteDescriptorMojo.prepareDecorationModel(AbstractSiteDescriptorMojo.java:86)
>>>>           ... 16 more
>>>> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException:
>>>> TEXT must be immediately followed by END_TAG and not START_TAG
>>>> (position: START_TAG seen ...  <link rel="shotcut icon"
>>>> href="${baseurl}/images/favicon.ico" />... @58:71)
>>>>           at
>>>> org.codehaus.plexus.util.xml.pull.MXParser.nextText(MXParser.java:1101)
>>>>           at
>>>>
>>>> org.apache.maven.doxia.site.decoration.io.xpp3.DecorationXpp3Reader.parseBody(DecorationXpp3Reader.java:674)
>>>>           at
>>>>
>>>> org.apache.maven.doxia.site.decoration.io.xpp3.DecorationXpp3Reader.parseDecorationModel(DecorationXpp3Reader.java:823)
>>>>           at
>>>>
>>>> org.apache.maven.doxia.site.decoration.io.xpp3.DecorationXpp3Reader.read(DecorationXpp3Reader.java:1339)
>>>>           at
>>>>
>>>> org.apache.maven.doxia.site.decoration.io.xpp3.DecorationXpp3Reader.read(DecorationXpp3Reader.java:524)
>>>>           at
>>>>
>>>> org.apache.maven.doxia.site.decoration.io.xpp3.DecorationXpp3Reader.read(DecorationXpp3Reader.java:538)
>>>>           at
>>>>
>>>> org.apache.maven.doxia.tools.DefaultSiteTool.readDecorationModel(DefaultSiteTool.java:1188)
>>>>           ... 19 more
>>>
>>>
>>>
>>> That is documented in the migration guide. It is a deliberate choice to
>>> fix
>>> a previously-made design error. As soon as Maven Parent 30 is fixed, the
>>> entire chain will properly adjust.
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to