On Fri, 2020-05-08 at 10:56 -0700, Andreas Schaefer wrote:
> The build runs fine. I only ran into an issue when I did ‘man
> deploy’.

Ah, good point. I ran a `mvn deploy` with Java 8, and it does fail to
me with the same error.

I updated to parent pom version 38, but then I got lots of error
related to shaded classes from jackrabbit, e.g.

[ERROR] 
/home/robert/sources/apache/sling/org-apache-sling-kickstart/target/classes/shaded/org/apache/jackrabbit/vault/fs/spi/impl/jcr20/JackrabbitUserManagement.class:88:
 Undefined reference: shaded.org.apache.jackrabbit.api.JackrabbitSession
Maybe an unfortunate interaction between the animal sniffer and shade
plugins?

Thanks,
Robert

> 
> - Andy
> 
> > On May 8, 2020, at 12:37 AM, Robert Munteanu <[email protected]>
> > wrote:
> > 
> > Hi Andy,
> > 
> > On Thu, 2020-05-07 at 17:13 -0700, Andreas Schaefer wrote:
> > > Hi
> > > 
> > > While I was trying to release the Sling Kickstart Project during
> > > ‘man
> > > deploy’ of the snapshots I ran into this issue (Sling Parent 38):
> > (snip)
> > > [ERROR] Failed to execute goal org.codehaus.mojo:animal-sniffer-
> > > maven-plugin:1.17:check (default) on project
> > > org.apache.sling.kickstart: Execution default of goal
> > > org.codehaus.mojo:animal-sniffer-maven-plugin:1.17:check failed:
> > > An
> > > API incompatibility was encountered while executing
> > > org.codehaus.mojo:animal-sniffer-maven-plugin:1.17:check:
> > > java.lang.NoSuchMethodError:
> > > java.nio.CharBuffer.position(I)Ljava/nio/CharBuffer;
> > > [ERROR] -----------------------------------------------------
> > > [ERROR] realm =    plugin>org.codehaus.mojo:animal-sniffer-maven-
> > > plugin:1.17
> > > [ERROR] strategy =
> > > org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> > 
> > I was able to build the kickstart project without issues. I tried
> > both
> > Java 8 and 11:
> > 
> > Apache Maven 3.6.3 (SUSE 3.6.3-2.1)
> > Maven home: /usr/share/maven
> > Java version: 1.8.0_242, vendor: IcedTea, runtime:
> > /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre
> > Default locale: en_US, platform encoding: UTF-8
> > OS name: "linux", version: "5.6.8-1-default", arch: "amd64",
> > family: "unix"
> > 
> > Apache Maven 3.6.3 (SUSE 3.6.3-2.1)
> > Maven home: /usr/share/maven
> > Java version: 11.0.7, vendor: Oracle Corporation, runtime:
> > /usr/lib64/jvm/java-11-openjdk-11
> > Default locale: en_US, platform encoding: UTF-8
> > OS name: "linux", version: "5.6.8-1-default", arch: "amd64",
> > family: "unix"
> > 
> > Thanks,
> > Robert
> > 

Reply via email to