You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Cservenak, Tamas (JIRA)" <ji...@apache.org> on 2017/11/24 10:14:00 UTC

[jira] [Closed] (MINDEXER-106) ClassNotFoundException (org.sonatype.aether.version.InvalidVersionSpecificationException) under recent Maven versions

     [ https://issues.apache.org/jira/browse/MINDEXER-106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cservenak, Tamas closed MINDEXER-106.
-------------------------------------
    Resolution: Fixed

Release 6.x makes maven-indexer compatible with maven 3.1+. With it, now same problem will stand for 3.0- line of maven, but they can still use older releases.

> ClassNotFoundException (org.sonatype.aether.version.InvalidVersionSpecificationException) under recent Maven versions
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: MINDEXER-106
>                 URL: https://issues.apache.org/jira/browse/MINDEXER-106
>             Project: Maven Indexer
>          Issue Type: Bug
>    Affects Versions: 5.1.1
>         Environment: Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T21:39:06+02:00)
>            Reporter: Andreas Sewe
>             Fix For: 6.0
>
>
> It is impossible to use the latest released {{indexer-core}} (version 5.1.1) in a mojo executing under a recent version of Maven (3.5.0):
> {noformat}
> Caused by: java.lang.NoClassDefFoundError: org/sonatype/aether/version/InvalidVersionSpecificationException
> 	at org.apache.maven.index.context.IndexUtils.constructArtifactInfo(IndexUtils.java:111)
> 	at org.apache.maven.index.context.IndexUtils.updateDocument(IndexUtils.java:135)
> 	at org.apache.maven.index.updater.IndexDataReader.readIndex(IndexDataReader.java:92)
> 	at org.apache.maven.index.updater.DefaultIndexUpdater.unpackIndexData(DefaultIndexUpdater.java:509)
> 	at org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:197)
> 	at org.apache.maven.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:76)
> 	at org.apache.maven.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:642)
> 	at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:862)
> 	at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:157)
> 	...
> 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.unsynchronizedLoadClass(ClassRealm.java:271)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)