You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Jochen Wiedmann <jo...@gmail.com> on 2024/03/20 14:07:36 UTC

Finding previous artifact versions

Hi,

I am currently in the processof implementing a plugin, which should be
able to fix missing @since tags. In order to determine the correct
value for a given Java class, method, or field, I need a list of all
previous artifact versions.

Question: Are there any ideas, how my plugin can do that
automatically? (If not, I can live with a manual list, but obviously I
wouldn't really prefer that.) If I have the list, I need to download
the respective artifacts, but I'll find something suitable in the
maven dependency plugin.

Thanks,

Jochen



-- 
The woman was born in a full-blown thunderstorm. She probably told it
to be quiet. It probably did. (Robert Jordan, Winter's heart)

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


Re: Finding previous artifact versions

Posted by Tamás Cservenák <ta...@cservenak.net>.
Howdy,

Here is proper example, done from report (but is pretty much same as would
be from plugin):
https://github.com/apache/maven-plugin-tools/pull/269/files#diff-d4a067f0ef6d2b9c15afd6a953078e78c098bbb441aedb92243870e39bea1b79

T

On Wed, Mar 20, 2024 at 8:49 PM Jochen Wiedmann <jo...@gmail.com>
wrote:

> On Wed, Mar 20, 2024 at 3:51 PM Tamás Cservenák <ta...@cservenak.net>
> wrote:
>
> > Look here:
> >
> https://github.com/apache/maven-resolver/blob/maven-resolver-1.9.18/maven-resolver-demos/maven-resolver-demo-snippets/src/main/java/org/apache/maven/resolver/examples/FindAvailableVersions.java
>
> Thanks, very much, Tamas,
>
> I hope, that I will be able to adapt this.
>
> Jochen
>
>
>
> --
> The woman was born in a full-blown thunderstorm. She probably told it
> to be quiet. It probably did. (Robert Jordan, Winter's heart)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

Re: Finding previous artifact versions

Posted by Jochen Wiedmann <jo...@gmail.com>.
On Wed, Mar 20, 2024 at 3:51 PM Tamás Cservenák <ta...@cservenak.net> wrote:

> Look here:
> https://github.com/apache/maven-resolver/blob/maven-resolver-1.9.18/maven-resolver-demos/maven-resolver-demo-snippets/src/main/java/org/apache/maven/resolver/examples/FindAvailableVersions.java

Thanks, very much, Tamas,

I hope, that I will be able to adapt this.

Jochen



-- 
The woman was born in a full-blown thunderstorm. She probably told it
to be quiet. It probably did. (Robert Jordan, Winter's heart)

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


Re: Finding previous artifact versions

Posted by Tamás Cservenák <ta...@cservenak.net>.
Howdy,

Look here:
https://github.com/apache/maven-resolver/blob/maven-resolver-1.9.18/maven-resolver-demos/maven-resolver-demo-snippets/src/main/java/org/apache/maven/resolver/examples/FindAvailableVersions.java

T

On Wed, Mar 20, 2024 at 3:15 PM Jochen Wiedmann <jo...@gmail.com>
wrote:

> Hi,
>
> I am currently in the processof implementing a plugin, which should be
> able to fix missing @since tags. In order to determine the correct
> value for a given Java class, method, or field, I need a list of all
> previous artifact versions.
>
> Question: Are there any ideas, how my plugin can do that
> automatically? (If not, I can live with a manual list, but obviously I
> wouldn't really prefer that.) If I have the list, I need to download
> the respective artifacts, but I'll find something suitable in the
> maven dependency plugin.
>
> Thanks,
>
> Jochen
>
>
>
> --
> The woman was born in a full-blown thunderstorm. She probably told it
> to be quiet. It probably did. (Robert Jordan, Winter's heart)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>