You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Ersin ER <er...@gmail.com> on 2010/12/14 21:25:31 UTC

Simple Standalone Maven Indexer Example

Hello,

I am trying to implement a simple standalone maven indexer tool without any
success.

I have included the following dependency in my pom.xml:

    <dependency>
      <groupId>org.apache.maven.indexer</groupId>
      <artifactId>indexer-core</artifactId>
      <version>3.1.0</version>
    </dependency>

Then I tried to do something similar to the explanations here:

https://docs.sonatype.org/display/M2ECLIPSE/Nexus+Indexer#NexusIndexer-NexusIndexerAPIExample

That page seems to be outdated and I could not figure out how to map that
usage to current version of the indexer. I also included maven-embedded 3.x
as dependency (should I) but it seems it also changed.

The main problem is that I cannot instantiate plexus (should I) so remaining
things also do not work.

I am want to point to maven central repository (basically its index) and
create a local index to search over.

Could you please help with a basic example?

Thanks!

-- 
Ersin Er

Re: Simple Standalone Maven Indexer Example

Posted by VersionEye <re...@versioneye.com>.
Hey Ersin. You can use the VersionEye API to get always the latest version: 
https://www.versioneye.com/api?version=v2
It's a simple HTTP GET request and you get back JSON. Currently there are
more than 220K open source projects available through the VersionEye API.  
I work for VersionEye. Let me know if you have questions.  




--
View this message in context: http://maven.40175.n5.nabble.com/Simple-Standalone-Maven-Indexer-Example-tp3305234p5762553.html
Sent from the Maven Developers mailing list archive at Nabble.com.

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


Re: Simple Standalone Maven Indexer Example

Posted by Ersin ER <er...@gmail.com>.
One more question:

Is it possible to query latest version of each distinct artifact? (Well, I
can imagine how it can be done using SQL statements but not sure about
Lucene and Nexus Indexer.)

Regards,

On Wed, Dec 15, 2010 at 07:54, Ersin ER <er...@gmail.com> wrote:

> Thank yo very much. It's perfect!
>
> 2010/12/15 Tamás Cservenák <ta...@cservenak.net>
>
> Hi,
>>
>> here is a basic example, covering -- I hope -- all you need:
>>
>>
>> https://github.com/cstamas/maven-indexer-examples/tree/master/indexer-example-01
>>
>>
>> Thanks,
>> ~t~
>>
>> On Tue, Dec 14, 2010 at 9:25 PM, Ersin ER <er...@gmail.com> wrote:
>>
>> > Hello,
>> >
>> > I am trying to implement a simple standalone maven indexer tool without
>> any
>> > success.
>> >
>> > I have included the following dependency in my pom.xml:
>> >
>> >    <dependency>
>> >      <groupId>org.apache.maven.indexer</groupId>
>> >      <artifactId>indexer-core</artifactId>
>> >      <version>3.1.0</version>
>> >    </dependency>
>> >
>> > Then I tried to do something similar to the explanations here:
>> >
>> >
>> >
>> https://docs.sonatype.org/display/M2ECLIPSE/Nexus+Indexer#NexusIndexer-NexusIndexerAPIExample
>> >
>> > That page seems to be outdated and I could not figure out how to map
>> that
>> > usage to current version of the indexer. I also included maven-embedded
>> 3.x
>> > as dependency (should I) but it seems it also changed.
>> >
>> > The main problem is that I cannot instantiate plexus (should I) so
>> > remaining
>> > things also do not work.
>> >
>> > I am want to point to maven central repository (basically its index) and
>> > create a local index to search over.
>> >
>> > Could you please help with a basic example?
>> >
>> > Thanks!
>> >
>> > --
>> > Ersin Er
>> >
>>
>
>
>
> --
> Ersin Er
>



-- 
Ersin Er

Re: Simple Standalone Maven Indexer Example

Posted by Ersin ER <er...@gmail.com>.
Thank yo very much. It's perfect!

2010/12/15 Tamás Cservenák <ta...@cservenak.net>

> Hi,
>
> here is a basic example, covering -- I hope -- all you need:
>
>
> https://github.com/cstamas/maven-indexer-examples/tree/master/indexer-example-01
>
>
> Thanks,
> ~t~
>
> On Tue, Dec 14, 2010 at 9:25 PM, Ersin ER <er...@gmail.com> wrote:
>
> > Hello,
> >
> > I am trying to implement a simple standalone maven indexer tool without
> any
> > success.
> >
> > I have included the following dependency in my pom.xml:
> >
> >    <dependency>
> >      <groupId>org.apache.maven.indexer</groupId>
> >      <artifactId>indexer-core</artifactId>
> >      <version>3.1.0</version>
> >    </dependency>
> >
> > Then I tried to do something similar to the explanations here:
> >
> >
> >
> https://docs.sonatype.org/display/M2ECLIPSE/Nexus+Indexer#NexusIndexer-NexusIndexerAPIExample
> >
> > That page seems to be outdated and I could not figure out how to map that
> > usage to current version of the indexer. I also included maven-embedded
> 3.x
> > as dependency (should I) but it seems it also changed.
> >
> > The main problem is that I cannot instantiate plexus (should I) so
> > remaining
> > things also do not work.
> >
> > I am want to point to maven central repository (basically its index) and
> > create a local index to search over.
> >
> > Could you please help with a basic example?
> >
> > Thanks!
> >
> > --
> > Ersin Er
> >
>



-- 
Ersin Er

Re: Simple Standalone Maven Indexer Example

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

here is a basic example, covering -- I hope -- all you need:

https://github.com/cstamas/maven-indexer-examples/tree/master/indexer-example-01


Thanks,
~t~

On Tue, Dec 14, 2010 at 9:25 PM, Ersin ER <er...@gmail.com> wrote:

> Hello,
>
> I am trying to implement a simple standalone maven indexer tool without any
> success.
>
> I have included the following dependency in my pom.xml:
>
>    <dependency>
>      <groupId>org.apache.maven.indexer</groupId>
>      <artifactId>indexer-core</artifactId>
>      <version>3.1.0</version>
>    </dependency>
>
> Then I tried to do something similar to the explanations here:
>
>
> https://docs.sonatype.org/display/M2ECLIPSE/Nexus+Indexer#NexusIndexer-NexusIndexerAPIExample
>
> That page seems to be outdated and I could not figure out how to map that
> usage to current version of the indexer. I also included maven-embedded 3.x
> as dependency (should I) but it seems it also changed.
>
> The main problem is that I cannot instantiate plexus (should I) so
> remaining
> things also do not work.
>
> I am want to point to maven central repository (basically its index) and
> create a local index to search over.
>
> Could you please help with a basic example?
>
> Thanks!
>
> --
> Ersin Er
>