commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles <gil...@harfang.homelinux.org>
Subject Re: [All][RNG] Release plugin: crash
Date Mon, 03 Dec 2018 01:22:47 GMT
On Sat, 1 Dec 2018 19:13:35 -0700, Gary Gregory wrote:
> On Sat, Dec 1, 2018 at 6:55 PM Gilles <gilles@harfang.homelinux.org> 
> wrote:
>
>> On Sat, 1 Dec 2018 18:14:24 -0700, Gary Gregory wrote:
>> > A fix might be to make the site plugin use BCEL 6.2. What Java
>> > version are
>> > you using?
>>
>> Java 9.
>>
>> [Official code is compatible with Java 6, but the "examples" module
>> requires Java 9 (one of the examples is to check for JPMS 
>> compliance,
>> using "module-info.java" files, and this is what makes Clirr crash,
>> IIUC).]
>>
>
> I'm pretty sure you'll need BCEL 6.2 to make this work.

I rather avoided the issue by disabling the Clirr check for the
"examples" module (where BC is not a goal).

However, still no luck with the command
  $ mvn -Duser.name=erans -Prelease package site deploy

Error is:
---CUT---
[INFO] 
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Commons RNG ................................. SUCCESS [ 
25.331 s]
[INFO] Apache Commons RNG Client API ...................... SUCCESS 
[01:18 min]
[INFO] Apache Commons RNG Core ............................ SUCCESS 
[01:02 min]
[INFO] Apache Commons RNG Simple .......................... SUCCESS [ 
46.589 s]
[INFO] Apache Commons RNG Sampling ........................ SUCCESS 
[01:38 min]
[INFO] Apache Commons RNG Examples ........................ SUCCESS [  
9.236 s]
[INFO] Stress test example ................................ SUCCESS [ 
36.584 s]
[INFO] Sampling example ................................... SUCCESS [ 
35.467 s]
[INFO] Quadrature example ................................. SUCCESS [ 
35.473 s]
[INFO] JMH Benchmark ...................................... SUCCESS 
[01:28 min]
[INFO] JPMS Integration test .............................. SUCCESS [  
8.086 s]
[INFO] JPMS module example (library) ...................... SUCCESS [ 
35.996 s]
[INFO] JPMS module example (application) .................. SUCCESS [ 
36.326 s]
[INFO] Apache Commons RNG (full distribution) ............. FAILURE [ 
41.695 s]
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 10:38 min
[INFO] Finished at: 2018-12-03T02:07:10+01:00
[INFO] Final Memory: 143M/478M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.commons:commons-release-plugin:1.3:stage-distributions 
(stage-distributions) on project commons-rng: Failed to add files to scm 
-> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to 
execute goal 
org.apache.commons:commons-release-plugin:1.3:stage-distributions 
(stage-distributions) on project commons-rng: Failed to add files to scm
---CUT---

Any clue on what I might be doing wrong?

Thanks,
Gilles

>
> Gary
>
>
>>
>> Gilles
>>
>> >
>> > Gary
>> >
>> > On Sat, Dec 1, 2018 at 5:37 PM Gilles 
>> <gilles@harfang.homelinux.org>
>> > wrote:
>> >
>> >> Hi.
>> >>
>> >> Command advertized here:
>> >>
>> >> 
>> http://commons.apache.org/proper/commons-release-plugin/index.html
>> >> when run for "Commons RNG" project leads to:
>> >> ---CUT---
>> >> [ERROR] Failed to execute goal
>> >> org.apache.maven.plugins:maven-site-plugin:3.7.1:site 
>> (default-site)
>> >> on
>> >> project commons-rng-examples-jpms-lib: Execution default-site of
>> >> goal
>> >> org.apache.maven.plugins:maven-site-plugin:3.7.1:site failed:
>> >> Invalid
>> >> byte tag in constant pool: 19
>> >> ---CUT---
>> >>
>> >> This is caused by Clirr:
>> >> ---CUT---
>> >> Caused by: org.apache.bcel.classfile.ClassFormatException: 
>> Invalid
>> >> byte
>> >> tag in constant pool: 19
>> >>      at org.apache.bcel.classfile.Constant.readConstant
>> >> (Constant.java:167)
>> >>      at org.apache.bcel.classfile.ConstantPool.<init>
>> >> (ConstantPool.java:66)
>> >>      at org.apache.bcel.classfile.ClassParser.readConstantPool
>> >> (ClassParser.java:239)
>> >>      at org.apache.bcel.classfile.ClassParser.parse
>> >> (ClassParser.java:144)
>> >>      at
>> >> net.sf.clirr.core.internal.bcel.BcelTypeArrayBuilder.extractClass
>> >> (BcelTypeArrayBuilder.java:135)
>> >>      at
>> >> 
>> net.sf.clirr.core.internal.bcel.BcelTypeArrayBuilder.createClassSet
>> >> (BcelTypeArrayBuilder.java:82)
>> >>      at
>> >>
>> >> 
>> org.codehaus.mojo.clirr.AbstractClirrMojo.resolvePreviousReleaseClasses
>> >> (AbstractClirrMojo.java:424)
>> >>      at org.codehaus.mojo.clirr.AbstractClirrMojo.executeClirr
>> >> (AbstractClirrMojo.java:263)
>> >>      at org.codehaus.mojo.clirr.ClirrReport.doReport
>> >> (ClirrReport.java:251)
>> >>      at org.codehaus.mojo.clirr.ClirrReport.generate
>> >> (ClirrReport.java:227)
>> >>      at org.codehaus.mojo.clirr.ClirrReport.generate
>> >> (ClirrReport.java:368)
>> >>      at
>> >>
>> >>
>> 
>> org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument
>> >> (ReportDocumentRenderer.java:239)
>> >>      at
>> >> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render
>> >> (DefaultSiteRenderer.java:349)
>> >>      at 
>> org.apache.maven.plugins.site.render.SiteMojo.renderLocale
>> >> (SiteMojo.java:198)
>> >>      at org.apache.maven.plugins.site.render.SiteMojo.execute
>> >> (SiteMojo.java:147)
>> >>      at
>> >> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
>> >> (DefaultBuildPluginManager.java:134)
>> >>      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
>> >> (MojoExecutor.java:208)
>> >>      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
>> >> (MojoExecutor.java:154)
>> >>      at org.apache.maven.lifecycle.internal.MojoExecutor.execute
>> >> (MojoExecutor.java:146)
>> >>      at
>> >>
>> >> 
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
>> >> (LifecycleModuleBuilder.java:117)
>> >>      at
>> >>
>> >> 
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
>> >> (LifecycleModuleBuilder.java:81)
>> >>      at
>> >>
>> >>
>> 
>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>> >>
>> >> (SingleThreadedBuilder.java:51)
>> >>      at 
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute
>> >> (LifecycleStarter.java:128)
>> >>      at org.apache.maven.DefaultMaven.doExecute
>> >> (DefaultMaven.java:309)
>> >>      at org.apache.maven.DefaultMaven.doExecute
>> >> (DefaultMaven.java:194)
>> >>      at org.apache.maven.DefaultMaven.execute
>> >> (DefaultMaven.java:107)
>> >>      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
>> >>      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
>> >>      at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
>> >>      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0
>> >> (Native
>> >> Method)
>> >>      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
>> >> (NativeMethodAccessorImpl.java:62)
>> >>      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
>> >> (DelegatingMethodAccessorImpl.java:43)
>> >>      at java.lang.reflect.Method.invoke (Method.java:564)
>> >>      at
>> >> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
>> >> (Launcher.java:289)
>> >>      at org.codehaus.plexus.classworlds.launcher.Launcher.launch
>> >> (Launcher.java:229)
>> >>      at
>> >> 
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
>> >> (Launcher.java:415)
>> >>      at org.codehaus.plexus.classworlds.launcher.Launcher.main
>> >> (Launcher.java:356)
>> >> ---CUT---
>> >>
>> >> Is there either
>> >>   * a fix for this problem (comment in CP 47 says it is fixed,
>> >>     but the above shows otherwise), or
>> >>   * a mean to disable Clirr for module "commons-rng-examples"
>> >>     (since it is not subject BC requirements, as per the release
>> >>     notes)?
>> >>
>> >> Regards,
>> >> Gilles
>>
>>
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message