maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Hughes <ahhug...@gmail.com>
Subject Re: Maven site gen for a module causing release process to fail
Date Wed, 16 Feb 2011 03:45:21 GMT
Hey,

We have a lot of network/system problems that cause our unit tests and site
deployment to fail. I got sick of this interrupting our releases, so I
disabled them both. You're situation is different to mine but maybe you
should so the same?

I've copied my release plugin config... pay special interest to <arguments>
-DskipTests=true
</arguments> to disable tests and  <goals>
deploy
</goals> to disable site generation.


Sorry I can't help you with your underlying problem :'(


<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-release-plugin
</artifactId>
<configuration>

<!--
							Because many unit tests fail due to database or network issues
that are not
							resolved in the source code, I have disable the tests during a release.
							You should NOT release anything that is failing, but at the same time
							this should not interrupt the release of the project in this way.
							-->

<arguments>
-DskipTests=true
</arguments>

<!--
							removed site-deploy from the release goals, a failed
site-deploy should not
							hold up a release, it can be manually deployed from ./target/checkout
							after the release:perform has finished or manually deployed
later from the
							scm tag
							-->

<goals>
deploy
</goals>
</configuration>
</plugin>



On Sat, Feb 12, 2011 at 3:58 AM, Mykel Alvis <mykel.alvis@gmail.com> wrote:

> I have a multi-module build that's failing on site generation.
> Unfortunately, I'm unable to attach the actual project to this request (or
> an issue).
>
> I'm currently working in the target/checkout directory of the released
> aggregator project.
> I have 4 active modules and one that's not listed in the <modules>.  All
> use
> the aggregator as their parent.
> Of the four active modules, the one that's causing the failure is of type
> <pom> in that it produces assemblies of zip files.
>
> Under every circumstance, either from the aggregator's directory or from
> inside the module, a mvn site:site (or site-deploy or release:perform or
> anything else that triggers a site gen) produces the following:
>
> [INFO] Generating "Continuous Integration" report    ---
> maven-project-info-reports-plugin:2.3.1
> [INFO] Generating "Dependencies" report    ---
> maven-project-info-reports-plugin:2.3.1
> [INFO] Generating "Dependency Management" report    ---
> maven-project-info-reports-plugin:2.3.1
> [INFO] Generating "Distribution Management" report    ---
> maven-project-info-reports-plugin:2.3.1
> [INFO] Generating "About" report    ---
> maven-project-info-reports-plugin:2.3.1
> [INFO] Generating "Issue Tracking" report    ---
> maven-project-info-reports-plugin:2.3.1
> [INFO] Generating "Project License" report    ---
> maven-project-info-reports-plugin:2.3.1
> [INFO] Generating "Mailing Lists" report    ---
> maven-project-info-reports-plugin:2.3.1
> [INFO] Generating "Plugin Management" report    ---
> maven-project-info-reports-plugin:2.3.1
> [INFO] Generating "Project Plugins" report    ---
> maven-project-info-reports-plugin:2.3.1
> [INFO] Generating "Project Team" report    ---
> maven-project-info-reports-plugin:2.3.1
> [INFO] Generating "Source Repository" report    ---
> maven-project-info-reports-plugin:2.3.1
> [INFO] Generating "Project Summary" report    ---
> maven-project-info-reports-plugin:2.3.1
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 24.573s
> [INFO] Finished at: Fri Feb 11 11:17:47 CST 2011
> [INFO] Final Memory: 40M/368M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site (default-cli) on
> project ppConfig: Execution default-cli of goal
> org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site failed: String
> index out of range: -50 -> [Help 1]
> [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/PluginExecutionException
>
>
> -X produces nothing useful that I can discern:
>
> [DEBUG] Generating
>
> /home/mykel/Work/release/trunk/target/checkout/ppConfig/target/site/source-repository.html
> [INFO] Generating "Source Repository" report    ---
> maven-project-info-reports-plugin:2.3.1
> [DEBUG] Multipage report: 0 subreports
> [DEBUG] Velocimacro : added #link(  href name target img position alt
> border
> width height ) : source =
> org/apache/maven/doxia/siterenderer/resources/default-site.vm
> [DEBUG] Velocimacro : added #image(  img alt border width height ) : source
> = org/apache/maven/doxia/siterenderer/resources/default-site.vm
> [DEBUG] Velocimacro : added #banner(  banner id ) : source =
> org/apache/maven/doxia/siterenderer/resources/default-site.vm
> [DEBUG] Velocimacro : added #links(  links ) : source =
> org/apache/maven/doxia/siterenderer/resources/default-site.vm
> [DEBUG] Velocimacro : added #breadcrumbs(  breadcrumbs ) : source =
> org/apache/maven/doxia/siterenderer/resources/default-site.vm
> [DEBUG] Velocimacro : added #displayTree(  display item ) : source =
> org/apache/maven/doxia/siterenderer/resources/default-site.vm
> [DEBUG] Velocimacro : added #menuItem(  item ) : source =
> org/apache/maven/doxia/siterenderer/resources/default-site.vm
> [DEBUG] Velocimacro : added #mainMenu(  menus ) : source =
> org/apache/maven/doxia/siterenderer/resources/default-site.vm
> [DEBUG] Velocimacro : added #copyright(  ) : source =
> org/apache/maven/doxia/siterenderer/resources/default-site.vm
> [DEBUG] Velocimacro : added #publishDate(  position publishDate version ) :
> source = org/apache/maven/doxia/siterenderer/resources/default-site.vm
> [DEBUG] Velocimacro : added #poweredByLogo(  poweredBy ) : source =
> org/apache/maven/doxia/siterenderer/resources/default-site.vm
> [DEBUG] Generating
>
> /home/mykel/Work/release/trunk/target/checkout/ppConfig/target/site/project-summary.html
> [INFO] Generating "Project Summary" report    ---
> maven-project-info-reports-plugin:2.3.1
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 26.387s
> [INFO] Finished at: Fri Feb 11 11:22:14 CST 2011
> [INFO] Final Memory: 40M/398M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site (default-cli) on
> project ppConfig: Execution default-cli of goal
> org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site failed: String
> index out of range: -50 -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site
> (default-cli) on project ppConfig: Execution default-cli of goal
> org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site failed: String
> index out of range: -50
>        at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>        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:84)
>        at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>        at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>        at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
>        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>        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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>        at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
> default-cli of goal
> org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site failed: String
> index out of range: -50
>        at
>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:116)
>        at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>        ... 19 more
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
> range: -50
>        at java.lang.String.substring(String.java:1937)
>        at
>
> org.apache.maven.reporting.AbstractMavenReportRenderer.applyPattern(AbstractMavenReportRenderer.java:693)
>        at
>
> org.apache.maven.reporting.AbstractMavenReportRenderer.linkPatternedText(AbstractMavenReportRenderer.java:510)
>        at
>
> org.apache.maven.reporting.AbstractMavenReportRenderer.tableCell(AbstractMavenReportRenderer.java:309)
>        at
>
> org.apache.maven.reporting.AbstractMavenReportRenderer.tableCell(AbstractMavenReportRenderer.java:284)
>        at
>
> org.apache.maven.reporting.AbstractMavenReportRenderer.tableRow(AbstractMavenReportRenderer.java:332)
>        at
>
> org.apache.maven.report.projectinfo.ProjectSummaryReport$ProjectSummaryRenderer.renderBody(ProjectSummaryReport.java:101)
>        at
>
> org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:79)
>        at
>
> org.apache.maven.report.projectinfo.ProjectSummaryReport.executeReport(ProjectSummaryReport.java:55)
>        at
>
> org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:190)
>        at
>
> org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:165)
>        at
>
> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:330)
>        at
>
> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:134)
>        at
> org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:159)
>        at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:122)
>        at
>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
>        ... 20 more
> [ERROR]
> [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/PluginExecutionException
>
>
> If I remove ppConfig (the pom-packaging project) from the modules list, the
> site generates without failure.
> I've stripped down ppConfig/src/site to a minimal site.xml and I've
> completely removed ppConfig/src/site to no avail.
>
> Any ideas as to why something in a VERY simple project is producing a
> string
> index of -50 in site generation?
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message