You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2008/06/02 23:45:53 UTC

[jira] Commented: (MSITE-332) Unable to load parent project from a relative path: Could not find the model file '/pom.xml'. for project unknown

    [ http://jira.codehaus.org/browse/MSITE-332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137143#action_137143 ] 

Dennis Lundberg commented on MSITE-332:
---------------------------------------

Michael,

Can you provide us with a sample project, including all POMs, that can be used to reproduce the original issue. I'd like to get this issue fixed before we release 2.0-beta-7.

The second error you get is coming from maven-project-info-reports-plugin. You can get around that by specifying the version for that plugin in your pom, like this:

{code:xml}
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>2.0.1</version>
      </plugin>
    </plugins>
  </reporting>
{code}

> Unable to load parent project from a relative path: Could not find the model file '<dir>/pom.xml'. for project unknown
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-332
>                 URL: http://jira.codehaus.org/browse/MSITE-332
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: site descriptor
>    Affects Versions: 2.0-beta-7
>            Reporter: Michael Stevens
>            Assignee: Dennis Lundberg
>             Fix For: 2.0-beta-7
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira