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 <[email protected]> wrote: > Thank yo very much. It's perfect! > > 2010/12/15 Tamás Cservenák <[email protected]> > > 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 <[email protected]> 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
