[
https://issues.apache.org/jira/browse/MINDEXER-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Bien updated MINDEXER-144:
----------------------------------
Description:
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.
{code: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 for rest{code}
Please let me know if you need more info or think that this is not an issue
with maven-indexer.
full exception+pom attached
was:
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.
{code: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){code}
Please let me know if you need more info or think that this is not an issue
with maven-indexer.
full exception+pom attached
> IndexOutOfBoundsException during indexing
> -----------------------------------------
>
> Key: MINDEXER-144
> URL: https://issues.apache.org/jira/browse/MINDEXER-144
> Project: Maven Indexer
> Issue Type: Bug
> Affects Versions: 6.1.1
> Reporter: Michael Bien
> Priority: Major
> Attachments: ex6, pom.xml
>
>
> 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.
> {code: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 for rest{code}
>
> Please let me know if you need more info or think that this is not an issue
> with maven-indexer.
>
> full exception+pom attached
--
This message was sent by Atlassian Jira
(v8.20.1#820001)