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 <ersin...@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 >