Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-35335

maven.config not recognized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-invoker-plugin
    • None
    • Jenkins ver. 1.642.1
      Maven 3.3.9
      Maven Plugin 2.7.1

      Maven 3.3+ supports maven.config files in the .mvn folder of a maven project. This file provides support for providing system properties to the JVM at build time. Running Maven builds in Jenkins is doing something to prevent this file from being picked up. Running in Hudson or from the command line on the Jenkins slave works correctly. Running from Jenkins does not.

      An example is attached. maven.config should be in .mvn folder at the root of the project.

      Incorrect output from Jenkins
      [INFO] — exec-maven-plugin:1.4.0:exec (parmValue) @ jenkins-maven-config —
      ERROR: Not Set

      Correct output should be:
      [INFO] — exec-maven-plugin:1.4.0:exec (parmValue) @ jenkins-maven-config —
      HelloWorld

        1. maven.config
          0.0 kB
          Derek Sharpe
        2. pom.xml
          1 kB
          Derek Sharpe

            olamy Olivier Lamy
            p51asp Derek Sharpe
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: