Blog

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image AddedThe testdoc-tools have been released with version 0.4.1.

This release cleans-up two dependencies.

The first clean-up is that of smartics-commons. The old version had some test dependencies on the compile classpath. This has been fixed with version 0.5.2 to which we updated.

The second one is more interesting: Due to a ICU4J 2.6 dependency in the classpath, the

...

Maven Plugin Plugin raises the following exception:

Code Block

...

[INFO] Generating "Plugin Documentation" report -— maven-plugin-plugin:3.2

...


[INFO] Applying mojo extractor for language: java-annotations mojoFailed org.apache.maven.plugins:maven-site-plugin:3.3(default-site)

...


[HUDSON] Archiving site from /home/sw/.hudson/jobs/smartics-jboss-modules-maven-plugin-site/workspace/trunk/target/site to /home/sw/.hudson/jobs/smartics-jboss-modules-maven-plugin-site/site

...


projectFailed de.smartics.maven.plugin:smartics-jboss-modules-maven-plugin:0.1.1-SNAPSHOT

...


sessionEnded

...


[INFO] ------------------------------------------------------------------------

...


[INFO] BUILD FAILURE

...


[INFO] ------------------------------------------------------------------------

...


[INFO] Total time: 1:57.108s

...


[INFO] Finished at: Fri Oct 04 13:47:14 CEST 2013

...


[INFO] Final Memory: 89M/530M

...


[INFO] ------------------------------------------------------------------------

...


mavenExecutionResult exceptions not empty

...


...

 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on project smartics-jboss-modules-maven-plugin: Execution default-site of goal org.apache.maven.plugins:maven-site-plugin:3.3:site failed: 48188

...


	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:320)

...


	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

...


	at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)

...


	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.launchStandard(Launcher.java:329)

...


	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)

...


	at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:146)

...


	at hudson.maven.Maven3Builder.call(Maven3Builder.java:124)

...


	at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)

...


	at hudson.remoting.UserRequest.perform(UserRequest.java:114)

...


	at hudson.remoting.UserRequest.perform(UserRequest.java:48)

...


	at hudson.remoting.Request$2.run(Request.java:283)

...


	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

...


	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

...


	at java.util.concurrent.FutureTask.run(FutureTask.java:138)

...


	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

...


	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

...


	at java.lang.Thread.run(Thread.java:619)

...


Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-site of goal org.apache.maven.plugins:maven-site-plugin:3.3:site failed: 48188

...


	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)

...


	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)

...


	... 27 more

...


Caused by: java.lang.ArrayIndexOutOfBoundsException: 48188

...


	at org.objectweb.asm.ClassReader.readClass(Unknown Source)

...


	at org.objectweb.asm.ClassReader.accept(Unknown Source)

...


	at org.objectweb.asm.ClassReader.accept(Unknown Source)

...


	at org.apache.maven.tools.plugin.annotations.scanner.DefaultMojoAnnotationsScanner.scanFile(DefaultMojoAnnotationsScanner.java:139)

...


	at org.apache.maven.tools.plugin.annotations.scanner.DefaultMojoAnnotationsScanner.scan(DefaultMojoAnnotationsScanner.java:85)

...


	at org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor.scanAnnotations(JavaAnnotationsMojoDescriptorExtractor.java:125)

...


	at org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor.execute(JavaAnnotationsMojoDescriptorExtractor.java:104)

...


	at org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:108)

...


	at org.apache.maven.plugin.plugin.PluginReport.executeReport(PluginReport.java:271)

...


	at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:190)

...


	at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:219)

...


	at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:319)

...


	at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:135)

...


	at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:175)

...


	at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:138)

...


	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)

...


	... 28 more

...

The problem is known and documented to be fixed with version 2.8 of the library:

DefaultMojoAnnotationsScanner fails to scan some dependencies

There is no release for this version in the Maven repositories (although available through the ICU website). Since the ICU team also recommends to update to newer versions, we updated the dependency to version 3.8 of ICU4J (the dependency is transitive due to jaxen/xom and therefore we stick to this older version).

Code Block

...

languagexml
<dependency>
  

...

<groupId>jaxen</groupId>
  

...

<artifactId>jaxen</artifactId>
  

...

<version>1.1.

...

4</version>
  

...

<exclusions>
    

...

<exclusion>
      <!-- icu4j exchanged: Parsing problem in this lib -->
      

...

<groupId>com.ibm.

...

icu</groupId>
      

...

<artifactId>icu4j</artifactId>
    

...

</exclusion>
  

...

</exclusions>
</dependency>
<dependency>
  <!-- icu4j exchanged: No parsing problem in this lib -->
  <groupId>com.ibm.icu</groupId>
  <artifactId>icu4j</artifactId>
  <version>3.8</version>
</dependency>

For details on this version of the tool set please visit the project's homepage, for changes since the last version, please consult the release report.