You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Thomas Vandahl <tv...@apache.org> on 2026/03/25 19:58:06 UTC
japicmp Report for major releases?
Hi folks,
I would like to build the site for JCS 4.0.0. The japicmp report wants to compare the current jar with the previous one. In commons-parent, the configuration uses <artifactId>${project.artifactId}</artifactId> with the <version>${commons.bc.version}</version>.
Now, as the rule for major releases is to change the artifactId (from commons-jcs3-core to commons-jcs4-core), this reference point to commons-jcs4-core:3.2.1, which of course doesn't exist.
How is this supposed to be handled?
Bye, Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: japicmp Report for major releases?
Posted by Gary Gregory <ga...@gmail.com>.
I would simply disable that report for 4.0.
Gary
On Wed, Mar 25, 2026, 15:58 Thomas Vandahl <tv...@apache.org> wrote:
> Hi folks,
>
> I would like to build the site for JCS 4.0.0. The japicmp report wants to
> compare the current jar with the previous one. In commons-parent, the
> configuration uses <artifactId>${project.artifactId}</artifactId> with the
> <version>${commons.bc.version}</version>.
>
> Now, as the rule for major releases is to change the artifactId (from
> commons-jcs3-core to commons-jcs4-core), this reference point to
> commons-jcs4-core:3.2.1, which of course doesn't exist.
>
> How is this supposed to be handled?
>
> Bye, Thomas
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>
Re: japicmp Report for major releases?
Posted by Thomas Vandahl <th...@vandahl.org>.
> Am 26.03.2026 um 12:35 schrieb Elliotte Rusty Harold <el...@ibiblio.org>:
>
> On Wed, Mar 25, 2026 at 7:58 PM Thomas Vandahl <tv...@apache.org> wrote:
>>
>> Hi folks,
>>
>> I would like to build the site for JCS 4.0.0. The japicmp report wants to compare the current jar with the previous one. In commons-parent, the configuration uses <artifactId>${project.artifactId}</artifactId> with the <version>${commons.bc.version}</version>.
>>
>> Now, as the rule for major releases is to change the artifactId (from commons-jcs3-core to commons-jcs4-core), this reference point to commons-jcs4-core:3.2.1, which of course doesn't exist.
>
> Did the Java package name also change? They need to be synced with the
> artifact ID.
Yes, it did. org.apache.commons.jcs3 --> org.apache.commons.jcs4
Why do you ask? Do you suggest disabling the japicmp report altogether?
Bye, Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: japicmp Report for major releases?
Posted by sebb <se...@gmail.com>.
On Thu, 26 Mar 2026 at 12:13, Rob Tompkins <ch...@gmail.com> wrote:
>
>
>
> > On Mar 26, 2026, at 7:55 AM, sebb <se...@gmail.com> wrote:
> >
> > On Thu, 26 Mar 2026 at 11:37, Elliotte Rusty Harold <el...@ibiblio.org> wrote:
> >>
> >> On Wed, Mar 25, 2026 at 7:58 PM Thomas Vandahl <tv...@apache.org> wrote:
> >>>
> >>> Hi folks,
> >>>
> >>> I would like to build the site for JCS 4.0.0. The japicmp report wants to compare the current jar with the previous one. In commons-parent, the configuration uses <artifactId>${project.artifactId}</artifactId> with the <version>${commons.bc.version}</version>.
> >>>
> >>> Now, as the rule for major releases is to change the artifactId (from commons-jcs3-core to commons-jcs4-core), this reference point to commons-jcs4-core:3.2.1, which of course doesn't exist.
> >>
> >> Did the Java package name also change? They need to be synced with the
> >> artifact ID.
> >
> > Agreed.
> >
> > But does japicmp really apply to major version changes?
> > These will generally involve breaking API changes.
>
> Perhaps it’s nice to see for the purposes of version migration from a user perspective. But, from a validation perspective your point is correct the report provides moot evidence.
>
> >
> > It should be possible to override the previous version of the jar, but
> > this will presumably report everything as a difference, which would
> > not be particularly useful.
> >
> > I don't think japicmp has an option to ignore package name changes, so
> > one of the jars would need to be shaded so the two jars used the same
> > package names.
> >
> > I don't know how easy this would be to do in Maven; probably best to
> > try manually first.
>
> +/- 0 on inclusion for major version changes. May help with forward adoption, but also may be confusing and klugey (unclear to me which is better). If we were to use it to write migration path documentation then set aside the japicmp and kept the documentation that would be ideal, but alas forward progress needs to be mindful of project workload/capacity. I know not what to do.
AFACT japicmp has a standalone version, and I have just found what is
billed as a standalone version of maven shading.
This looks easy to use:
https://github.com/lucko/jar-relocator
If no-one beats me to it, I might try it ...
Sebb
> Good ideas, good conversation!
>
> Thank you Elliotte, Sebb, Thomas!
>
> Cheers,
> -Rob
>
> >
> > Sebb
> >
> >> --
> >> Elliotte Rusty Harold
> >> elharo@ibiblio.org
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >
>
>
> ---------------------------------------------------------------------
> 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
Re: japicmp Report for major releases?
Posted by Rob Tompkins <ch...@gmail.com>.
> On Mar 26, 2026, at 7:55 AM, sebb <se...@gmail.com> wrote:
>
> On Thu, 26 Mar 2026 at 11:37, Elliotte Rusty Harold <el...@ibiblio.org> wrote:
>>
>> On Wed, Mar 25, 2026 at 7:58 PM Thomas Vandahl <tv...@apache.org> wrote:
>>>
>>> Hi folks,
>>>
>>> I would like to build the site for JCS 4.0.0. The japicmp report wants to compare the current jar with the previous one. In commons-parent, the configuration uses <artifactId>${project.artifactId}</artifactId> with the <version>${commons.bc.version}</version>.
>>>
>>> Now, as the rule for major releases is to change the artifactId (from commons-jcs3-core to commons-jcs4-core), this reference point to commons-jcs4-core:3.2.1, which of course doesn't exist.
>>
>> Did the Java package name also change? They need to be synced with the
>> artifact ID.
>
> Agreed.
>
> But does japicmp really apply to major version changes?
> These will generally involve breaking API changes.
Perhaps it’s nice to see for the purposes of version migration from a user perspective. But, from a validation perspective your point is correct the report provides moot evidence.
>
> It should be possible to override the previous version of the jar, but
> this will presumably report everything as a difference, which would
> not be particularly useful.
>
> I don't think japicmp has an option to ignore package name changes, so
> one of the jars would need to be shaded so the two jars used the same
> package names.
>
> I don't know how easy this would be to do in Maven; probably best to
> try manually first.
+/- 0 on inclusion for major version changes. May help with forward adoption, but also may be confusing and klugey (unclear to me which is better). If we were to use it to write migration path documentation then set aside the japicmp and kept the documentation that would be ideal, but alas forward progress needs to be mindful of project workload/capacity. I know not what to do.
Good ideas, good conversation!
Thank you Elliotte, Sebb, Thomas!
Cheers,
-Rob
>
> Sebb
>
>> --
>> Elliotte Rusty Harold
>> elharo@ibiblio.org
>>
>> ---------------------------------------------------------------------
>> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: japicmp Report for major releases?
Posted by sebb <se...@gmail.com>.
On Thu, 26 Mar 2026 at 11:37, Elliotte Rusty Harold <el...@ibiblio.org> wrote:
>
> On Wed, Mar 25, 2026 at 7:58 PM Thomas Vandahl <tv...@apache.org> wrote:
> >
> > Hi folks,
> >
> > I would like to build the site for JCS 4.0.0. The japicmp report wants to compare the current jar with the previous one. In commons-parent, the configuration uses <artifactId>${project.artifactId}</artifactId> with the <version>${commons.bc.version}</version>.
> >
> > Now, as the rule for major releases is to change the artifactId (from commons-jcs3-core to commons-jcs4-core), this reference point to commons-jcs4-core:3.2.1, which of course doesn't exist.
>
> Did the Java package name also change? They need to be synced with the
> artifact ID.
Agreed.
But does japicmp really apply to major version changes?
These will generally involve breaking API changes.
It should be possible to override the previous version of the jar, but
this will presumably report everything as a difference, which would
not be particularly useful.
I don't think japicmp has an option to ignore package name changes, so
one of the jars would need to be shaded so the two jars used the same
package names.
I don't know how easy this would be to do in Maven; probably best to
try manually first.
Sebb
> --
> Elliotte Rusty Harold
> elharo@ibiblio.org
>
> ---------------------------------------------------------------------
> 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
Re: japicmp Report for major releases?
Posted by Elliotte Rusty Harold <el...@ibiblio.org>.
On Wed, Mar 25, 2026 at 7:58 PM Thomas Vandahl <tv...@apache.org> wrote:
>
> Hi folks,
>
> I would like to build the site for JCS 4.0.0. The japicmp report wants to compare the current jar with the previous one. In commons-parent, the configuration uses <artifactId>${project.artifactId}</artifactId> with the <version>${commons.bc.version}</version>.
>
> Now, as the rule for major releases is to change the artifactId (from commons-jcs3-core to commons-jcs4-core), this reference point to commons-jcs4-core:3.2.1, which of course doesn't exist.
Did the Java package name also change? They need to be synced with the
artifact ID.
--
Elliotte Rusty Harold
elharo@ibiblio.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org