My goal is to setup a Dockerfile with maven:latest in order to be able to run my javascript code with the latest build of org.mozilla.rhino
FROM maven:latest
RUN [ "mvn", "dependency:get", "-Dartifact=org.mozilla:rhino:LATEST:jar" ]
RUN [ "mvn", "exec:java" "-Dexec.mainClass='org.mozilla.javascript.tools.shell.Main'" "-Dexec.args='src/index.js'"]
do I need a pom.xml in order to do that and if I do what should my pom.xml contain since my project only has javascript files?
PS: I have no previous experience with maven