Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Very good question! I am using the maven indexer to look up some artifacts. I am programmatically downloading the maven index from central and running queries on it. This is my method: </p> <pre><code>public IteratorSearchResponse executeGroupArtifactSearch(String group, String artifact) throws Exception { Query groupIdQ = indexer.constructQuery( MAVEN.GROUP_ID, new SourcedSearchExpression( group ) ); Query artifactIdQ = indexer.constructQuery( MAVEN.ARTIFACT_ID, new SourcedSearchExpression( artifact ) ); BooleanQuery query = new BooleanQuery(); query.add( groupIdQ , Occur.MUST ); query.add( artifactIdQ, Occur.MUST ); query.add( indexer.constructQuery( MAVEN.CLASSIFIER, new SourcedSearchExpression( Field.NOT_PRESENT ) ), Occur.MUST_NOT ); IteratorSearchRequest request = new IteratorSearchRequest( query, Collections.singletonList( centralContext ), null ); IteratorSearchResponse response = indexer.searchIterator( request ); return response; } </code></pre> <p>Since I updated to maven 3.1.0 and org.eclipse.aether I am getting this Exception: </p> <pre><code>Caused by: java.lang.ClassNotFoundException: org.sonatype.aether.version.InvalidVersionSpecificationException at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230) ... 30 more </code></pre> <p>It seems that the 3.1.0 Maven Indexer still has some dependencies to org.sonatyep.aether. Curious enough that I get this Exception because "org.sonatype.aether.version.InvalidVersionSpecificationException" is still part of the project. </p> <p>So how do I resolve this? </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload