jira-importer opened a new issue, #623:
URL: https://github.com/apache/maven-indexer/issues/623

   **[Michael 
Bien](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mbien)** 
opened 
**[MINDEXER-144](https://issues.apache.org/jira/browse/MINDEXER-144?redirect=false)**
 and commented
   
   Hello devs,
   
   I am encountering IOOBEs while trying to index the local repository using 
the new maven-indexer.
   
   context:
   
   I am currently trying to upgrade indexer-core from 6.0.0 to 6.1.1 (and 
lucene 5.x to 8.x) of the NetBeans maven support modules 
(https://github.com/apache/netbeans/pull/3558). Attached is a pom of a test 
project which triggers the Exception.
   
   All artifacts which caused the exception were snapshot builds, the attached 
pom works fine if "-SNAPSHOT" is removed from the version element. The same 
artifacts indexed fine before, while using indexer-6.0 and lucene 5.x.
   
   ```java
   ...
   java.lang.IndexOutOfBoundsException: start 51, end 59, length 55 at 
java.base/java.lang.AbstractStringBuilder.checkRange(AbstractStringBuilder.java:1802)
 at 
java.base/java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:680)
 at java.base/java.lang.StringBuilder.append(StringBuilder.java:218) at 
org.apache.maven.index.artifact.M2GavCalculator.getSnapshotGav(M2GavCalculator.java:187)
 at 
org.apache.maven.index.artifact.M2GavCalculator.pathToGav(M2GavCalculator.java:103)
 at 
org.apache.maven.index.DefaultArtifactContextProducer.getGavFromPath(DefaultArtifactContextProducer.java:159)
 at 
org.apache.maven.index.DefaultArtifactContextProducer.getArtifactContext(DefaultArtifactContextProducer.java:83)
 at 
org.netbeans.modules.maven.indexer.CustomArtifactContextProducer.getArtifactContext(CustomArtifactContextProducer.java:40)
   ... see attachment
   ```
   
    
   
   Please let me know if you need more info or think that this is not an issue 
with maven-indexer.
   
    
   
   full exception+pom attached
   
   
   ---
   
   **Affects:** 6.1.1
   
   **Attachments:**
   - [ex6](https://issues.apache.org/jira/secure/attachment/13040276/ex6) 
(_3.03 kB_)
   - 
[pom.xml](https://issues.apache.org/jira/secure/attachment/13040277/pom.xml) 
(_8.30 kB_)
   
   **Remote Links:**
   - [GitHub Pull Request #198
   ](https://github.com/apache/maven-indexer/pull/198)
   - [GitHub Pull Request #225
   ](https://github.com/apache/maven-indexer/pull/225)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to