You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Sylvain Lacaze <sy...@lacaze.me> on 2018/02/15 17:22:46 UTC

Question about Maven Indexer

Hi all,

I was hoping to get a little bit of guidance on how to use the Maven
Indexer.

I built my mini indexer based on the Basic example provided in the repo.

I get about what I want, bu then I tried to go a bit further, by creating
my own IndexCreator. The idea is that I might want to do something with the
POM or the Artifact.

My issue is that I'm never getting inside the "populateArtifactInfo" which
(if I get that right) is the only place where I can get the
ArtifactContext, which could give me the POM or Artifact.

I also tried to grab ArtifactInfo.getRemoteUrl() but that got me "null" (I
guess nothing had set it).

Am I even on the right track?

Thanks!

Sylvain

Re: Question about Maven Indexer

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

you are, but without this
https://issues.apache.org/jira/browse/MINDEXER-81
you will get hardly any progress (without getting very "dirty" wrt code and
incompatible).

HTH,
Tamas

On Thu, Feb 15, 2018 at 11:29 PM Sylvain Lacaze <sy...@lacaze.me> wrote:

> Hi all,
>
> I was hoping to get a little bit of guidance on how to use the Maven
> Indexer.
>
> I built my mini indexer based on the Basic example provided in the repo.
>
> I get about what I want, bu then I tried to go a bit further, by creating
> my own IndexCreator. The idea is that I might want to do something with the
> POM or the Artifact.
>
> My issue is that I'm never getting inside the "populateArtifactInfo" which
> (if I get that right) is the only place where I can get the
> ArtifactContext, which could give me the POM or Artifact.
>
> I also tried to grab ArtifactInfo.getRemoteUrl() but that got me "null" (I
> guess nothing had set it).
>
> Am I even on the right track?
>
> Thanks!
>
> Sylvain
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org

-- 
Thanks,
~t~