You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/05/10 06:54:00 UTC
[jira] [Commented] (MBUILDCACHE-16) Fix config file name
[ https://issues.apache.org/jira/browse/MBUILDCACHE-16?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17534180#comment-17534180 ]
ASF GitHub Bot commented on MBUILDCACHE-16:
-------------------------------------------
gnodet merged PR #11:
URL: https://github.com/apache/maven-build-cache-extension/pull/11
> Fix config file name
> --------------------
>
> Key: MBUILDCACHE-16
> URL: https://issues.apache.org/jira/browse/MBUILDCACHE-16
> Project: Maven Build Cache Extension
> Issue Type: Bug
> Reporter: Herve Boutemy
> Priority: Major
>
> reported to me by someone trying to test:
> I've noticed that all the docs state a file named maven-cache-config.xml but the source suggests it should be called maven-build-cache-config.xml:
> https://github.com/apache/maven-build-cache-extension/blob/c92e48ef924e0f67a0e1299[…]/main/java/org/apache/maven/buildcache/xml/CacheConfigImpl.java
> Also maybe worth stating that the XXMM (memory mapped files) hash algorithm seems to require JDK9+ as it uses ByteBuffer.clear() somewhere - or at least, when I tried to use it, I saw a stacktrace with that - maybe some other extension/plugin interacting badly. It only seemed to happen with XXMM.
> {noformat}
> Exception in thread "main" java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;
> at org.apache.maven.buildcache.hash.ThreadLocalBuffer.clear(ThreadLocalBuffer.java:74)
> at org.apache.maven.buildcache.hash.ThreadLocalBuffer.get(ThreadLocalBuffer.java:47)
> at org.apache.maven.buildcache.hash.XXMM.checksum(XXMM.java:51)
> at org.apache.maven.buildcache.hash.HashFactory.createChecksum(HashFactory.java:77)
> at org.apache.maven.buildcache.checksum.MavenProjectInput.calculateChecksum(MavenProjectInput.java:201)
> at org.apache.maven.buildcache.DefaultProjectInputCalculator.calculateInputInternal(DefaultProjectInputCalculator.java:116)
> at org.apache.maven.buildcache.DefaultProjectInputCalculator.calculateInput(DefaultProjectInputCalculator.java:88)
> at org.apache.maven.buildcache.CacheControllerImpl.findCachedBuild(CacheControllerImpl.java:167)
> at org.apache.maven.buildcache.BuildCacheMojosExecutionStrategy.execute(BuildCacheMojosExecutionStrateg
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)