在做maven编译时,在家电脑是正常的,但公司会报出正面的错误
DEBUG] Writing tracking file D:/maven_repository/org/springframework/boot/spring-boot-dependencies/2.4.3/spring-boot-dependencies-2.4.3.pom.lastUpdated
[ERROR] Internal error: java.lang.ArrayIndexOutOfBoundsException: Index 18272 out of bounds for length 8192 -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.ArrayIndexOutOfBoundsException: Index 18272 out of bounds for length 8192
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:122)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
比较一下环境,maven版本有差异,公司是3.5的,家里的是3.8的。更新maven版本到3.8后,问题解决。
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/281811.html