I am trying to setup a pipeline that does the following command:
# This is a sample build configuration for Java (Maven).# Check our guides at https://confluence.atlassian.com/x/zd-5Mw for more examples.# Only use spaces to indent your .yml configuration.# -----# You can specify a custom docker image from Docker Hub as your build environment.image: maven:3.6.1
pipelines: default: - step: caches: - maven script: # Modify the commands below to build your repository. #- mvn -B verify # -B batch mode makes Maven less verbose - mvn clean package deploy -DmuleDeploy
It gets done downloading dependencies then I get the following error:
Downloaded from : https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.jar (226 kB at 17 MB/s)
[INFO]
[INFO] --- mule-maven-plugin:3.2.7:clean (default-clean) @ javatestflow ---
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ javatestflow ---
[INFO]
[INFO] --- mule-maven-plugin:3.2.7:validate (default-validate) @ javatestflow ---
[INFO]
[INFO] --- mule-maven-plugin:3.2.7:initialize (default-initialize) @ javatestflow ---
[INFO]
[INFO] --- mule-maven-plugin:3.2.7:generate-sources (default-generate-sources) @ javatestflow ---
[INFO]
[INFO] --- mule-maven-plugin:3.2.7:process-sources (default-process-sources) @ javatestflow ---
[INFO] About to fetch required dependencies for artifact: com.mycompany:javatestflow:pom:1.0.0-SNAPSHOT. This may take a while...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.060 s
[INFO] Finished at: 2019-07-05T17:22:25Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.mule.tools.maven:mule-maven-plugin:3.2.7:process-sources (default-process-sources) on project javatestflow: There was an exception while creating the repository of [MavenProject: com.mycompany:javatestflow:1.0.0-SNAPSHOT @ /opt/atlassian/pipelines/agent/build/pom.xml]: There was an issue resolving the dependency tree for the artifact [/opt/atlassian/pipelines/agent/build/pom.xml]: Failed to collect dependencies at com.mycompany:javatestflow:pom:1.0.0-SNAPSHOT -> com.mulesoft.connectors:mule-salesforce-connector:jar:mule-plugin:9.6.0 -> com.sun.xml.ws:jaxws-rt:jar:2.2.10: Failed to read artifact descriptor for com.sun.xml.ws:jaxws-rt:jar:2.2.10: 1 problem was encountered while building the effective model for com.sun.xml.ws:jaxws-rt:2.2.10
[ERROR] [ERROR] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${tools.jar} @
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
My project has those variables at a level to where I can't really change them or hard code a value in them. Has anyone found a way around this? Sorry, new to the Docker/Pipelines scene.
I can run this all locally with maven. I haven't had a chance to figure out completely how to run the pipeline stuff locally to continue to troubleshoot
OK, figured it out. Needed to change maven build to 3.6.1-jdk-8
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.