Open billmania42 opened 4 years ago
I met the same problem
Fix with
FROM debian:buster-slim LABEL maintainer="Steven Barth stbarth@cisco.com"
COPY anc /src/anc/ COPY explorer /src/explorer/ COPY grpc /src/grpc/ COPY pom.xml /src/
RUN mkdir -p /usr/share/man/man1 && \ apt update && \ apt -y --no-install-recommends install openjdk-11-jdk jetty9 maven
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-arm64 ENV PATH="${JAVA_HOME}/bin:${PATH}"
WORKDIR /src
RUN echo "JAVA_HOME is set to $JAVA_HOME" && \ java -version && \ mvn -v && \ find /usr/lib/jvm -name "java*"
RUN mvn clean package javadoc:javadoc
RUN cp /src/explorer/target/*.war /var/lib/jetty9/webapps/ROOT.war && \ cp -a /src/anc/target/site/apidocs /var/lib/jetty9/webapps/
RUN mkdir -p /usr/share/yangcache && chmod -R 755 /usr/share/yangcache /var/lib/jetty9/webapps/
RUN rm -rf /var/lib/jetty9/webapps/root /src /root/.m2 && \ apt remove -y maven && apt -y autoremove && apt clean
WORKDIR / EXPOSE 8080 CMD ["/usr/share/jetty9/bin/jetty.sh", "run"]
Hello, I am trying to build this using java11 via "mvn clean package" command and receiving the following error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project explorer: Compilation failure [ERROR] /home/wmania01/code/anx/explorer/src/main/java/com/cisco/stbarth/netconf/anx/NetconfYangParser.java:[30,45] error: cannot access Revision