Discussion:
[RNG] How to enable japicmp?
Gilles
2018-11-23 14:37:15 UTC
Permalink
Hello.

POM of [RNG] includes CP 47 which states:
---CUT---
<!-- skip japicmp on "mvn site" - use "mvn package site" to include
report -->
---CUT---

Yet
$ mvn package site site:stage
still produces an empty report, despite the presence of a
profile.japicmp
file in directory
src/site/resources

Gilles


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-***@commons.apache.org
For additional commands, e-mail: dev-***@commons.apache.org
Gilles
2018-11-24 10:48:34 UTC
Permalink
Hi.
Post by Gilles
Hello.
---CUT---
<!-- skip japicmp on "mvn site" - use "mvn package site" to include
report -->
---CUT---
Yet
$ mvn package site site:stage
still produces an empty report, despite the presence of a
profile.japicmp
file in directory
src/site/resources
I copied this
---CUT---
<plugin>
<groupId>com.github.siom79.japicmp</groupId>
<artifactId>japicmp-maven-plugin</artifactId>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
---CUT---
from [Lang].[1]
The plugin crashes with NPE.
Last part of the stack trace:
---CUT---
Caused by: java.lang.NullPointerException
at japicmp.maven.JApiCmpMojo.isPomModuleNeedingSkip
(JApiCmpMojo.java:1243)
at japicmp.maven.JApiCmpMojo.executeWithParameters
(JApiCmpMojo.java:130)
at japicmp.maven.JApiCmpReport.executeReport
(JApiCmpReport.java:75)
at org.apache.maven.reporting.AbstractMavenReport.generate
(AbstractMavenReport.java:255)
at
org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument
(ReportDocumentRenderer.java:230)
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 sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
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---

Are there problems with "japicmp" that are specific to multi-modules
projects?

Gilles

[1] Which confirms (?) that the profile-enabling of the report
does not work for "japicmp". I couldn't find a page (build,
release, ?) that documents what works an not.
CP's doc is unclear about what can be overridden in
components/modules POMs.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-***@commons.apache.org
For additional commands, e-mail: dev-***@commons.apache.org
t***@gmail.com
2018-12-08 21:39:24 UTC
Permalink
Hi.
Post by Gilles
Hi.
Post by Gilles
Hello.
---CUT---
<!-- skip japicmp on "mvn site" - use "mvn package site" to include
report -->
---CUT---
Yet
 $ mvn package site site:stage
still produces an empty report, despite the presence of a
 profile.japicmp
file in directory
 src/site/resources
I copied this
---CUT---
        <plugin>
          <groupId>com.github.siom79.japicmp</groupId>
          <artifactId>japicmp-maven-plugin</artifactId>
          <configuration>
            <skip>false</skip>
          </configuration>
        </plugin>
---CUT---
from [Lang].[1]
The plugin crashes with NPE.
---CUT---
Caused by: java.lang.NullPointerException
    at japicmp.maven.JApiCmpMojo.isPomModuleNeedingSkip
(JApiCmpMojo.java:1243)
    at japicmp.maven.JApiCmpMojo.executeWithParameters
(JApiCmpMojo.java:130)
    at japicmp.maven.JApiCmpReport.executeReport (JApiCmpReport.java:75)
    at org.apache.maven.reporting.AbstractMavenReport.generate
(AbstractMavenReport.java:255)
    at
org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument
(ReportDocumentRenderer.java:230)
    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 sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    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---
Are there problems with "japicmp" that are specific to multi-modules
projects?
It seems that's already fixed:
https://github.com/siom79/japicmp/issues/210

Worth trying with a newer version.

Best regards.
Post by Gilles
Gilles
[1] Which confirms (?) that the profile-enabling of the report
    does not work for "japicmp".  I couldn't find a page (build,
    release, ?) that documents what works an not.
    CP's doc is unclear about what can be overridden in
    components/modules POMs.
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-***@commons.apache.org
For additional commands, e-mail: dev-***@commons.apache.org
Gilles
2018-12-08 22:47:48 UTC
Permalink
Hi.
Post by t***@gmail.com
[...]
Post by Gilles
from [Lang].[1]
The plugin crashes with NPE.
[...]
Are there problems with "japicmp" that are specific to multi-modules
projects?
https://github.com/siom79/japicmp/issues/210
Thanks for the info.
Post by t***@gmail.com
Worth trying with a newer version.
Looking at the "commons-parent" project, the upgrade was done (to 0.13)
in version 48-SNAPSHOT, which has not been released yet.

Regards,
Gilles
Post by t***@gmail.com
[...]
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-***@commons.apache.org
For additional commands, e-mail: dev-***@commons.apache.org
Gilles
2018-12-09 22:52:17 UTC
Permalink
Post by Gilles
Hi.
Post by t***@gmail.com
[...]
Post by Gilles
from [Lang].[1]
The plugin crashes with NPE.
[...]
Are there problems with "japicmp" that are specific to
multi-modules
Post by t***@gmail.com
Post by Gilles
projects?
https://github.com/siom79/japicmp/issues/210
Thanks for the info.
Post by t***@gmail.com
Worth trying with a newer version.
Looking at the "commons-parent" project, the upgrade was done (to 0.13)
in version 48-SNAPSHOT, which has not been released yet.
mvn ... --Dcommons.japicmp.version=0.13.0
Tried it: plugin does not crash anymore. :-)
But report is empty. :-{


Regards,
Gilles


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

Loading...