You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Daniel Schömer <da...@gmx.net> on 2005/09/17 23:58:28 UTC

[m2] Error during site generation with '.'-files in src/site/ with m2-2.0-beta-1

Hi,

I've just downloaded m2 beta-1 (Thanks for the update!) and tried to
build a site of one of my projects with "m2 site:site" and got the
following error:

| # m2 site:site
| ...
| [ERROR] BUILD ERROR
| [INFO] ----------------------------------------------------------------------------
| [INFO] Diagnosis: Error during site generation
| [INFO] ----------------------------------------------------------------------------
| [ERROR] Cause: 
| org.apache.maven.plugin.MojoExecutionException: Error during site generation
|         at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:436)
|         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:357)
|         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:479)
|         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:460)
|         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:442)
|         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
|         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:131)
|         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
|         at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
|         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: java.lang.StringIndexOutOfBoundsException: String index out of range: -10
|         at java.lang.String.substring(String.java:1768)
|         at org.apache.maven.doxia.DoxiaMojo.tryToFindDuplicates(DoxiaMojo.java:1160)
|         at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:294)
|         ... 16 more
| ...

After looking at the tryToFindDuplicates(File,Map) definition in
DoxiaMojo.java of the maven-site-plugin, I'm sure that the
StringIndexOutOfBoundsException is thrown when m2 tries to find the
duplicates of files beginning with a '.'.

All the directories in this particular project contain a sub-directory
called '.arch-ids' (used by bazaar, the scm-tool I use
(http://bazaar.canonical.com)).  If I delete these sub-directories in
each directory of the src/site/ dir, m2 generates the site as
expected.

It is not an option for me to delete the '.arch-ids' sub-directories,
since this would cause my scm-tool to ignore these directories.  And
I don't want to exclude the site directories from my source
repository.

Is it a bug or a "feature" of the maven-site-plugin to "disallow"
files beginning with a '.'?

Regards,
Daniel Schömer


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] Error during site generation with '.'-files in src/site/ with m2-2.0-beta-1

Posted by Daniel Schömer <da...@gmx.net>.
Brett Porter wrote:
> Yes, it is a bug, but it should be filed under 
> http://jira.codehaus.org/browse/MNG as its actually specific to the Maven 
> site plugin, not a part of the documentation subsystem.

OK, filed as http://jira.codehaus.org/browse/MNG-911 including a small
patch.

Thanks,
Daniel Schömer


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] Error during site generation with '.'-files in src/site/ with m2-2.0-beta-1

Posted by Brett Porter <br...@gmail.com>.
Yes, it is a bug, but it should be filed under 
http://jira.codehaus.org/browse/MNG as its actually specific to the Maven 
site plugin, not a part of the documentation subsystem.

Thanks,
Brett

On 9/18/05, Trygve Laugstøl <tr...@codehaus.org> wrote:
> 
> On Sat, 2005-09-17 at 23:58 +0200, Daniel Schömer wrote:
> > Hi,
> 
> Hi
> 
> > Is it a bug or a "feature" of the maven-site-plugin to "disallow"
> > files beginning with a '.'?
> 
> Sounds like a bug indeed, please file a issue here in JIRA[1], attach a
> patch and we're (almost) guaranteed to solve the issue ;)
> 
> [1]: http://jira.codehaus.org/browse/DOXIA
> 
> --
> Trygve
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

Re: [m2] Error during site generation with '.'-files in src/site/ with m2-2.0-beta-1

Posted by Trygve Laugstøl <tr...@codehaus.org>.
On Sat, 2005-09-17 at 23:58 +0200, Daniel Schömer wrote:
> Hi,

Hi

> Is it a bug or a "feature" of the maven-site-plugin to "disallow"
> files beginning with a '.'?

Sounds like a bug indeed, please file a issue here in JIRA[1], attach a
patch and we're (almost) guaranteed to solve the issue ;)

[1]: http://jira.codehaus.org/browse/DOXIA

--
Trygve


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org