Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-23

SiteToolException: Error reading default site descriptor: ${OUTPUTENCODING}

    XMLWordPrintableJSON

Details

    Description

      Execute site:site

      The plugin seems to look for a pom file in the directory above the project directory.

      This started occurring last night for us, using maven-site-plugin:2.0-beta-7-SNAPSHOT.

      Note that the project in question uses a parent POM, but does not specify a relative path.

      Here is the stack trace:

      [INFO] Unable to load parent project from a relative path: Could not find the model file 'c:\workdir\projects\pom.xml'. for project unknown
      [INFO] Parent project loaded from repository.
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] SiteToolException: Error reading default site descriptor: ${OUTPUTENCODING}

      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: SiteToolException: Error reading default site descriptor: ${OUTPUTENCODING}
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
      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:585)
      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.plugin.MojoExecutionException: SiteToolException: Error reading default site descriptor: ${OUTPUTENCODING}
      at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.createSiteRenderingContext(AbstractSiteRenderingMojo.java:230)
      at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:113)
      at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:96)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
      ... 16 more
      Caused by: org.apache.maven.doxia.tools.SiteToolException: Error reading default site descriptor: ${OUTPUTENCODING}
      at org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:527)

      at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.createSiteRenderingContext(AbstractSiteRenderingMojo.java:226)
      ... 20 more
      Caused by: java.io.UnsupportedEncodingException: ${OUTPUTENCODING}
      at sun.io.Converters.getConverterClass(Converters.java:218)
      at sun.io.Converters.newConverter(Converters.java:251)
      at sun.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:68)
      at sun.nio.cs.StreamDecoder$ConverterSD.<init>(StreamDecoder.java:224)
      at sun.nio.cs.StreamDecoder$ConverterSD.<init>(StreamDecoder.java:210)
      at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:77)
      at java.io.InputStreamReader.<init>(InputStreamReader.java:83)
      at org.codehaus.plexus.util.xml.XmlReader.prepareReader(XmlReader.java:483)
      at org.codehaus.plexus.util.xml.XmlReader.doRawStream(XmlReader.java:466)
      at org.codehaus.plexus.util.xml.XmlReader.<init>(XmlReader.java:183)
      at org.codehaus.plexus.util.xml.XmlReader.<init>(XmlReader.java:146)
      at org.codehaus.plexus.util.xml.XmlStreamReader.<init>(XmlStreamReader.java:90)
      at org.codehaus.plexus.util.ReaderFactory.newXmlReader(ReaderFactory.java:104)
      at org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:522)

      ... 21 more

      Attachments

        1. MSITE-332.tar.gz
          1.0 kB
          Lukas Nalezenec

        Issue Links

          Activity

            People

              dennisl@apache.org Dennis Lundberg
              mjs mjs
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: